mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-20 20:10:14 +00:00
add csrc
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
|
||||
extern void enable_interrupt();
|
||||
|
||||
void trap_handler(void *epc, unsigned int cause){
|
||||
*((int*)0x4) = 0x2022;
|
||||
}
|
||||
|
||||
int main(){
|
||||
*((int*)0x4) = 0xDEADBEEF;
|
||||
enable_interrupt();
|
||||
for(;;);
|
||||
}
|
||||
Reference in New Issue
Block a user