fix: root: sync with latest uapi

This commit is contained in:
Paul Pan 2024-09-03 20:32:41 +08:00
parent 8918dac00c
commit ef45061230
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ root: root.o
$(LD) -Tlink.ld $^ -o $@ $(LD) -Tlink.ld $^ -o $@
init.cpio: root init.cpio: root
find . -type f -not -name "*.cpio" | cpio -ov -H crc > init.cpio find . -type f -executable | cpio -ov -H crc > init.cpio
clean: clean:
rm -f *.o root rm -f *.o root

View File

@ -11,15 +11,15 @@ _start:
.loop: .loop:
lb a2, 0(t0) lb a2, 0(t0)
beqz a2, .yield beqz a2, .yield
# msg: label = DebugPutChar(1), bits = 1, length = 3 # msg: label = DebugPutChar(1), bits = 1, length = 3, transfer_cap = false
# ptr: (any) # ptr: (any)
syscall (1<<13 | 0<<7 | 3), 0 syscall (1<<14 | 0<<8 | 3<<1 | 0), 0
addi t0, t0, 1 addi t0, t0, 1
j .loop j .loop
.yield: .yield:
# msg: label = Yield(2), bits = 1, length = 2 # msg: label = Yield(2), bits = 1, length = 2, transfer_cap = false
# ptr: (any) # ptr: (any)
syscall (2<<13 | 0<<7 | 2), 0 syscall (2<<14 | 0<<8 | 2<<1 | 0), 0
j _start j _start
.data .data