diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-01 15:36:38 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-01 15:36:38 +0000 |
commit | 901d54c0a752adcdf9f140fb1dc64263e237ccea (patch) | |
tree | b2cdf08fe9fda21ee7c4efb0de2e0bdb5b869715 /sys/arch/powerpc | |
parent | d3677f93fa5576e45975ec3efd7f876204dbd984 (diff) |
The "powerpc" port which has supported the newer Apple Macintosh powerpc based
is being renamed to macppc. This is to allow sharing of common code
between different powerpc base platforms.
Most of the work involved in the renaming process was performed by miod@
Files moved from powerpc/stand/boot.mac to macppc/stand/boot.mac
These files are the bootloader for the older Openfirmware, not currently
supported.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/stand/boot.mac/Makefile | 36 | ||||
-rw-r--r-- | sys/arch/powerpc/stand/boot.mac/hack-coff.c | 29 | ||||
-rw-r--r-- | sys/arch/powerpc/stand/boot.mac/ld.script | 68 |
3 files changed, 0 insertions, 133 deletions
diff --git a/sys/arch/powerpc/stand/boot.mac/Makefile b/sys/arch/powerpc/stand/boot.mac/Makefile deleted file mode 100644 index 8cb43416b21..00000000000 --- a/sys/arch/powerpc/stand/boot.mac/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# $OpenBSD: Makefile,v 1.8 2001/06/23 01:53:02 drahn Exp $ -# $NetBSD: Makefile,v 1.1 1996/09/30 16:35:05 ws Exp $ - -R= .. -.PATH: $(.CURDIR)/$(R) -RELOC= 6c0000 -ENTRY= _entry -PROG= boot.mac -SRCS= Locore.c boot.c ofdev.c net.c netif_of.c alloc.c cache.c hfs.c -CFLAGS+= -DDEBUG -DNETIF_DEBUG -NOMAN= -INSTALL_STRIP= -BINDIR= /usr/mdec -OBJCOPY?= objcopy -OBJCOPY_ARGS= -O aixcoff-rs6000 -R .stab -R .stabstr -R .comment -LDFLAGS= -X -Ttext ${RELOC} -e $(ENTRY) -T ${.CURDIR}/ld.script - -CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. -CPPFLAGS+= -DRELOC=0x${RELOC} -CPPFLAGS+= -DFIRMWORKSBUGS -CPPFLAGS+= -DPOWERPC_BOOT_ELF -CPPFLAGS+= -DXCOFF_GLUE # for booting PCI Powermacs - - -LIBS!= cd $(.CURDIR)/$(R); $(MAKE) libdep -CLEANFILES= hack-coff - -$(PROG): $(OBJS) $(LIBS) hack-coff - $(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o ${.TARGET} - ${OBJCOPY} ${OBJCOPY_ARGS} ${.TARGET} - ${.OBJDIR}/hack-coff ${.TARGET} - -hack-coff: hack-coff.c - ${HOSTCC} -I${.CURDIR} -o hack-coff ${.CURDIR}/hack-coff.c - -.include <bsd.prog.mk> diff --git a/sys/arch/powerpc/stand/boot.mac/hack-coff.c b/sys/arch/powerpc/stand/boot.mac/hack-coff.c deleted file mode 100644 index 09aa9b5dc42..00000000000 --- a/sys/arch/powerpc/stand/boot.mac/hack-coff.c +++ /dev/null @@ -1,29 +0,0 @@ -/* $OpenBSD: hack-coff.c,v 1.2 2001/07/04 08:38:53 niklas Exp $ */ - -#include <stdio.h> - -char magic[2] = { 1, 0xb }; -char snos[12] = { 0, 1, 0, 1, 0, 2, 0, 0, 0, 0, 0, 3 }; - -main(int ac, char **av) -{ - int fd; - - if (ac != 2) { - fprintf(stderr, "Usage: hack-coff coff-file\n"); - exit(1); - } - if ((fd = open(av[1], 2)) == -1) { - perror(av[2]); - exit(1); - } - if (lseek(fd, (long) 0x14, 0) == -1 - || write(fd, magic, sizeof(magic)) != sizeof(magic) - || lseek(fd, (long) 0x34, 0) == -1 - || write(fd, snos, sizeof(snos)) != sizeof(snos)) { - fprintf(stderr, "%s: write error\n", av[1]); - exit(1); - } - close(fd); - exit(0); -} diff --git a/sys/arch/powerpc/stand/boot.mac/ld.script b/sys/arch/powerpc/stand/boot.mac/ld.script deleted file mode 100644 index 2469ed65dcb..00000000000 --- a/sys/arch/powerpc/stand/boot.mac/ld.script +++ /dev/null @@ -1,68 +0,0 @@ -OUTPUT_ARCH(powerpc) -SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib); -/* Do we need any of these for elf? - __DYNAMIC = 0; */ -SECTIONS -{ - /* Read-only sections, merged into text segment: */ - . = + SIZEOF_HEADERS; - .interp : { *(.interp) } - .hash : { *(.hash) } - .dynsym : { *(.dynsym) } - .dynstr : { *(.dynstr) } - .rel.text : { *(.rel.text) } - .rela.text : { *(.rela.text) } - .rel.data : { *(.rel.data) } - .rela.data : { *(.rela.data) } - .rel.rodata : { *(.rel.rodata) } - .rela.rodata : { *(.rela.rodata) } - .rel.got : { *(.rel.got) } - .rela.got : { *(.rela.got) } - .rel.ctors : { *(.rel.ctors) } - .rela.ctors : { *(.rela.ctors) } - .rel.dtors : { *(.rel.dtors) } - .rela.dtors : { *(.rela.dtors) } - .rel.bss : { *(.rel.bss) } - .rela.bss : { *(.rela.bss) } - .rel.plt : { *(.rel.plt) } - .rela.plt : { *(.rela.plt) } - .init : { *(.init) } =0 - .plt : { *(.plt) } - .text : - { - *(.text) - *(.rodata) - *(.rodata1) - *(.got1) - } - .fini : { *(.fini) } =0 - .ctors : { *(.ctors) } - .dtors : { *(.dtors) } - _etext = .; - PROVIDE (etext = .); - /* Read-write section, merged into data segment: */ - . = (. + 0x0FFF) & 0xFFFFF000; - .data : - { - *(.data) - *(.data1) - *(.sdata) - *(.sdata2) - *(.got.plt) *(.got) - *(.dynamic) - CONSTRUCTORS - } - _edata = .; - PROVIDE (edata = .); - __bss_start = .; - .bss : - { - *(.sbss) *(.scommon) - *(.dynbss) - *(.bss) - *(COMMON) - } - _end = . ; - PROVIDE (end = .); -} - |