summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-06-08 12:11:47 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-06-08 12:11:47 +0000
commitde2ad93b5ff01c3e6e0dc88a70c0f40bd9306b43 (patch)
tree2bea069ddcdf64b156ee1945668c3e30e07600ad /sys/arch/octeon
parentae3d1f8a794cb823a453a5f7c865207c52491971 (diff)
Wrap startup code with .ent and .end for proper disassembly.
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r--sys/arch/octeon/octeon/locore.S4
-rw-r--r--sys/arch/octeon/octeon/locore0.S6
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/octeon/octeon/locore.S b/sys/arch/octeon/octeon/locore.S
index c1e3e68ee92..928839b5d68 100644
--- a/sys/arch/octeon/octeon/locore.S
+++ b/sys/arch/octeon/octeon/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.15 2017/06/06 14:39:48 visa Exp $ */
+/* $OpenBSD: locore.S,v 1.16 2017/06/08 12:11:46 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -45,6 +45,7 @@
.set noreorder # Noreorder is default style!
.set mips64r2
.globl locore_start
+ .ent locore_start, 0
locore_start:
/* initialize ebase */
dla t0, 0xffffffff80000000
@@ -144,6 +145,7 @@ locore_start:
PTR_L sp, 0(sp)
jr ra
nop
+ .end locore_start
#if defined(MULTIPROCESSOR)
LEAF(hw_cpu_spinup_trampoline, 0)
diff --git a/sys/arch/octeon/octeon/locore0.S b/sys/arch/octeon/octeon/locore0.S
index b57089fabb7..6aabe26d3c2 100644
--- a/sys/arch/octeon/octeon/locore0.S
+++ b/sys/arch/octeon/octeon/locore0.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore0.S,v 1.1 2017/06/05 15:23:11 visa Exp $ */
+/* $OpenBSD: locore0.S,v 1.2 2017/06/08 12:11:46 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -33,9 +33,11 @@
.set noreorder # Noreorder is default style!
.set mips64r2
- .globl start
.globl kernel_text
+ .globl start
+ .ent start, 0
kernel_text = start
start:
j locore_start
nop
+ .end start