diff options
Diffstat (limited to 'firmware/system.c')
-rw-r--r-- | firmware/system.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/system.c b/firmware/system.c index 3ec56f7c15..cb0cb29778 100644 --- a/firmware/system.c +++ b/firmware/system.c | |||
@@ -318,18 +318,6 @@ void system_reboot (void) | |||
318 | "r"(*(int*)0),"r"(4)); | 318 | "r"(*(int*)0),"r"(4)); |
319 | } | 319 | } |
320 | 320 | ||
321 | /**************************************************************************** | ||
322 | * Interrupt level setting | ||
323 | ****************************************************************************/ | ||
324 | int set_irq_level(int level) | ||
325 | { | ||
326 | int i; | ||
327 | /* Read the old level and set the new one */ | ||
328 | asm volatile ("stc sr, %0" : "=r" (i)); | ||
329 | asm volatile ("ldc %0, sr" : : "r" (level << 4)); | ||
330 | return (i >> 4) & 0x0f; | ||
331 | } | ||
332 | |||
333 | void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */ | 321 | void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */ |
334 | { | 322 | { |
335 | bool state = true; | 323 | bool state = true; |