Changeset b97b348 in mainline for kernel/arch/sparc64/src/sun4v/start.S
- Timestamp:
- 2010-05-12T20:00:19Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be6cef1b
- Parents:
- f09d891
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/sun4v/start.S
rf09d891 rb97b348 93 93 * 94 94 * The registers are expected to be in this state: 95 * - %o0 bootinfo structure address (BSP only) 96 * - %o1 starting address of physical memory 95 * - %o0 starting address of physical memory 97 96 * + bootstrap processor flag 98 97 * bits 63...1: physical memory starting address / 2 99 98 * bit 0: non-zero on BSP processor, zero on AP processors 99 * - %o1 bootinfo structure address (BSP only) 100 * 100 101 * 101 102 * Moreover, we depend on boot having established the following environment: … … 107 108 kernel_image_start: 108 109 mov BSP_FLAG, %l0 109 and %o 1, %l0, %l7 ! l7 <= bootstrap processor?110 andn %o 1, %l0, %l6 ! l6 <= start of physical memory111 or %o 0, %g0, %l0110 and %o0, %l0, %l7 ! l7 <= bootstrap processor? 111 andn %o0, %l0, %l6 ! l6 <= start of physical memory 112 or %o1, %g0, %l1 112 113 113 114 ! Get bits (PHYSMEM_ADDR_SIZE - 1):13 of physmem_base. … … 246 247 sub %sp, STACK_BIAS, %sp 247 248 248 or %l0, %g0, %o0 249 /* 250 * Call arch_pre_main(bootinfo) 251 */ 252 or %l1, %g0, %o0 249 253 call arch_pre_main 250 254 nop
Note:
See TracChangeset
for help on using the changeset viewer.