diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-07-27 17:00:59 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-07-27 17:00:59 -0400 |
commit | a439fe51a1f8eb087c22dd24d69cebae4a3addac (patch) | |
tree | e32d1fa97a220ab598d8ab364205817c5bf2bd6f /include/asm-sparc/kgdb.h | |
parent | 837b41b5de356aa67abb2cadb5eef3efc7776f91 (diff) |
sparc, sparc64: use arch/sparc/include
The majority of this patch was created by the following script:
***
ASM=arch/sparc/include/asm
mkdir -p $ASM
git mv include/asm-sparc64/ftrace.h $ASM
git rm include/asm-sparc64/*
git mv include/asm-sparc/* $ASM
sed -ie 's/asm-sparc64/asm/g' $ASM/*
sed -ie 's/asm-sparc/asm/g' $ASM/*
***
The rest was an update of the top-level Makefile to use sparc
for header files when sparc64 is being build.
And a small fixlet to pick up the correct unistd.h from
sparc64 code.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include/asm-sparc/kgdb.h')
-rw-r--r-- | include/asm-sparc/kgdb.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/asm-sparc/kgdb.h b/include/asm-sparc/kgdb.h deleted file mode 100644 index b6ef301d05bf..000000000000 --- a/include/asm-sparc/kgdb.h +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | #ifndef _SPARC_KGDB_H | ||
2 | #define _SPARC_KGDB_H | ||
3 | |||
4 | #ifdef CONFIG_SPARC32 | ||
5 | #define BUFMAX 2048 | ||
6 | #else | ||
7 | #define BUFMAX 4096 | ||
8 | #endif | ||
9 | |||
10 | enum regnames { | ||
11 | GDB_G0, GDB_G1, GDB_G2, GDB_G3, GDB_G4, GDB_G5, GDB_G6, GDB_G7, | ||
12 | GDB_O0, GDB_O1, GDB_O2, GDB_O3, GDB_O4, GDB_O5, GDB_SP, GDB_O7, | ||
13 | GDB_L0, GDB_L1, GDB_L2, GDB_L3, GDB_L4, GDB_L5, GDB_L6, GDB_L7, | ||
14 | GDB_I0, GDB_I1, GDB_I2, GDB_I3, GDB_I4, GDB_I5, GDB_FP, GDB_I7, | ||
15 | GDB_F0, | ||
16 | GDB_F31 = GDB_F0 + 31, | ||
17 | #ifdef CONFIG_SPARC32 | ||
18 | GDB_Y, GDB_PSR, GDB_WIM, GDB_TBR, GDB_PC, GDB_NPC, | ||
19 | GDB_FSR, GDB_CSR, | ||
20 | #else | ||
21 | GDB_F32 = GDB_F0 + 32, | ||
22 | GDB_F62 = GDB_F32 + 15, | ||
23 | GDB_PC, GDB_NPC, GDB_STATE, GDB_FSR, GDB_FPRS, GDB_Y, | ||
24 | #endif | ||
25 | }; | ||
26 | |||
27 | #ifdef CONFIG_SPARC32 | ||
28 | #define NUMREGBYTES ((GDB_CSR + 1) * 4) | ||
29 | #else | ||
30 | #define NUMREGBYTES ((GDB_Y + 1) * 8) | ||
31 | #endif | ||
32 | |||
33 | extern void arch_kgdb_breakpoint(void); | ||
34 | |||
35 | #define BREAK_INSTR_SIZE 4 | ||
36 | #define CACHE_FLUSH_IS_SAFE 1 | ||
37 | |||
38 | #endif /* _SPARC_KGDB_H */ | ||