[xtensa-cvscommit] linux/include/asm-xtensa ptrace.h,1.2,1.3
Brought to you by:
zankel
|
From: <sfo...@us...> - 2002-09-19 07:06:42
|
Update of /cvsroot/xtensa/linux/include/asm-xtensa In directory usw-pr-cvs1:/tmp/cvs-serv975/include/asm-xtensa Modified Files: ptrace.h Log Message: First functional checkin of kgdb. Reading AR registers does not work yet. (Reading A registers works.) Currently uses ttyS1 at 9600 8N1. Serial port and baud rate to become paramterized. To use, must have CONFIGURE_KGDB. Must also pass the parameter "gdb" to the kernel to tell it to stop on boot and wait for a connection from gdb. Index: ptrace.h =================================================================== RCS file: /cvsroot/xtensa/linux/include/asm-xtensa/ptrace.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ptrace.h 29 Aug 2002 21:45:56 -0000 1.2 --- ptrace.h 19 Sep 2002 07:06:08 -0000 1.3 *************** *** 33,36 **** --- 33,43 ---- #define SYSCALL_NR 0x1 + /* Note: can return illegal A reg numbers, i.e. > 15 */ + #define AR_REGNO_TO_A_REGNO(ar_regno, wb) \ + ((ar_regno - wb*4) >= 0 ? \ + ar_regno - wb*4 : \ + XCHAL_NUM_AREGS + ar_regno - wb*4) + + /* Offsets from EXCSAVE_1 value: */ #define TABLE_SAVEA0 0 |