diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-08-01 01:20:30 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-08-03 22:02:00 -0400 |
commit | b8b572e1015f81b4e748417be2629dfe51ab99f9 (patch) | |
tree | 7df58667d5ed71d6c8f8f4ce40ca16b6fb776d0b /include/asm-powerpc/kgdb.h | |
parent | 2b12a4c524812fb3f6ee590a02e65b95c8c32229 (diff) |
powerpc: Move include files to arch/powerpc/include/asm
from include/asm-powerpc. This is the result of a
mkdir arch/powerpc/include/asm
git mv include/asm-powerpc/* arch/powerpc/include/asm
Followed by a few documentation/comment fixups and a couple of places
where <asm-powepc/...> was being used explicitly. Of the latter only
one was outside the arch code and it is a driver only built for powerpc.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/kgdb.h')
-rw-r--r-- | include/asm-powerpc/kgdb.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/include/asm-powerpc/kgdb.h b/include/asm-powerpc/kgdb.h deleted file mode 100644 index 1399caf719ae..000000000000 --- a/include/asm-powerpc/kgdb.h +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | /* | ||
2 | * include/asm-powerpc/kgdb.h | ||
3 | * | ||
4 | * The PowerPC (32/64) specific defines / externs for KGDB. Based on | ||
5 | * the previous 32bit and 64bit specific files, which had the following | ||
6 | * copyrights: | ||
7 | * | ||
8 | * PPC64 Mods (C) 2005 Frank Rowand (frowand@mvista.com) | ||
9 | * PPC Mods (C) 2004 Tom Rini (trini@mvista.com) | ||
10 | * PPC Mods (C) 2003 John Whitney (john.whitney@timesys.com) | ||
11 | * PPC Mods (C) 1998 Michael Tesch (tesch@cs.wisc.edu) | ||
12 | * | ||
13 | * | ||
14 | * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) | ||
15 | * Author: Tom Rini <trini@kernel.crashing.org> | ||
16 | * | ||
17 | * 2006 (c) MontaVista Software, Inc. This file is licensed under | ||
18 | * the terms of the GNU General Public License version 2. This program | ||
19 | * is licensed "as is" without any warranty of any kind, whether express | ||
20 | * or implied. | ||
21 | */ | ||
22 | #ifdef __KERNEL__ | ||
23 | #ifndef __POWERPC_KGDB_H__ | ||
24 | #define __POWERPC_KGDB_H__ | ||
25 | |||
26 | #ifndef __ASSEMBLY__ | ||
27 | |||
28 | #define BREAK_INSTR_SIZE 4 | ||
29 | #define BUFMAX ((NUMREGBYTES * 2) + 512) | ||
30 | #define OUTBUFMAX ((NUMREGBYTES * 2) + 512) | ||
31 | static inline void arch_kgdb_breakpoint(void) | ||
32 | { | ||
33 | asm(".long 0x7d821008"); /* twge r2, r2 */ | ||
34 | } | ||
35 | #define CACHE_FLUSH_IS_SAFE 1 | ||
36 | |||
37 | /* The number bytes of registers we have to save depends on a few | ||
38 | * things. For 64bit we default to not including vector registers and | ||
39 | * vector state registers. */ | ||
40 | #ifdef CONFIG_PPC64 | ||
41 | /* | ||
42 | * 64 bit (8 byte) registers: | ||
43 | * 32 gpr, 32 fpr, nip, msr, link, ctr | ||
44 | * 32 bit (4 byte) registers: | ||
45 | * ccr, xer, fpscr | ||
46 | */ | ||
47 | #define NUMREGBYTES ((68 * 8) + (3 * 4)) | ||
48 | #define NUMCRITREGBYTES 184 | ||
49 | #else /* CONFIG_PPC32 */ | ||
50 | /* On non-E500 family PPC32 we determine the size by picking the last | ||
51 | * register we need, but on E500 we skip sections so we list what we | ||
52 | * need to store, and add it up. */ | ||
53 | #ifndef CONFIG_E500 | ||
54 | #define MAXREG (PT_FPSCR+1) | ||
55 | #else | ||
56 | /* 32 GPRs (8 bytes), nip, msr, ccr, link, ctr, xer, acc (8 bytes), spefscr*/ | ||
57 | #define MAXREG ((32*2)+6+2+1) | ||
58 | #endif | ||
59 | #define NUMREGBYTES (MAXREG * sizeof(int)) | ||
60 | /* CR/LR, R1, R2, R13-R31 inclusive. */ | ||
61 | #define NUMCRITREGBYTES (23 * sizeof(int)) | ||
62 | #endif /* 32/64 */ | ||
63 | #endif /* !(__ASSEMBLY__) */ | ||
64 | #endif /* !__POWERPC_KGDB_H__ */ | ||
65 | #endif /* __KERNEL__ */ | ||