diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
commit | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch) | |
tree | d8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/9/mtx/initcode |
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/9/mtx/initcode')
-rwxr-xr-x | sys/src/9/mtx/initcode | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/src/9/mtx/initcode b/sys/src/9/mtx/initcode new file mode 100755 index 000000000..1d846abe5 --- /dev/null +++ b/sys/src/9/mtx/initcode @@ -0,0 +1,25 @@ +#include "/sys/src/libc/9syscall/sys.h" + +/* + * we pass in the argument of the exec parameters as 0(FP) + */ + +TEXT main(SB),$8 + + MOVW $setSB(SB), R2 + MOVW $boot(SB), R3 + ADD $12, R1, R4 /* get a pointer to 0(FP) */ + MOVW R3, 4(R1) + MOVW R4, 8(R1) + MOVW $EXEC, R3 + SYSCALL + + /* should never get here */ +loop: + BR loop + +DATA boot+0(SB)/5,$"/boot" +DATA boot+5(SB)/5,$"/boot" +DATA bootv+0(SB)/4,$boot+6(SB) +GLOBL boot+0(SB),$11 +GLOBL bootv+0(SB),$8 |