Changeset 9a61ba5 in mainline for kernel/generic/src/main/uinit.c


Ignore:
Timestamp:
2009-07-13T19:34:44Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
716fb9d
Parents:
450448d
Message:

IRQ-safe switch to userspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/uinit.c

    r450448d r9a61ba5  
    8080
    8181        free((uspace_arg_t *) arg);
     82       
     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();
    8290        userspace(&uarg);
    8391}
Note: See TracChangeset for help on using the changeset viewer.