Commit Graph

559 Commits

Author SHA1 Message Date
93f15321a5 change sys_brk to SYSCALL_DECLARE(brk) 2013-06-17 18:07:25 +09:00
8436f5a5ac add remove_process_memory_range() 2013-06-12 11:49:19 +09:00
5206ae7d57 delete old? ioctl(2) delegation codes 2013-06-07 21:21:22 +09:00
08b881b530 delete old fcntl(2) delegation codes 2013-06-07 21:21:22 +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
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
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
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
fa1be382c7 release the resources of the process at exit(2)/exit_group(2). 2013-05-28 11:31:23 +09:00
5d78660011 use dkprintf() in getcwd() and access() 2013-05-10 18:54:33 +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
c0824db8f1 FIX Bug 3 - Wrong results of sched_getaffinity (mask) 2013-05-08 13:27:36 +09:00
e09160cce7 add generic system call forwarding 2013-04-17 20:32:33 +09:00
93e1f112f8 structure format(both user/kernel mode of dcfa and dcfampi enabled) 2013-04-10 17:38:02 +09:00
4693789608 change function names 2012-12-17 16:15:05 +09:00
0a808057eb modify include lines and Makefiles 2012-12-17 16:10:56 +09:00
84ade197f0 move mccmd cleanup into a sub-thread which receives the exit_group syscall 2012-12-04 15:48:42 +09:00
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
9fd7f3ddf7 add func do_mod_exit
Conflicts:

	kernel/syscall.c
2012-11-29 14:01:26 +09:00
092069fd80 spin-wait based kernel timer (for futex() timeout) implementation 2012-11-28 15:22:53 +09:00
b79d20d7bf modification for no_cache: extend_process_region(...,flag) 2012-11-27 16:38:05 +09:00
b902a245e4 add lock and error check in sys_brk 2012-11-27 16:17:08 +09:00
d4b186f1d8 align 1MB when performing mmap with MAP_FIXED == 0 and MAP_ANONYMOUS == 0 and MAP_PRIVATE == 1 to make it easy to match assembly code in memory and one in file 2012-11-27 15:37:57 +09:00
31098d3d75 add nocache for mmap. usage: void *va = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS | 0x40, -1, 0); 2012-11-27 14:56:40 +09:00
2698cb85c9 add syscalls (pmc_init, pmc_start, pmc_stop, pmc_reset) for performance monitoring instructions 2012-11-26 19:25:53 +09:00
790ae3a9c7 use right physical address for host side read after large page mapping 2012-11-26 17:25:17 +09:00
88e9ee2a7c fix return value from extend_process_region() 2012-11-26 17:24:25 +09:00
8979ccf5b8 allocate a large page in front of a FIXED mapping if start addr is not large page aligned so that the mapping remains physically contiguous 2012-11-26 17:02:21 +09:00
a21fe11b00 use large page PTEs for allocations bigger than large page size, enforce alignment (USE_LARGE_PAGES) 2012-11-26 17:00:53 +09:00
337fe4b20d timer sleep and wakeup functions by Balazs-san 2012-11-26 16:23:01 +09:00
cf975e1926 Revert "make mmap try to reserve memory areas with (size/2)-aligned virtual addresses"
This reverts commit 4ecc9ea5a587eb1c56440c484a12b22a77ef5c2b.
2012-11-26 13:46:06 +09:00
a1490da112 Revert "make munmap free physical pages, and one correction for aligned mmap in syscall.c (extend_process_region is called with memory-region start-address which is aligned (map_end_aligned), instead of tail-address of current-region (region->map_end)) for aligned mmap (in syscall.c)"
This reverts commit e7317cca98.
2012-11-26 13:38:07 +09:00
e7317cca98 make munmap free physical pages, and one correction for aligned mmap in syscall.c (extend_process_region is called with memory-region start-address which is aligned (map_end_aligned), instead of tail-address of current-region (region->map_end)) for aligned mmap (in syscall.c) 2012-10-30 21:32:49 +09:00
50431b7584 make mmap try to reserve memory areas with (size/2)-aligned virtual addresses 2012-10-30 21:03:47 +09:00
9fe8d548fb increase PIN_SHIFT to 28 for reading large .so-file (temporary, we should use pread instead), and added system-call time 2012-10-28 00:43:42 +09:00
57c48dea90 __host_update_process_range in add_process_memory_range is disabled (in process.c), futex with FUTEX_WAIT_BITSET and time-out is implemented by using pause() (in syscall.c). 2012-10-16 20:17:57 +09:00
c96841cf8f added/corrected syscalls, getcwd, access, getdents64, fcntl, readlink, tgkill, rt_sigaction, rt_sigprocmask, madvise, sched_setaffinity, sched_getaffinity (correction), gettimeofday (correction) 2012-10-09 12:49:12 +09:00
dd596a2a78 lock when changing process memory region (in syscall.c) and page-table (in process.c) 2012-10-09 11:40:49 +09:00
ba4113fd0d close 2012-10-03 17:02:05 +09:00
9401d03707 mmap 2012-10-03 10:50:29 +09:00
222bad5fe6 syscall6 2012-10-03 10:47:09 +09:00
da484cc1c5 fix stat() syscall 2012-09-20 09:40:23 +09:00
bcfe8c4c06 set tls block base to parent if not specified 2012-08-01 11:08:29 +09:00
9394c9fa54 stat(), get_sched_affinity(), gettimeofday() and some detailed debug msgs 2012-05-19 16:54:14 +09:00
97d4c85195 user/kernel stack size, clear content of ANONYMOUS mmap, changes to scheduler (CPU idle state) 2012-05-10 14:20:52 +09:00
a7c0225423 futex and rlimit 2012-05-08 18:32:43 +09:00
8c34463dd4 runqueues and schedule() 2012-05-03 18:38:08 +09:00