.section .text._start, "ax"
.global _start
_start:
    // Setup stack pointer if not already done (though kernel loader uses kernel stack)
    // We assume we are in S-mode as a fiber.

    // Call main(0, NULL)
    li a0, 0
    li a1, 0
    call main

    // Call exit(result)
    call exit

1:  j 1b
