diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-28 02:41:52 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-28 02:41:52 +0000 |
commit | 892e01faba0cd32c5768c1515e6ef167aacfa135 (patch) | |
tree | 6792172bc8c91911cb7b231f43648d9d10bb7040 /sys/boot | |
parent | f4fef940b5a3414abdcae6ecc43ee52170f8379f (diff) | |
download | FreeBSD-src-892e01faba0cd32c5768c1515e6ef167aacfa135.zip FreeBSD-src-892e01faba0cd32c5768c1515e6ef167aacfa135.tar.gz |
Apparently either gcc or ld, in their infinite wisdom, want to
put a bunch of crap before the code in .text. Since the firmware
doesn't seem to honour the a.out entry point, we need to include
a little assmbler file which jumps to where we want to be in C.
Submitted by: jake
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/sparc64/boot1/_start.S | 8 | ||||
-rw-r--r-- | sys/boot/sparc64/boot1/_start.s | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sys/boot/sparc64/boot1/_start.S b/sys/boot/sparc64/boot1/_start.S new file mode 100644 index 0000000..30f8019 --- /dev/null +++ b/sys/boot/sparc64/boot1/_start.S @@ -0,0 +1,8 @@ +/* $FreeBSD$ */ + + .text + .globl _start +_start: + call ofw_init + nop + sir diff --git a/sys/boot/sparc64/boot1/_start.s b/sys/boot/sparc64/boot1/_start.s new file mode 100644 index 0000000..30f8019 --- /dev/null +++ b/sys/boot/sparc64/boot1/_start.s @@ -0,0 +1,8 @@ +/* $FreeBSD$ */ + + .text + .globl _start +_start: + call ofw_init + nop + sir |