Changeset 118 for trunk/hal/x86_64


Ignore:
Timestamp:
Jul 3, 2017, 12:33:10 PM (7 years ago)
Author:
max@…
Message:

add hal_restore_irq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_irqmask.c

    r99 r118  
    4545inline void hal_restore_irq(uint32_t old)
    4646{
    47         x86_panic((char *)__func__);
     47        if (interrupts_enabled)
     48                hal_disable_irq(&old);
     49        else
     50                hal_enable_irq(&old);
    4851}
    4952
Note: See TracChangeset for help on using the changeset viewer.