Changeset 94d614e in mainline for kernel/arch/sparc64/src/start.S
- Timestamp:
- 2006-07-13T17:32:38Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a5f76758
- Parents:
- 63cda71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/start.S
r63cda71 r94d614e 27 27 # 28 28 29 #include <arch/boot/boot.h>30 29 #include <arch/regdef.h> 31 30 … … 40 39 * Here is where the kernel is passed control 41 40 * from the boot loader. 41 * 42 * The registers are expected to be in this state: 43 * %o0 bootinfo structure address 44 * %o1 bootinfo structure size 42 45 */ 43 46 … … 46 49 flushw ! flush all but the active register window 47 50 51 /* 52 * Disable interrupts and disable 32-bit address masking. 53 */ 48 54 rdpr %pstate, %l0 49 and %l0, ~ PSTATE_AM_BIT, %l055 and %l0, ~(PSTATE_AM_BIT|PSTATE_IE_BIT), %l0 50 56 wrpr %l0, 0, %pstate 51 57 52 set ofw_cif, %l0 53 54 call ofw_init 55 stx %o4, [%l0] 56 57 call ofw_init_memmap 58 /* 59 * Copy the bootinfo structure passed from the boot loader 60 * to the kernel bootinfo structure. 61 */ 62 mov %o1, %o2 63 mov %o0, %o1 64 set bootinfo, %o0 65 call memcpy 58 66 nop 59 67
Note:
See TracChangeset
for help on using the changeset viewer.