Draft: lab 3 irq wtf
This commit is contained in:
11
userprog/Start.S
Normal file
11
userprog/Start.S
Normal 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
18
userprog/linker.ld
Normal file
@@ -0,0 +1,18 @@
|
||||
ENTRY(_start)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.text : {
|
||||
*(.text.start)
|
||||
*(.text)
|
||||
}
|
||||
.rodata : {
|
||||
*(.rodata)
|
||||
}
|
||||
.data : {
|
||||
*(.data)
|
||||
}
|
||||
.bss : {
|
||||
*(.bss)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user