Changeset c1b455e in mainline
- Timestamp:
- 2008-11-13T10:53:59Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bfce7d9
- Parents:
- 37e518b
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/asm.S
r37e518b rc1b455e 67 67 mr sp, r4 68 68 69 # %r 3is defined to hold pcb_ptr - set it to 070 71 xor r 3, r3, r369 # %r6 is defined to hold pcb_ptr - set it to 0 70 71 xor r6, r6, r6 72 72 73 73 # jump to userspace -
uspace/lib/libc/arch/ppc32/src/entry.s
r37e518b rc1b455e 35 35 ## User-space task entry point 36 36 # 37 # r 3contains the PCB pointer37 # r6 contains the PCB pointer 38 38 # 39 39 __entry: 40 40 # Pass the PCB pointer to __main() as the first argument. 41 # Since the first argument is passed in r3, no operation is needed. 41 # The first argument is passed in r3. 42 mr %r3, %r6 42 43 bl __main 43 44 -
uspace/srv/loader/arch/ppc32/ppc32.s
r37e518b rc1b455e 37 37 program_run: 38 38 mtctr %r3 39 mr %r 3, %r4 # Pass pcb to the entry point in %r339 mr %r6, %r4 # Pass pcb to the entry point in %r6 40 40 bctr
Note:
See TracChangeset
for help on using the changeset viewer.