Changes in kernel/generic/src/syscall/syscall.c [f35749e:ad211c8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/syscall/syscall.c
rf35749e rad211c8 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2005 Martin Decky 4 3 * All rights reserved. … … 41 40 #include <proc/task.h> 42 41 #include <proc/program.h> 43 #include <main/shutdown.h>44 42 #include <mm/as.h> 45 43 #include <mm/page.h> … … 61 59 /* System management syscalls. */ 62 60 [SYS_KIO] = (syshandler_t) sys_kio, 63 [SYS_REBOOT] = (syshandler_t) sys_reboot,64 61 65 62 /* Thread and task related syscalls. */ … … 144 141 { 145 142 /* Do userpace accounting */ 146 i pl_t ipl = interrupts_disable();143 irq_spinlock_lock(&THREAD->lock, true); 147 144 thread_update_accounting(true); 148 i nterrupts_restore(ipl);145 irq_spinlock_unlock(&THREAD->lock, true); 149 146 150 147 #ifdef CONFIG_UDEBUG … … 194 191 195 192 /* Do kernel accounting */ 196 i pl = interrupts_disable();193 irq_spinlock_lock(&THREAD->lock, true); 197 194 thread_update_accounting(false); 198 i nterrupts_restore(ipl);195 irq_spinlock_unlock(&THREAD->lock, true); 199 196 200 197 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.