Changeset 8688a6e in mainline


Ignore:
Timestamp:
2009-08-08T10:31:53Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d5f8f19, e49b57b2
Parents:
586cd56
Message:

Let the uinit kernel thread run with interrupts enabled by default
and disable interrupts only for special cases such as sparc64.

Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sparc64.c

    r586cd56 r8688a6e  
    135135void userspace(uspace_arg_t *kernel_uarg)
    136136{
     137        (void) interrupts_disable();
    137138        switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
    138139            ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE
  • kernel/generic/src/main/uinit.c

    r586cd56 r8688a6e  
    8181        free((uspace_arg_t *) arg);
    8282       
    83         /*
    84          * Disable interrupts so that the execution of userspace() is not
    85          * disturbed by any interrupts as some of the userspace()
    86          * implementations will switch to the userspace stack before switching
    87          * the mode.
    88          */
    89         (void) interrupts_disable();
    9083        userspace(&uarg);
    9184}
Note: See TracChangeset for help on using the changeset viewer.