Module Name: src
Committed By: matt
Date: Thu Feb 6 19:20:12 UTC 2014
Modified Files:
src/sys/arch/emips/stand/common: start.S
Log Message:
If we just want _end, load it directly and skip the gp
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/emips/stand/common/start.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/emips/stand/common/start.S
diff -u src/sys/arch/emips/stand/common/start.S:1.2 src/sys/arch/emips/stand/common/start.S:1.3
--- src/sys/arch/emips/stand/common/start.S:1.2 Thu Mar 10 18:18:00 2011
+++ src/sys/arch/emips/stand/common/start.S Thu Feb 6 19:20:11 2014
@@ -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 @@ END(PutChar)
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 */