Changeset 81e1396 in mainline


Ignore:
Timestamp:
2005-10-25T22:36:09Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34d9ab28
Parents:
56d40fe
Message:

Small sparc64 changes.
Start native boot loader.

Location:
arch/sparc64
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/_link.ld

    r56d40fe r81e1396  
    4040                kdata_end = .;
    4141        }
     42       
     43        /DISCARD/ : {
     44                *(.comment);
     45                *(.note*);
     46        }
     47
    4248}
  • arch/sparc64/boot/Makefile

    r56d40fe r81e1396  
    1 .PHONY: nothing build clean
     1BINUTILS_DIR=/usr/local/sparc64/bin
     2TARGET=sparc64-linux-gnu
     3
     4.PHONY: nothing build
    25
    36nothing:
    47
    5 build:
    6         touch boot.bin
     8build: boot.bin
     9        cp boot.bin ../../../load.bin
     10
     11CC=$(BINUTILS_DIR)/$(TARGET)-gcc
     12AS=$(BINUTILS_DIR)/$(TARGET)-as
     13LD=$(BINUTILS_DIR)/$(TARGET)-ld
     14
     15CPPFLAGS=$(DEFS) -nostdinc -I../include
     16CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O2
     17LFLAGS=-no-check-sections -N -T _link.ld -s
     18
     19boot.bin: boot.aout
     20        dd if=/dev/zero of=$@ bs=512 count=16
     21        dd if=boot.aout of=$@ bs=512 seek=1 conv=notrunc
     22
     23boot.aout: boot.o
     24        $(LD) $(LFLAGS) boot.o -o $@
     25
     26boot.o: boot.S
     27        $(CC) $(CFLAGS) -c boot.S -o $@
    728
    829clean:
    9         -rm *.bin
     30        -rm *.o *.bin *.aout
  • arch/sparc64/include/context.h

    r56d40fe r81e1396  
    3434#include <align.h>
    3535
    36 #define STACK_ITEM_SIZE                 16
     36#define STACK_ITEM_SIZE                 8
    3737
    3838/*
  • arch/sparc64/src/dummy.s

    r56d40fe r81e1396  
    9494dummy:
    95950:
    96         ba,pt   %xcc, 0b
     96        b 0b
    9797        nop
  • arch/sparc64/src/start.S

    r56d40fe r81e1396  
    3232kernel_image_start:
    33330:
    34         b 0b
     34        b 0b
    3535        nop
Note: See TracChangeset for help on using the changeset viewer.