Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/emips/stand/common If we just want _end, load it di...
details: https://anonhg.NetBSD.org/src/rev/73f34b070c16
branches: trunk
changeset: 326609:73f34b070c16
user: matt <matt%NetBSD.org@localhost>
date: Thu Feb 06 19:20:11 2014 +0000
description:
If we just want _end, load it directly and skip the gp
diffstat:
sys/arch/emips/stand/common/start.S | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r ec8b7c4b1f7a -r 73f34b070c16 sys/arch/emips/stand/common/start.S
--- a/sys/arch/emips/stand/common/start.S Thu Feb 06 18:48:09 2014 +0000
+++ b/sys/arch/emips/stand/common/start.S Thu Feb 06 19:20:11 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: start.S,v 1.2 2011/03/10 18:18:00 pooka Exp $ */
+/* $NetBSD: start.S,v 1.3 2014/02/06 19:20:11 matt Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -522,10 +522,8 @@
LEAF(switch_stack_and_call)
/* Get a stack and jump. It would be a very bad idea to return but..
*/
-#ifdef __GP_SUPPORT__
- la gp, _C_LABEL (_gp)
-#endif
- la sp,_end
+ lui sp,%hi(_end)
+ addiu sp,%lo(_end)
jr a1
addiu sp,sp,(2*1024) /* BUGBUG arbitrary */
Home |
Main Index |
Thread Index |
Old Index