equal
deleted
inserted
replaced
49 asm("mov r1, #1"); |
49 asm("mov r1, #1"); |
50 asm("str r1, [r0, #24]"); |
50 asm("str r1, [r0, #24]"); |
51 asm("bx lr"); |
51 asm("bx lr"); |
52 } |
52 } |
53 |
53 |
54 // |
|
55 //Interrupt Controller Acces Functions |
|
56 // |
|
57 |
|
58 // Enable specified motherboard Int on either the PIC/SIC |
|
59 EXPORT_C void __NAKED__ TSyborg::EnableInt(TUint /*anId*/) |
|
60 { |
|
61 asm("ldr r1, __KHwInt"); |
|
62 asm("str r0, [r1, #20]"); |
|
63 asm("bx lr"); |
|
64 } |
|
65 |
|
66 // Disable specified motherboard Int on either the PIC/SIC |
|
67 EXPORT_C void __NAKED__ TSyborg::DisableInt(TUint /*anId*/) |
|
68 { |
|
69 asm("ldr r1, __KHwInt"); |
|
70 asm("str r0, [r1, #16]"); |
|
71 asm("bx lr"); |
|
72 |
|
73 asm("__KHwInt:"); |
|
74 asm(".word %a0" : : "i" (TInt)(KHwBaseSic)); |
|
75 } |
|