/branches/dynload/boot/arch/sparc64/loader/asm.S |
---|
30,9 → 30,6 |
#include <stack.h> |
#include <register.h> |
.register %g2, #scratch |
.register %g3, #scratch |
.text |
.global halt |
44,7 → 41,8 |
nop |
memcpy: |
mov %o0, %o3 ! save dst |
.register %g2, #scratch |
.register %g3, #scratch |
add %o1, 7, %g1 |
and %g1, -8, %g1 |
cmp %o1, %g1 |
63,7 → 61,7 |
mov %g2, %g3 |
2: |
jmp %o7 + 8 ! exit point |
mov %o3, %o0 |
mov %o1, %o0 |
3: |
and %g1, -8, %g1 |
cmp %o0, %g1 |
97,7 → 95,7 |
mov %g2, %g3 |
jmp %o7 + 8 ! exit point |
mov %o3, %o0 |
mov %o1, %o0 |
jump_to_kernel: |
/* |