Changeset 738ad2e in mainline for arch/ia32/src


Ignore:
Timestamp:
2006-05-02T18:19:43Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
281224a
Parents:
e34a141
Message:

Changed interrupt_control to preemption_control.

Location:
arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/asm.S

    re34a141 r738ad2e  
    8787# and call exc_dispatch().
    8888#
    89 #define INTERRUPT_ALIGN 128
     89#define INTERRUPT_ALIGN 64
    9090.macro handler i n
    9191
     
    109109       
    110110        sti
    111         cmp $2, %edi           # Is this SYS_INT_CONTROL?
    112         je sys_int_ctrl
    113111       
    114112        call syscall_handler   # syscall_handler(ax,cx,dx,si,di)
    115 sysc_end:               
    116113        cli
    117114        addl $20, %esp         # clean-up of parameters
     
    124121        CLEAR_NT_FLAG
    125122        iret
    126 sys_int_ctrl:               # Interrupt control
    127         mov %esp, %eax
    128         add $44, %eax
    129         mov %eax, 4(%esp)   # Pointer to flags - 2nd argument
    130         call ddi_int_control
    131         jmp sysc_end
    132123.else   
    133124        /*
  • arch/ia32/src/ddi/ddi.c

    re34a141 r738ad2e  
    102102}
    103103
    104 /** Enable/disable interrupts for syscall
    105  *
    106  * @param enable If non-zero, interrupts are enabled, otherwise disabled
    107  * @param flags EFLAGS flags register
    108  */
    109 __native ddi_int_control_arch(__native enable, __native *flags)
    110 {
    111         if (enable)
    112                 *flags |= EFLAGS_IF;
    113         else
    114                 *flags &= ~EFLAGS_IF;
    115         return 0;
    116 }
    117 
    118104/** Install I/O Permission bitmap.
    119105 *
Note: See TracChangeset for help on using the changeset viewer.