Changeset 48c1ef9 in mainline for arch/ppc64/src/boot/boot.S


Ignore:
Timestamp:
2006-05-21T20:38:18Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
040542aa
Parents:
bd55bbb
Message:

port ppc32 changes to ppc64 (raw)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc64/src/boot/boot.S

    rbd55bbb r48c1ef9  
    3535kernel_image_start:
    3636
    37         # load temporary stack
     37        # load temporal kernel stack
    3838       
    39         lis sp, end_stack@ha
    40         addi sp, sp, end_stack@l
     39        lis sp, kernel_stack@ha
     40        addi sp, sp, kernel_stack@l
     41       
     42        # set kernel stack for interrupt handling
     43       
     44        mr r31, sp
     45        subis r31, r31, 0x8000
     46        mtsprg0 r31
    4147       
    4248        # r3 contains physical address of bootinfo_t
    4349        # r4 contains size of bootinfo_t
    4450       
    45         lis r31, 0x80000000@ha
    46         addi r31, r31, 0x80000000@l
    47        
    48         add r3, r3, r31
     51        addis r3, r3, 0x8000
    4952
    5053        lis r31, bootinfo@ha
     
    6871        bootinfo_end:
    6972       
     73        bl arch_pre_main
    7074        b main_bsp
    7175
    7276.section K_DATA_START, "aw", @progbits
    7377
     78.align 12
     79kernel_stack_bottom:
    7480        .space TEMP_STACK_SIZE
    75 end_stack:
     81kernel_stack:
Note: See TracChangeset for help on using the changeset viewer.