From 06a5cd70ad21f9eda17a17cff237dc67a095cd1b Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 14 Jan 1994 08:09:15 +0000 Subject: [PATCH] Changes for quad library and new ptrace stuff. --- sys/arch/pc532/include/endian.h | 11 ++++++++++- sys/arch/pc532/include/reg.h | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/sys/arch/pc532/include/endian.h b/sys/arch/pc532/include/endian.h index 68a85101e90c..a75c48aef3e0 100644 --- a/sys/arch/pc532/include/endian.h +++ b/sys/arch/pc532/include/endian.h @@ -38,6 +38,13 @@ #ifndef _MACHINE_ENDIAN_H_ #define _MACHINE_ENDIAN_H_ +/* + * Define the order of 32-bit words in 64-bit words. + */ +#define _QUAD_HIGHWORD 1 +#define _QUAD_LOWWORD 0 + +#ifndef _POSIX_SOURCE /* * Definitions for byte order, according to byte significance from low * address to high. @@ -79,4 +86,6 @@ __END_DECLS #define HTONS(x) (x) = htons((u_short)x) #endif -#endif +#endif /* _POSIX_SOURCE */ + +#endif /* _MACHINE_ENDIAN_H_ */ diff --git a/sys/arch/pc532/include/reg.h b/sys/arch/pc532/include/reg.h index 830c41d0ba7c..722ef0585081 100644 --- a/sys/arch/pc532/include/reg.h +++ b/sys/arch/pc532/include/reg.h @@ -70,6 +70,25 @@ #define PS PSR +/* The reg struct .. in the order of above. */ + +struct reg { + unsigned int r_r7; + unsigned int r_r6; + unsigned int r_r5; + unsigned int r_r4; + unsigned int r_r3; + unsigned int r_r2; + unsigned int r_r1; + unsigned int r_r0; + + unsigned int r_sp; + unsigned int r_fp; + unsigned int r_pc; + unsigned int r_psr; +} + + /* * Registers accessible to ptrace(2) syscall for debugger */