Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/syscall/syscall.c

    rf35749e rad211c8  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
    32 * Copyright (c) 2005 Martin Decky
    43 * All rights reserved.
     
    4140#include <proc/task.h>
    4241#include <proc/program.h>
    43 #include <main/shutdown.h>
    4442#include <mm/as.h>
    4543#include <mm/page.h>
     
    6159        /* System management syscalls. */
    6260        [SYS_KIO] = (syshandler_t) sys_kio,
    63         [SYS_REBOOT] = (syshandler_t) sys_reboot,
    6461
    6562        /* Thread and task related syscalls. */
     
    144141{
    145142        /* Do userpace accounting */
    146         ipl_t ipl = interrupts_disable();
     143        irq_spinlock_lock(&THREAD->lock, true);
    147144        thread_update_accounting(true);
    148         interrupts_restore(ipl);
     145        irq_spinlock_unlock(&THREAD->lock, true);
    149146
    150147#ifdef CONFIG_UDEBUG
     
    194191
    195192        /* Do kernel accounting */
    196         ipl = interrupts_disable();
     193        irq_spinlock_lock(&THREAD->lock, true);
    197194        thread_update_accounting(false);
    198         interrupts_restore(ipl);
     195        irq_spinlock_unlock(&THREAD->lock, true);
    199196
    200197        return rc;
Note: See TracChangeset for help on using the changeset viewer.