summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-28 02:41:52 +0000
committerobrien <obrien@FreeBSD.org>2002-03-28 02:41:52 +0000
commit892e01faba0cd32c5768c1515e6ef167aacfa135 (patch)
tree6792172bc8c91911cb7b231f43648d9d10bb7040 /sys/boot
parentf4fef940b5a3414abdcae6ecc43ee52170f8379f (diff)
downloadFreeBSD-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.S8
-rw-r--r--sys/boot/sparc64/boot1/_start.s8
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
OpenPOWER on IntegriCloud