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