From: Cristiano Giuffrida Date: Mon, 28 Jun 2010 22:07:49 +0000 (+0000) Subject: Give RS a page table. X-Git-Tag: v3.1.8~316 X-Git-Url: http://zhaoyanbai.com/repos/man.named-journalprint.html?a=commitdiff_plain;h=180358ffb44dfe38f50e2f4c042632eabe43ee82;p=minix.git Give RS a page table. --- diff --git a/kernel/perf.h b/kernel/perf.h new file mode 100644 index 000000000..4bf9bb445 --- /dev/null +++ b/kernel/perf.h @@ -0,0 +1,12 @@ +#ifndef PERF_H +#define PERF_H + +/* This header file defines all performance-related constants and macros. */ + +/* Enable copy-on-write optimization for safecopy. */ +#define PERF_USE_COW_SAFECOPY 0 + +/* Use a private page table for critical system processes. */ +#define PERF_SYS_CORE_FULLVM 0 + +#endif /* PERF_H */ diff --git a/lib/libc/other/_vm_memctl.c b/lib/libc/other/_vm_memctl.c new file mode 100644 index 000000000..13822f40f --- /dev/null +++ b/lib/libc/other/_vm_memctl.c @@ -0,0 +1,12 @@ +#include +#define vm_memctl _vm_memctl +#include + +PUBLIC int vm_memctl(endpoint_t ep, int req) +{ + message m; + m.VM_RS_CTL_ENDPT = ep; + m.VM_RS_CTL_REQ = req; + + return _syscall(VM_PROC_NR, VM_RS_MEMCTL, &m); +} diff --git a/lib/libc/syscall/vm_memctl.S b/lib/libc/syscall/vm_memctl.S new file mode 100644 index 000000000..a56b213b9 --- /dev/null +++ b/lib/libc/syscall/vm_memctl.S @@ -0,0 +1,7 @@ +.text +.extern __vm_memctl +.globl _vm_memctl +.balign 2 + +_vm_memctl: + jmp __vm_memctl