Changed logic checking for valid device.
[minix3.git] / kernel / system / do_vm_setbuf.c
blob484c43559482f4f13def1883b54f18ff8d393715
1 /* The system call implemented in this file:
2 * m_type: SYS_VM_SETBUF
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"
11 #define VM_DEBUG 0 /* enable/ disable debug output */
13 /*===========================================================================*
14 * do_vm_setbuf *
15 *===========================================================================*/
16 PUBLIC int do_vm_setbuf(m_ptr)
17 message *m_ptr; /* pointer to request message */
19 vm_base= m_ptr->m4_l1;
20 vm_size= m_ptr->m4_l2;
21 vm_mem_high= m_ptr->m4_l3;
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
28 return OK;