Subject: cpufunc.h
To: None <port-arm@netbsd.org>
From: John Fremlin <vii@users.sourceforge.net>
List: port-arm
Date: 05/27/2001 18:48:15
I've converted a few functions in cpufunc.h to inline assembly, as is
suggested by comments in their implementations. Notably
GetCPSR
SetSPSR
get_stackptr
set_stackptr
Introduced are three new functions
__SetCPSR /* Force the CPSR to a certain value */
__set_stackptr /* set_stackptr without changing mode */
__get_stackptr /* get_stackptr without changing mode */
the first of which is helpful.
Would this patch be accepted? Further, is there any reason cpu_reset
has to be written in assembly?
--
http://ape.n3.net