mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2025-02-21 14:17:09 +01:00
18 lines
399 B
C
18 lines
399 B
C
#ifndef EXCEPTION_H__
|
|
#define EXCEPTION_H__
|
|
|
|
|
|
#define TRIGGER_CODE_ERROR (0)
|
|
|
|
#define EXCEPTION_TRIGGER(code) { asm volatile ("syscall %[c]\n" :: [c] "i" (code)); }
|
|
|
|
|
|
void exception_install (void);
|
|
void exception_enable_interrupts (void);
|
|
void exception_disable_interrupts (void);
|
|
void exception_enable_watchdog (void);
|
|
void exception_disable_watchdog (void);
|
|
|
|
|
|
#endif
|