/trunk/kernel/arch/ppc32/src/asm.S |
66,9 → 66,9 |
|
mr sp, r4 |
|
# %r3 is defined to hold pcb_ptr - set it to 0 |
# %r6 is defined to hold pcb_ptr - set it to 0 |
|
xor r3, r3, r3 |
xor r6, r6, r6 |
|
# jump to userspace |
|
/trunk/uspace/lib/libc/arch/ppc32/src/entry.s |
34,11 → 34,12 |
|
## User-space task entry point |
# |
# r3 contains the PCB pointer |
# r6 contains the PCB pointer |
# |
__entry: |
# Pass the PCB pointer to __main() as the first argument. |
# Since the first argument is passed in r3, no operation is needed. |
# The first argument is passed in r3. |
mr %r3, %r6 |
bl __main |
|
bl __exit |