kgdb.h (3eb66e91a25497065c5322b1268cbc3953642227) | kgdb.h (688de017efaab8a7764ab2c05ce7128d0361023b) |
---|---|
1/* 2 * The PowerPC (32/64) specific defines / externs for KGDB. Based on 3 * the previous 32bit and 64bit specific files, which had the following 4 * copyrights: 5 * 6 * PPC64 Mods (C) 2005 Frank Rowand (frowand@mvista.com) 7 * PPC Mods (C) 2004 Tom Rini (trini@mvista.com) 8 * PPC Mods (C) 2003 John Whitney (john.whitney@timesys.com) --- 38 unchanged lines hidden (view full) --- 47 * ccr, xer, fpscr 48 */ 49#define NUMREGBYTES ((68 * 8) + (3 * 4)) 50#define NUMCRITREGBYTES 184 51#else /* CONFIG_PPC32 */ 52/* On non-E500 family PPC32 we determine the size by picking the last 53 * register we need, but on E500 we skip sections so we list what we 54 * need to store, and add it up. */ | 1/* 2 * The PowerPC (32/64) specific defines / externs for KGDB. Based on 3 * the previous 32bit and 64bit specific files, which had the following 4 * copyrights: 5 * 6 * PPC64 Mods (C) 2005 Frank Rowand (frowand@mvista.com) 7 * PPC Mods (C) 2004 Tom Rini (trini@mvista.com) 8 * PPC Mods (C) 2003 John Whitney (john.whitney@timesys.com) --- 38 unchanged lines hidden (view full) --- 47 * ccr, xer, fpscr 48 */ 49#define NUMREGBYTES ((68 * 8) + (3 * 4)) 50#define NUMCRITREGBYTES 184 51#else /* CONFIG_PPC32 */ 52/* On non-E500 family PPC32 we determine the size by picking the last 53 * register we need, but on E500 we skip sections so we list what we 54 * need to store, and add it up. */ |
55#ifndef CONFIG_E500 | 55#ifndef CONFIG_PPC_E500 |
56#define MAXREG (PT_FPSCR+1) 57#else 58/* 32 GPRs (8 bytes), nip, msr, ccr, link, ctr, xer, acc (8 bytes), spefscr*/ 59#define MAXREG ((32*2)+6+2+1) 60#endif 61#define NUMREGBYTES (MAXREG * sizeof(int)) 62/* CR/LR, R1, R2, R13-R31 inclusive. */ 63#define NUMCRITREGBYTES (23 * sizeof(int)) 64#endif /* 32/64 */ 65#endif /* !(__ASSEMBLY__) */ 66#endif /* !__POWERPC_KGDB_H__ */ 67#endif /* __KERNEL__ */ | 56#define MAXREG (PT_FPSCR+1) 57#else 58/* 32 GPRs (8 bytes), nip, msr, ccr, link, ctr, xer, acc (8 bytes), spefscr*/ 59#define MAXREG ((32*2)+6+2+1) 60#endif 61#define NUMREGBYTES (MAXREG * sizeof(int)) 62/* CR/LR, R1, R2, R13-R31 inclusive. */ 63#define NUMCRITREGBYTES (23 * sizeof(int)) 64#endif /* 32/64 */ 65#endif /* !(__ASSEMBLY__) */ 66#endif /* !__POWERPC_KGDB_H__ */ 67#endif /* __KERNEL__ */ |