Subversion Repositories HelenOS-historic

Compare Revisions

No changes between revisions

Ignore whitespace Rev 644 → Rev 643

/kernel/trunk/arch/sparc64/boot/Makefile
1,6 → 1,19
.PHONY: build clean
 
build:
CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -I../include
 
build: boot.bin
cp boot.bin ../../../load.bin
 
boot.bin: boot.a.out
dd if=/dev/zero of=$@ bs=512 count=16
dd if=boot.a.out of=$@ bs=512 seek=1 conv=notrunc
 
boot.a.out: boot.o
$(LD) -no-check-sections -N -T _link.ld -s boot.o -o $@
 
boot.o: boot.S
$(CC) $(CFLAGS) -c boot.S -o $@
 
clean:
 
-rm -f boot.o boot.a.out boot.bin ../../../load.bin
/kernel/trunk/arch/sparc64/boot/boot.S
0,0 → 1,34
#
# Copyright (C) 2005 Jakub Jermar
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# - The name of the author may not be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
 
.global start
 
start:
b start
nop
 
/kernel/trunk/arch/sparc64/boot/_link.ld
0,0 → 1,20
/*
* boot[sparc64] linker script
*
*/
 
OUTPUT_FORMAT(a.out-sunos-big)
ENTRY(start)
 
SECTIONS {
.text 0x8000: AT (0x8000) {
*(.text);
*(.rodata);
*(.rodata.*);
*(.data); /* initialized data */
*(.sdata);
*(.sdata2);
*(.sbss);
*(.bss); /* uninitialized static variables */
}
}
/kernel/trunk/arch/ia32/boot/grub.img.gz
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/kernel/trunk/arch/ia32/boot/Makefile
1,5 → 1,8
.PHONY: build clean
 
build:
build: grub.img.gz
gunzip -c grub.img.gz > ../../../image.bin
e2cp ../../../kernel.bin ../../../image.bin:/boot/kernel.bin
 
clean:
-rm -f ../../../image.bin