From 981b99faf208e2c7f6e2b83d73e1b89b669112ee Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 10 Aug 1999 16:41:44 +0000 Subject: Patch from Eric Valette and Emmanuel Raguet : - the dec21140 driver code has been hardened (various bug fixed) Emmanuel, - bug in the mcp750 init code have been fixed (interrupt stack/initial stack initialization), BSS correctly cleared (Eric V) - remote debugging over TCP/IP is nearly complete (berakpoints, backtrace, variables,...) (Eric V), - exception handling code has also been improved in order to fully support RDBG requirements (Eric V), --- c/src/lib/include/rdbg/servrpc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'c/src/lib/include/rdbg/servrpc.h') diff --git a/c/src/lib/include/rdbg/servrpc.h b/c/src/lib/include/rdbg/servrpc.h index 71198d4d1f..e183e1af7d 100644 --- a/c/src/lib/include/rdbg/servrpc.h +++ b/c/src/lib/include/rdbg/servrpc.h @@ -1,3 +1,6 @@ +/* + * $Id$ + */ #ifndef SERVRPC_H #define SERVRPC_H @@ -30,6 +33,15 @@ extern const char* PtraceNames[]; /* list of ptrace requests for debug out */ extern const char* BmsgNames[]; /* list of BMSG_xxx names */ extern const char* PtraceName(int req); +#ifdef i386 /* low-high machine such as 386 */ +#define HL_W(w) (((UINT16)(w)>>8)+((((w)&0xFF)<<8))) +#define HL_D(d) (((UINT32)(d)>>24)+(((d)&0x00FF0000)>>8) \ + +(((d)&0xFF00)<<8)+(((d)&0xFF)<<24)) +#else +#define HL_W(w) w +#define HL_D(d) d +#endif + # define DPRINTF(a) (rdb_debug ? printk ("%d >>> ", getId()), printk a : 0) #else # define DPRINTF(a) /* suppress */ -- cgit v1.2.3