initcode.s 282 B

1234567891011121314151617181920212223
  1. #include "/sys/src/libc/9syscall/sys.h"
  2. TEXT main(SB),$0
  3. /*
  4. * exec("/boot", bootv)
  5. */
  6. LEAL 4(SP),AX
  7. PUSHL AX
  8. LEAL boot(SB),AX
  9. PUSHL AX
  10. PUSHL $0
  11. MOVL $EXEC,AX
  12. INT $64
  13. /*
  14. * should never get here
  15. */
  16. here:
  17. JMP here
  18. GLOBL boot+0(SB),$6
  19. DATA boot+0(SB)/5,$"/boot"