Commit Graph

236 Commits

Author SHA1 Message Date
d8034eeb13 propagate error code for prepare image 2013-06-05 17:38:23 +09:00
8b9e97ceb7 FIX Bug 25 - static linked OpenMP application fails with page fault (during OpenMP initialisation?) 2013-06-05 15:44:11 +09:00
80538d8800 fix a wrong decision in __clear_pt_page() 2013-06-03 14:39:07 +09:00
40ad744947 remove unused function add_process_large_range from source file 2013-06-02 19:38:29 +09:00
ec908bd2cb add dummy sched_yield() implementation to avoid shipping it through the generic syscall forwarding code (slowed down OpenMP) 2013-06-02 16:49:23 +09:00
4a27a65cb0 resolved merge conflicts with futex code 2013-06-02 16:42:08 +09:00
2627d4df55 add PTATTR_FOR_USER flag to enum ihk_mc_ap_flag 2013-06-02 13:57:44 +09:00
5d9efa7241 add rollback when ihk_mc_pt_set_page returns error 2013-06-02 13:54:38 +09:00
54798253c5 add error handling for prepare_process 2013-06-02 13:49:10 +09:00
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
248ba5acb8 add missing initialization in clone_process() 2013-05-31 19:08:08 +09:00
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
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
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
d540deab17 change 'pa_ops' to file scope variable 2013-05-28 13:40:19 +09:00
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
bb4caccf98 add memory allocation check 2013-05-28 12:06:41 +09:00
f8f91488b3 fix release leakage of args_envs 2013-05-28 11:52:00 +09:00
db17c4a7b0 use the PID of the mcexec as PID of the McKernel process. 2013-05-28 11:40:20 +09:00
0b97235b9f fix release leakage of extra pages 2013-05-28 11:39:42 +09:00
fa1be382c7 release the resources of the process at exit(2)/exit_group(2). 2013-05-28 11:31:23 +09:00
9354c82ee7 Merge branch 'master' of postpeta.pccluster.org:mckernel 2013-05-21 03:53:18 +09:00
0bdc047515 exchange the dcfa stuff init/exit order in mcexec 2013-05-20 13:52:17 -05:00
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
da97e6af6b move NULL check before use (bug#22) 2013-05-17 17:15:56 +09:00
31b83e0b41 stop early_alloc_page correctly (bug#17) 2013-05-17 17:15:14 +09:00
0fdf3d3411 set the PFL1_PCD, if PTATTR_UNCACHABLE is specified. (bug#14) 2013-05-17 17:14:19 +09:00
6c3607efe3 default prefix was invaild 2013-05-17 12:33:08 +09:00
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
5d78660011 use dkprintf() in getcwd() and access() 2013-05-10 18:54:33 +09:00
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
83db56a040 futex adaptation from Linux 2.6.34 (Intel MPSS Linux) 2013-05-10 14:23:14 +09:00
a79bfd6a01 use no IRQ disable spinlocks for page_table lock and disable debug msgs in mmap() by default 2013-05-10 13:22:18 +09:00
c4d9b18ddf use no IRQ disable spinlocks for timers 2013-05-10 13:17:59 +09:00
72120f5262 use no IRQ disable spinlocks for wait queues 2013-05-10 13:17:11 +09:00
90d3d86c2c use no IRQ disable spinlocks for page_table lock 2013-05-10 13:16:32 +09:00
c865f63818 disable debug msgs by default for host.c 2013-05-10 13:04:28 +09:00
0416247ba4 variable conversion fix 2013-05-10 12:57:46 +09:00
cf0ea31805 atomic __xchg() port from Linux 2013-05-10 12:43:44 +09:00
bdebcf4b48 ihk_mc_spinlock_lock_noirq() / ihk_mc_spinlock_unlock_noirq() implementation 2013-05-10 12:43:13 +09:00
4a94b1d9a2 move lapic_ack() in the front of IRQ handler, disable debug msgs by default 2013-05-10 12:42:11 +09:00
b83083b9a2 [Bug 16] malfunction of __clear_pt_page when a virtual address is accessed and at that time the corresponding PDTE is invalid: FIX large page issue 2013-05-10 12:40:50 +09:00
d5a6343dd3 [Bug 15] get_pte malfunction in case of 2MiB page size: FIX 2013-05-10 12:40:00 +09:00
ab37f57a59 [Bug 20] ihk_mc_unmap_virtual function at free_physical FIX: use virtual address 2013-05-10 12:21:17 +09:00
4ab5aaf8cf SC12 OpenMP 実行環境の取り込み (/proc/cpuinfo, /proc/meminfo, /sys/devices/system/cpu/online) 2013-05-09 12:40:17 +09:00
e8f7fbc682 FIX Bug 1 - mckernel aborts due to out of memory access after several mcexec 2013-05-09 10:12:30 +09:00
c0824db8f1 FIX Bug 3 - Wrong results of sched_getaffinity (mask) 2013-05-08 13:27:36 +09:00
b56c090678 FIX Bug 1 - mckernel aborts due to out of memory access after several mcexec invocations 2013-05-02 11:00:30 +09:00
fcd5d65f65 remove configure generated files 2013-05-02 10:57:10 +09:00
e09160cce7 add generic system call forwarding 2013-04-17 20:32:33 +09:00