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
This commit is contained in:
Naoki Hamada
2014-07-01 16:50:25 +09:00
parent 83ced89fa3
commit 53a80e0720
4 changed files with 42 additions and 5 deletions

View File

@@ -211,8 +211,15 @@ static void unhandled_page_fault(struct process *proc, void *fault_addr, void *r
/* core dump framework test */
struct syscall_request request IHK_DMA_ALIGN;
int ret;
struct coretable coreentry[3];
coreentry[0] = {8, virt_to_phys("this is ")};
coreentry[1] = {7, virt_to_phys("a test ")};
coreentry[2] = {15, virt_to_phys("for coredump.\n")};
request.number = __NR_coredump;
request.args[0] = 3;
request.args[1] = virt_to_phys(&coreentry);
/* no data for now */
ret = do_syscall(&request, proc->uctx,
proc->cpu_id, proc->pid);