git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
asm-cris
/
arch-v10
/
system.h
diff --git
a/include/asm-cris/arch-v10/system.h
b/include/asm-cris/arch-v10/system.h
index
781ca30
..
1ac7b63
100644
(file)
--- a/
include/asm-cris/arch-v10/system.h
+++ b/
include/asm-cris/arch-v10/system.h
@@
-5,15
+5,17
@@
/* read the CPU version register */
/* read the CPU version register */
-extern inline unsigned long rdvr(void) {
+static inline unsigned long rdvr(void) {
unsigned char vr;
__asm__ volatile ("move $vr,%0" : "=rm" (vr));
return vr;
}
unsigned char vr;
__asm__ volatile ("move $vr,%0" : "=rm" (vr));
return vr;
}
+#define cris_machine_name "cris"
+
/* read/write the user-mode stackpointer */
/* read/write the user-mode stackpointer */
-
extern
inline unsigned long rdusp(void) {
+
static
inline unsigned long rdusp(void) {
unsigned long usp;
__asm__ __volatile__("move $usp,%0" : "=rm" (usp));
return usp;
unsigned long usp;
__asm__ __volatile__("move $usp,%0" : "=rm" (usp));
return usp;
@@
-24,13
+26,13
@@
extern inline unsigned long rdusp(void) {
/* read the current stackpointer */
/* read the current stackpointer */
-
extern
inline unsigned long rdsp(void) {
+
static
inline unsigned long rdsp(void) {
unsigned long sp;
__asm__ __volatile__("move.d $sp,%0" : "=rm" (sp));
return sp;
}
unsigned long sp;
__asm__ __volatile__("move.d $sp,%0" : "=rm" (sp));
return sp;
}
-
extern
inline unsigned long _get_base(char * addr)
+
static
inline unsigned long _get_base(char * addr)
{
return 0;
}
{
return 0;
}