Draft: lab 3 irq wtf

This commit is contained in:
2025-03-24 10:48:35 +08:00
parent 9d19b8b3b6
commit 98327b148a
19 changed files with 386 additions and 142 deletions

11
userprog/Start.S Normal file
View File

@@ -0,0 +1,11 @@
.section ".text"
.global _start
_start:
mov x0, 0
loop:
add x0, x0, 1
svc 0
cmp x0, 5
blt loop
wait:
b wait

18
userprog/linker.ld Normal file
View File

@@ -0,0 +1,18 @@
ENTRY(_start)
SECTIONS
{
.text : {
*(.text.start)
*(.text)
}
.rodata : {
*(.rodata)
}
.data : {
*(.data)
}
.bss : {
*(.bss)
}
}