Commit Graph

163 Commits

Author SHA1 Message Date
NAKAMURA Gou
c8b7a853cc changed the number of pages to allocate
struct malloc_header is necessary at both ends of the new free space.
however, only one malloc_header is included in the req_pages.
2013-05-31 19:09:02 +09:00
NAKAMURA Gou
248ba5acb8 add missing initialization in clone_process() 2013-05-31 19:08:08 +09:00
NAKAMURA Gou
6614bcaa68 allocate/de-allocate exact number of pages requested
derived from:
commit 3ba275833ac741db59ec9a614297aef9f01da908
Author: Masamichi Takagi m-takagi@ab.jp.nec.com <takagi@kncc12.(none)>
Date:   Thu Jan 17 17:34:12 2013 +0900

    make aal reserve exact number of physical pages even when requested >= 32 pages
2013-05-31 18:32:48 +09:00
NAKAMURA Gou
d836b92bc2 avoid pointer check when reading a file in mmap(!MAP_FIXED)
address specified by the user is only a hint,
it should not be checked.
2013-05-31 10:59:27 +09:00
Masamichi Takagi m-takagi@ab.jp.nec.com
d70dd2338c Make mckernel/kernel/host.c set proc->vm->region.brk_start to
(USER_END / 4) & LARGE_PAGE_MASK
so that brk won't destroy .bss section when
using debug-mode of ld.so to link shared objects.
2013-05-29 17:08:36 +09:00
NAKAMURA Gou
d540deab17 change 'pa_ops' to file scope variable 2013-05-28 13:40:19 +09:00
Tomoki Shirasawa
da3965be11 Merge branch 'master' of postpeta.pccluster.org:mckernel
Conflicts:
	kernel/host.c
	kernel/process.c
	lib/include/ihk/mm.h
