Rev 1203 | Rev 1223 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1203 | Rev 1212 | ||
|---|---|---|---|
| Line 32... | Line 32... | ||
| 32 | #include <typedefs.h> |
32 | #include <typedefs.h> |
| 33 | #include <adt/bitmap.h> |
33 | #include <adt/bitmap.h> |
| 34 | #include <mm/slab.h> |
34 | #include <mm/slab.h> |
| 35 | #include <arch/pm.h> |
35 | #include <arch/pm.h> |
| 36 | #include <errno.h> |
36 | #include <errno.h> |
| - | 37 | #include <arch/cpu.h> |
|
| 37 | 38 | ||
| 38 | /** Enable I/O space range for task. |
39 | /** Enable I/O space range for task. |
| 39 | * |
40 | * |
| 40 | * Interrupts are disabled and task is locked. |
41 | * Interrupts are disabled and task is locked. |
| 41 | * |
42 | * |
| Line 88... | Line 89... | ||
| 88 | */ |
89 | */ |
| 89 | bitmap_clear_range(&task->arch.iomap, (index_t) ioaddr, (count_t) size); |
90 | bitmap_clear_range(&task->arch.iomap, (index_t) ioaddr, (count_t) size); |
| 90 | 91 | ||
| 91 | return 0; |
92 | return 0; |
| 92 | } |
93 | } |
| - | 94 | ||
| - | 95 | /** Enable/disable interrupts form syscall |
|
| - | 96 | * |
|
| - | 97 | * @param enable If non-zero, interrupts are enabled, otherwise disabled |
|
| - | 98 | * @param flags CP0 flags register |
|
| - | 99 | */ |
|
| - | 100 | __native ddi_int_control_arch(__native enable, __native *flags) |
|
| - | 101 | { |
|
| - | 102 | if (enable) |
|
| - | 103 | *flags |= RFLAGS_IF; |
|
| - | 104 | else |
|
| - | 105 | *flags &= ~RFLAGS_IF; |
|
| - | 106 | return 0; |
|
| - | 107 | } |
|