mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
fix: root: sync with latest uapi
This commit is contained in:
parent
8918dac00c
commit
ef45061230
@ -14,7 +14,7 @@ root: root.o
|
||||
$(LD) -Tlink.ld $^ -o $@
|
||||
|
||||
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:
|
||||
rm -f *.o root
|
||||
|
@ -11,15 +11,15 @@ _start:
|
||||
.loop:
|
||||
lb a2, 0(t0)
|
||||
beqz a2, .yield
|
||||
# msg: label = DebugPutChar(1), bits = 1, length = 3
|
||||
# msg: label = DebugPutChar(1), bits = 1, length = 3, transfer_cap = false
|
||||
# ptr: (any)
|
||||
syscall (1<<13 | 0<<7 | 3), 0
|
||||
syscall (1<<14 | 0<<8 | 3<<1 | 0), 0
|
||||
addi t0, t0, 1
|
||||
j .loop
|
||||
.yield:
|
||||
# msg: label = Yield(2), bits = 1, length = 2
|
||||
# msg: label = Yield(2), bits = 1, length = 2, transfer_cap = false
|
||||
# ptr: (any)
|
||||
syscall (2<<13 | 0<<7 | 2), 0
|
||||
syscall (2<<14 | 0<<8 | 2<<1 | 0), 0
|
||||
j _start
|
||||
|
||||
.data
|
||||
|
Loading…
Reference in New Issue
Block a user