Changeset 440 for trunk/kernel/syscalls/sys_wait.c
- Timestamp:
- May 3, 2018, 5:51:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_wait.c
r438 r440 2 2 * sys_wait.c - wait termination or blocking of a child process. 3 3 * 4 * Author Alain Greiner (2016,2017 )4 * Author Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 35 35 { 36 36 error_t error; 37 paddr_t paddr;37 vseg_t * vseg; 38 38 xptr_t iter_xp; 39 39 xptr_t child_xp; … … 59 59 60 60 // check status in user space 61 error = vmm_ v2p_translate( false , status , &paddr);61 error = vmm_get_vseg( process, (intptr_t)status , &vseg ); 62 62 63 63 if( error ) … … 65 65 66 66 #if DEBUG_SYSCALLS_ERROR 67 printk("\n[ERROR] in %s : status buffer unmapped for thread %x in process %x\n", 68 __FUNCTION__ , this->trdid , process->pid ); 67 printk("\n[ERROR] in %s : status buffer %x unmapped for thread %x in process %x\n", 68 __FUNCTION__ , (intptr_t)status, this->trdid , process->pid ); 69 vmm_display( process , false ); 69 70 #endif 70 71 this->errno = EINVAL;
Note: See TracChangeset
for help on using the changeset viewer.