Rev 1191 | Rev 1223 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1191 | Rev 1212 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #include <ddi/ddi.h> |
29 | #include <ddi/ddi.h> |
30 | #include <proc/task.h> |
30 | #include <proc/task.h> |
31 | #include <arch/types.h> |
31 | #include <arch/types.h> |
32 | #include <typedefs.h> |
32 | #include <typedefs.h> |
- | 33 | #include <security/cap.h> |
|
- | 34 | #include <arch.h> |
|
- | 35 | #include <arch/cp0.h> |
|
33 | 36 | ||
34 | /** Enable I/O space range for task. |
37 | /** Enable I/O space range for task. |
35 | * |
38 | * |
36 | * Interrupts are disabled and task is locked. |
39 | * Interrupts are disabled and task is locked. |
37 | * |
40 | * |
Line 43... | Line 46... | ||
43 | */ |
46 | */ |
44 | int ddi_enable_iospace_arch(task_t *task, __address ioaddr, size_t size) |
47 | int ddi_enable_iospace_arch(task_t *task, __address ioaddr, size_t size) |
45 | { |
48 | { |
46 | return 0; |
49 | return 0; |
47 | } |
50 | } |
- | 51 | ||
- | 52 | /** Enable/disable interrupts form syscall |
|
- | 53 | * |
|
- | 54 | * @param enable If non-zero, interrupts are enabled, otherwise disabled |
|
- | 55 | * @param flags CP0 flags register |
|
- | 56 | */ |
|
- | 57 | __native ddi_int_control_arch(__native enable, __native *flags) |
|
- | 58 | { |
|
- | 59 | if (enable) |
|
- | 60 | *flags |= cp0_status_ie_enabled_bit; |
|
- | 61 | else |
|
- | 62 | *flags &= ~cp0_status_ie_enabled_bit; |
|
- | 63 | return 0; |
|
- | 64 | } |