Changeset c7c0b89b in mainline for arch/amd64/src/asm_utils.S


Ignore:
Timestamp:
2006-04-22T18:05:16Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
613bc54
Parents:
68091bd
Message:

Added uspace call to enable/disable interrupts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/asm_utils.S

    r68091bd rc7c0b89b  
    244244        sti
    245245        movq %r9, %rcx      # Exchange last parameter as a third
     246       
     247        cmp $2, %r8          # Is this SYS_INT_CONTROL
     248        je sys_int_ctrl
     249       
    246250        call syscall_handler
     251sys_end:       
    247252        cli                 # We will be touching stack pointer
    248253               
     
    251256        movq 0(%rsp), %rsp
    252257        sysretq
     258       
     259sys_int_ctrl:
     260        mov %rsp, %rsi      # Pointer to flags
     261        call ddi_int_control
     262        jmp sys_end
     263       
    253264               
    254265.data
Note: See TracChangeset for help on using the changeset viewer.