If we just want _end, load it directly and skip the gp
This commit is contained in:
parent
61a4b10e07
commit
bc6b9cafff
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue