Commit Graph

125 Commits

Author SHA1 Message Date
884bd5db82 create doxygen and test directories 2012-12-17 16:17:25 +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
6ff27458f4 modify include lines and Makefiles 2012-12-17 15:39:40 +09:00
158903c7b6 modify file names and create directories 2012-12-17 15:39:24 +09:00
9849cf57b1 add free dma buffer function 2012-12-13 17:47:36 +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
b59e36e1a5 reset TIME_STAMP_COUNTER during boot 2012-11-28 15:05:10 +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
eaae0b4740 make aal dir in mcctrl could be user-defined 2012-11-27 15:06:21 +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
06003ec2e2 set up IB connection in MCOS at start up (mc_cmd_client_init() in init.c) 2012-11-27 14:09:29 +09:00
7027845a4e add mcos/kernel/{Makefile.mpiu,Makefile.build.mpiu}, which are used from dcfampi_u_make.sh. The difference from {Makefile,Makefile.build} is that it links DCFAMPI kernel functions in mccmd/client to mcos kernel 2012-11-27 13:37:11 +09:00
e76bf73403 make mcos/linux/executor/Makefile do not cause error when performing make clean 2012-11-27 13:31:18 +09:00
5e00aa5e19 increase stack size to 32MB 2012-11-27 13:28:55 +09:00
ad03d2dccd fix the initial value of SMPT full/empty bitmap used by aal_mc_map_micpa 2012-11-27 13:24:33 +09:00
11599d4ce4 fix a function which frees SMPT full/empty bitmap, aal_mc_free_micpa 2012-11-26 19:36:03 +09:00
8dc38e13ef fix a function which frees SMPT full/empty bitmap, aal_mc_free_micpa 2012-11-26 19:35:39 +09:00
7538937507 add a function which frees SMPT full/empty bitmap, aal_mc_free_micpa 2012-11-26 19:35:28 +09:00
2c74d1677a DEBUG_PRINT_MEM and dkprintf() for easy toggle of debug msgs in mem.c 2012-11-26 19:34:05 +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
320b8e9851 large page aligned ANONYMOUS mapping length fix 2012-11-26 17:02:52 +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
22bd5d8247 Revert "make physical memory allocator try to reserve memory areas with (size/2)-aligned addresses"
This reverts commit d4770bc9af.
2012-11-26 14:32:25 +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
3d71edd55c initialize lock variables, increase stack size 2012-10-30 21:40:03 +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
d4770bc9af make physical memory allocator try to reserve memory areas with (size/2)-aligned addresses 2012-10-30 20:53:14 +09:00
3ff50170b6 make allocate_pages in kernel/mem.c propagate error from aal_pagealloc_alloc (physical address of zero) to callee 2012-10-30 14:12:35 +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
3142b4d4d6 made getcwd in mcexec.c send proper length of result back to mcos 2012-10-26 19:52:39 +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
10d6400d80 enable syscall channels for all MIC cores 2012-10-10 19:16:44 +09:00
d9c908a062 multithreaded mcexec (pthread) for handling syscall delegation from multiple MIC cores 2012-10-10 01:11:50 +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
9a8449df2b populate ELF header information on the initial stack so that glibc can set up TLS properly 2012-10-09 00:51:50 +09:00
f1da972bb7 modified (a<<b-1) to ((a<<b)-1) in micpa() 2012-10-06 03:11:15 +09:00
1755ac4d8d mmap 2012-10-03 17:15:17 +09:00