Line | |
---|
1 | /* The system call implemented in this file:
|
---|
2 | * m_type: SYS_VM_SETBUF
|
---|
3 | *
|
---|
4 | * The parameters for this system call are:
|
---|
5 | * m4_l1: Start of the buffer
|
---|
6 | * m4_l2: Length of the buffer
|
---|
7 | * m4_l3: End of main memory
|
---|
8 | */
|
---|
9 | #include "../system.h"
|
---|
10 |
|
---|
11 | #define VM_DEBUG 0 /* enable/ disable debug output */
|
---|
12 |
|
---|
13 | /*===========================================================================*
|
---|
14 | * do_vm_setbuf *
|
---|
15 | *===========================================================================*/
|
---|
16 | PUBLIC int do_vm_setbuf(m_ptr)
|
---|
17 | message *m_ptr; /* pointer to request message */
|
---|
18 | {
|
---|
19 | vm_base= m_ptr->m4_l1;
|
---|
20 | vm_size= m_ptr->m4_l2;
|
---|
21 | vm_mem_high= m_ptr->m4_l3;
|
---|
22 |
|
---|
23 | #if VM_DEBUG
|
---|
24 | kprintf("do_vm_setbuf: got 0x%x @ 0x%x for 0x%x\n",
|
---|
25 | vm_size, vm_base, vm_mem_high);
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | return OK;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.