diff --git a/root/Makefile b/root/Makefile index 6b89509..84b0466 100644 --- a/root/Makefile +++ b/root/Makefile @@ -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 diff --git a/root/root.S b/root/root.S index 6e8e4eb..4d8c41f 100644 --- a/root/root.S +++ b/root/root.S @@ -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