Changeset 2e672fd in mainline for arch/sparc64/loader
- Timestamp:
- 2006-07-10T20:48:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- daab5145
- Parents:
- 822b64e
- Location:
- arch/sparc64/loader
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/loader/asm.S
r822b64e r2e672fd 26 26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 # 28 29 #define STACK_WINDOW_SAVE_AREA_SIZE (16*8) 30 31 #define PSTATE_AM_BIT 8 28 32 29 33 .text … … 95 99 96 100 jump_to_kernel: 97 set ofw , %l0101 set ofw_cif, %l0 98 102 jmp %o0 ! jump to kernel 99 103 ldx [%l0], %o4 ! pass OpenFirmware address in %o4 104 105 .global ofw 106 ofw: 107 save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp 108 set ofw_cif, %l0 109 ldx [%l0], %l0 110 111 rdpr %pstate, %l1 112 and %l1, ~PSTATE_AM_BIT, %l2 113 wrpr %l2, 0, %pstate 114 115 jmpl %l0, %o7 116 mov %i0, %o0 117 118 wrpr %l1, 0, %pstate 119 120 ret 121 restore %o0, 0, %o0 -
arch/sparc64/loader/boot.S
r822b64e r2e672fd 29 29 #define INITIAL_STACK 0x0 30 30 31 #define PSTATE_IE_BIT 2 32 31 33 .register %g2, #scratch 32 34 .register %g3, #scratch … … 53 55 flushw 54 56 57 /* 58 * Disable interrupts. 59 */ 60 rdpr %pstate, %g2 61 and %g2, ~PSTATE_IE_BIT, %g2 ! mask the Interrupt Enable bit 62 wrpr %g2, 0, %pstate 63 55 64 # TODO: set initial stack 56 65 57 set ofw , %l066 set ofw_cif, %l0 58 67 59 68 call init ! initialize OpenFirmware -
arch/sparc64/loader/main.c
r822b64e r2e672fd 52 52 printf(" %L: %s image (size %d bytes)\n", components[i].start, components[i].name, components[i].size); 53 53 54 screen_t scr;55 56 ofw_screen(&scr);57 printf("\n%P: fb, %dx%dx%d\n", ofw_translate(scr.addr), scr.width, scr.height, scr.bpp);58 59 60 54 printf("\nCopying components\n"); 61 55 unsigned int top = 0; -
arch/sparc64/loader/ofw.c
r822b64e r2e672fd 40 40 } 41 41 } 42 43 int ofw_translate_failed(ofw_arg_t flag) 44 { 45 return flag != -1; 46 }
Note:
See TracChangeset
for help on using the changeset viewer.