Commit Graph

69 Commits

Author SHA1 Message Date
d692b57a67 Revert "idle 開始時に free_list の状況を表示する"
This reverts commit ec47968a48.
2014-09-17 19:59:27 +09:00
ec47968a48 idle 開始時に free_list の状況を表示する 2014-09-17 19:46:52 +09:00
219291f40f exit_group 時に空きページ数を表示する 2014-09-17 19:46:46 +09:00
f7780cfe93 kmalloc()/kfree(): allow CPU cores to kfree() a piece of memory that was kmalloc()ed by another core through embedding CPU id into malloc_header 2014-09-14 23:22:43 +09:00
7b825c0a65 fix coredump (ltp abort01) 2014-09-03 10:56:41 +09:00
530535c162 Merge remote branch 'origin/master' into gdb 2014-07-23 10:29:07 +09:00
dbdaf0ed32 Fix for demand paging and documentation. 2014-07-23 10:23:02 +09:00
101a0f6e4a remote TLB invalidation code for multi-threaded applications (e.g., during munmap()) 2014-07-22 12:24:07 +09:00
9dd7d6283c Merge remote branch 'origin/master' into gdb
Conflicts:
	kernel/include/process.h
2014-07-18 16:03:35 +09:00
cb61739c2b Deleted debug flags & al. 2014-07-18 15:45:40 +09:00
170a54d976 add CPU affinity function
- syscall support
-- sched_setaffinity
-- sched_getaffinity
- migration in scheduler
- resched at return of syscalls/interrupts
2014-07-13 17:04:47 +09:00
79a72809af Prepare inside of core. Not tested.
modified:   arch/x86/kernel/gencore.c
	modified:   arch/x86/kernel/include/elfcore.h
	modified:   kernel/mem.c
2014-07-07 15:46:10 +09:00
ed9da789e6 Created gencore() and minor aestetical changes.
modified:   executer/kernel/mcctrl.h
	modified:   executer/kernel/syscall.c
	modified:   kernel/include/syscall.h
	modified:   kernel/mem.c
2014-07-02 16:23:32 +09:00
4f1b3f22ef Working code for infrastructure.
modified:   executer/kernel/mcctrl.h
	modified:   executer/kernel/syscall.c
	modified:   kernel/include/syscall.h
	modified:   kernel/mem.c
2014-07-02 12:39:08 +09:00
53a80e0720 Experimental implementation of map & write.
Data is still dummy.
Not even compiled.
	modified:   executer/kernel/mcctrl.h
	modified:   executer/kernel/syscall.c
	modified:   kernel/include/syscall.h
	modified:   kernel/mem.c
2014-07-01 16:50:25 +09:00
83ced89fa3 Initial commit for core dump.
We can create a dummy core file when gpe occurs.
	modified:   executer/kernel/mcctrl.h
	modified:   executer/kernel/syscall.c
	modified:   kernel/include/syscall.h
	modified:   kernel/mem.c
2014-07-01 16:03:11 +09:00
ce7af5839d keep page.count valid through its life cycle 2014-05-07 21:24:45 +09:00
29c7d40005 use atomic operations for manipulating page.count 2014-05-07 21:24:45 +09:00
7eeafb0d85 change parameter types of arch-regs to "void *" 2014-04-03 15:33:34 +09:00
26d68d391d signal part 4 (sigsuspend etc) 2014-01-24 10:14:49 +09:00
a8c249ddaf signal (part 1) 2014-01-07 11:57:57 +09:00
03521e9c2c add copyrights 2013-11-14 16:49:40 +09:00
27172ad413 support private mapped file 2013-10-15 12:30:41 +09:00
1d69225532 mcexec forward signal to MIC process. 2013-08-19 12:17:23 +09:00
480f6d4c2f rewrite page_fault_handler() 2013-08-08 12:43:00 +09:00
78d9d3fcd2 Revert "trial implementation of private file mapping"
This reverts commit abe57218c4.
2013-07-26 16:44:39 +09:00
abe57218c4 trial implementation of private file mapping
for review only.  will soon be reverted.
2013-07-26 14:40:12 +09:00
221f2c0517 support SIGSEGV(page fault) and SIGILL(general protection error) 2013-07-26 11:53:00 +09:00
deb9cd4e75 implement sys_munmap() 2013-07-18 09:25:58 +09:00
3749696d3e simple signal handler and kill(2) support. 2013-07-18 08:53:28 +09:00
630170fb6a add ihk_mc_allocate_aligned_pages() 2013-07-10 13:11:18 +09:00
b59be07e9a implementing demand paging to make it possible to run Intel OpenMP programs 2013-07-04 15:41:12 +09:00
f9cb60ef33 IHK query free memory request and implementation 2013-06-24 09:00:48 +09:00
4a27a65cb0 resolved merge conflicts with futex code 2013-06-02 16:42:08 +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
bb4caccf98 add memory allocation check 2013-05-28 12:06:41 +09:00
0416247ba4 variable conversion fix 2013-05-10 12:57:46 +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
9818e199f6 support builtin-x86 and builtin-mic 2013-01-06 15:45:17 +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
9fd7f3ddf7 add func do_mod_exit
Conflicts:

	kernel/syscall.c
2012-11-29 14:01:26 +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
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
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