2013-05-28 12:49:13 +09:00
Tomoki Shirasawa
bb4caccf98 add memory allocation check 2013-05-28 12:06:41 +09:00
NAKAMURA Gou
f8f91488b3 fix release leakage of args_envs 2013-05-28 11:52:00 +09:00
NAKAMURA Gou
db17c4a7b0 use the PID of the mcexec as PID of the McKernel process. 2013-05-28 11:40:20 +09:00
NAKAMURA Gou
0b97235b9f fix release leakage of extra pages 2013-05-28 11:39:42 +09:00
NAKAMURA Gou
fa1be382c7 release the resources of the process at exit(2)/exit_group(2). 2013-05-28 11:31:23 +09:00
simin
9354c82ee7 Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-05-21 03:53:18 +09:00
simin
0bdc047515 exchange the dcfa stuff init/exit order in mcexec 2013-05-20 13:52:17 -05:00
NAKAMURA Gou
50927537ac remove setting of warm reset vector (bug#11)
at least, in attached-mic and builtin-mic,
should not be necessary because it uses the SIPI.
2013-05-17 17:16:18 +09:00
NAKAMURA Gou
da97e6af6b move NULL check before use (bug#22) 2013-05-17 17:15:56 +09:00
NAKAMURA Gou
31b83e0b41 stop early_alloc_page correctly (bug#17) 2013-05-17 17:15:14 +09:00
NAKAMURA Gou
0fdf3d3411 set the PFL1_PCD, if PTATTR_UNCACHABLE is specified. (bug#14) 2013-05-17 17:14:19 +09:00
Tomoki Shirasawa
6c3607efe3 default prefix was invaild 2013-05-17 12:33:08 +09:00
Masamichi Takagi m-takagi@ab.jp.nec.com
d3764f0417 revert compile option of $(EXTRA_CFLAGS) and compiled objects of $(EXTRA_OBJS)
in executer/user/Makefile.in, which builds mcexec, because DCFA in
comm-ib repository passes these variables to combine additional binaries to
create custom mcexec
2013-05-14 10:20:09 +09:00
Masamichi Takagi m-takagi@ab.jp.nec.com
1d4babcd32 make kputs (write debug message onto kmsg_buf.str) truncate size of input string when it's greater than kmsg_buf.len.
http://postpeta.pccluster.org/bugzilla/show_bug.cgi?id=19
2013-05-10 17:06:46 +09:00
Tomoki Shirasawa
4ab5aaf8cf SC12 OpenMP 実行環境の取り込み (/proc/cpuinfo, /proc/meminfo, /sys/devices/system/cpu/online) 2013-05-09 12:40:17 +09:00
Tomoki Shirasawa
e8f7fbc682 FIX Bug 1 - mckernel aborts due to out of memory access after several mcexec 2013-05-09 10:12:30 +09:00
Tomoki Shirasawa
c0824db8f1 FIX Bug 3 - Wrong results of sched_getaffinity (mask) 2013-05-08 13:27:36 +09:00
Tomoki Shirasawa
b56c090678 FIX Bug 1 - mckernel aborts due to out of memory access after several mcexec invocations 2013-05-02 11:00:30 +09:00
Tomoki Shirasawa
fcd5d65f65 remove configure generated files 2013-05-02 10:57:10 +09:00
NAKAMURA Gou
e09160cce7 add generic system call forwarding 2013-04-17 20:32:33 +09:00
Tomoki Shirasawa
d55bc511ea add a boot script for attached-mic. 2013-04-15 15:00:30 +09:00
simin
af7ad56263 Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-04-10 17:38:24 +09:00
simin
93e1f112f8 structure format(both user/kernel mode of dcfa and dcfampi enabled) 2013-04-10 17:38:02 +09:00
Tomoki Shirasawa
ed305e096b Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-02-18 12:11:16 +09:00
Tomoki Shirasawa
161b3faefe support configure/make 2013-02-18 12:07:32 +09:00
simin
15b7256738 change dcfampi contents for aal->ihk 2013-02-15 19:58:03 +09:00
simin
ff356b02cc add mccmd init function in booting stage 2013-02-15 19:57:17 +09:00
Tomoki Shirasawa
68ee283fb0 Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-02-04 11:53:28 +09:00
Tomoki Shirasawa
db830fa39e support to load kernel to any phys addr 2013-02-04 11:39:09 +09:00
SHIMADA Keiko
b6e21f2dab add rbtree source 2013-01-16 16:13:17 +09:00
shirasawa
9818e199f6 support builtin-x86 and builtin-mic 2013-01-06 15:45:17 +09:00
Tomoki Shirasawa
884bd5db82 create doxygen and test directories 2012-12-17 16:17:25 +09:00
Tomoki Shirasawa
4693789608 change function names 2012-12-17 16:15:05 +09:00
Tomoki Shirasawa
0a808057eb modify include lines and Makefiles 2012-12-17 16:10:56 +09:00
Tomoki Shirasawa
6ff27458f4 modify include lines and Makefiles 2012-12-17 15:39:40 +09:00
Tomoki Shirasawa
158903c7b6 modify file names and create directories 2012-12-17 15:39:24 +09:00
simin
9849cf57b1 add free dma buffer function 2012-12-13 17:47:36 +09:00
simin
84ade197f0 move mccmd cleanup into a sub-thread which receives the exit_group syscall 2012-12-04 15:48:42 +09:00
simin
c08e60382d merge mpi host assist process into mcexec,
use syscall instead of another ikc

Conflicts:

	kernel/syscall.c
	linux/executer/mcexec.c
2012-11-29 16:28:25 +09:00
simin
9fd7f3ddf7 add func do_mod_exit
Conflicts:

	kernel/syscall.c
2012-11-29 14:01:26 +09:00
Balazs Gerofi bgerofi@riken.jp
092069fd80 spin-wait based kernel timer (for futex() timeout) implementation 2012-11-28 15:22:53 +09:00
Balazs Gerofi bgerofi@riken.jp
b59e36e1a5 reset TIME_STAMP_COUNTER during boot 2012-11-28 15:05:10 +09:00
simin
b79d20d7bf modification for no_cache: extend_process_region(...,flag) 2012-11-27 16:38:05 +09:00