- Timestamp:
- 2009-12-07T21:55:56Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a47d49f
- Parents:
- 45d5f86
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/arm32/src/entry.s
r45d5f86 r82a04c6 36 36 # 37 37 # r1 contains the PCB pointer 38 # r2 contains the RAS page address 38 39 # 39 40 __entry: 41 # Store the RAS page address into the ras_page variable 42 ldr r0, =ras_page 43 str r2, [r0] 44 40 45 # Pass pcb_ptr to __main as the first argument (in r0) 41 46 mov r0, r1 … … 43 48 44 49 bl __exit 50 51 .data 52 53 .global ras_page 54 ras_page: 55 .long 0 56 -
uspace/srv/loader/arch/arm32/arm32.s
r45d5f86 r82a04c6 36 36 # Jump to a program entry point 37 37 program_run: 38 # load ras_page address to r2 39 ldr r2, =ras_page 40 ldr r2, [r2] 38 41 # pcb is passed to the entry point in r1 (where it already is) 39 42 mov r15, r0
Note:
See TracChangeset
for help on using the changeset viewer.