Changes for quad library and new ptrace stuff.
This commit is contained in:
parent
eb5b7eb72c
commit
06a5cd70ad
|
@ -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_ */
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue