Changeset 02e7700 in mainline


Ignore:
Timestamp:
2006-04-22T20:07:20Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab4ac14
Parents:
3319862
Message:

initially fill segment registers

Location:
arch/ppc32/loader
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/loader/Makefile

    r3319862 r02e7700  
    7575
    7676kernel.o: $(KERNEL)
    77         $(OBJCOPY) -I binary -O elf32-powerpc -B powerpc --rename-section .data=.image $(KERNEL) $@
     77        $(OBJCOPY) -I binary -O elf32-powerpc -B powerpc:common --rename-section .data=.image $(KERNEL) $@
    7878
    7979%.o: %.S
  • arch/ppc32/loader/asm.S

    r3319862 r02e7700  
    125125        rfi
    126126
    127 .section REALMODE
     127.section REALMODE, "ax"
    128128.align PAGE_WIDTH
    129129.global real_mode
     
    169169        copy_end:
    170170       
    171         # invalidate segment registers
     171        # initially fill segment registers
    172172
    173173        li r31, 16
    174174        mtctr r31
    175175        li r31, 0
    176         li r30, 0
     176        li r30, 0x2000
    177177
    178178        seg_fill:
    179179       
    180180                mtsrin r30, r31
     181                addi r30, r30, 0x111
    181182                addis r31, r31, 0x1000    # move to next SR
    182183               
  • arch/ppc32/loader/boot.S

    r3319862 r02e7700  
    2929#include "regname.h"
    3030
    31 .section BOOTSTRAP
     31.section BOOTSTRAP, "ax"
    3232
    3333.global start
Note: See TracChangeset for help on using the changeset viewer.