diff options
author | Shaohua Li <shaohua.li@intel.com> | 2008-02-28 03:47:50 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-03-12 19:26:23 -0400 |
commit | c70f8f68676866d778564de337bec6b8734c3850 (patch) | |
tree | 527ddecf32f9e055698f21b60f6a250fca5d9a3c /include | |
parent | baadac8b10c5ac15ce3d26b68fa266c8889b163f (diff) |
[IA64] regset: 64-bit support
This is the 64-bit regset implementation under IA64. Basically register
read/write, which is derived from current ptrace register read/write.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-ia64/elf.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/asm-ia64/elf.h b/include/asm-ia64/elf.h index f8e83eca67a2..064cf7dcea8e 100644 --- a/include/asm-ia64/elf.h +++ b/include/asm-ia64/elf.h | |||
@@ -154,6 +154,30 @@ extern void ia64_init_addr_space (void); | |||
154 | #define ELF_NGREG 128 /* we really need just 72 but let's leave some headroom... */ | 154 | #define ELF_NGREG 128 /* we really need just 72 but let's leave some headroom... */ |
155 | #define ELF_NFPREG 128 /* f0 and f1 could be omitted, but so what... */ | 155 | #define ELF_NFPREG 128 /* f0 and f1 could be omitted, but so what... */ |
156 | 156 | ||
157 | /* elf_gregset_t register offsets */ | ||
158 | #define ELF_GR_0_OFFSET 0 | ||
159 | #define ELF_NAT_OFFSET (32 * sizeof(elf_greg_t)) | ||
160 | #define ELF_PR_OFFSET (33 * sizeof(elf_greg_t)) | ||
161 | #define ELF_BR_0_OFFSET (34 * sizeof(elf_greg_t)) | ||
162 | #define ELF_CR_IIP_OFFSET (42 * sizeof(elf_greg_t)) | ||
163 | #define ELF_CFM_OFFSET (43 * sizeof(elf_greg_t)) | ||
164 | #define ELF_CR_IPSR_OFFSET (44 * sizeof(elf_greg_t)) | ||
165 | #define ELF_GR_OFFSET(i) (ELF_GR_0_OFFSET + i * sizeof(elf_greg_t)) | ||
166 | #define ELF_BR_OFFSET(i) (ELF_BR_0_OFFSET + i * sizeof(elf_greg_t)) | ||
167 | #define ELF_AR_RSC_OFFSET (45 * sizeof(elf_greg_t)) | ||
168 | #define ELF_AR_BSP_OFFSET (46 * sizeof(elf_greg_t)) | ||
169 | #define ELF_AR_BSPSTORE_OFFSET (47 * sizeof(elf_greg_t)) | ||
170 | #define ELF_AR_RNAT_OFFSET (48 * sizeof(elf_greg_t)) | ||
171 | #define ELF_AR_CCV_OFFSET (49 * sizeof(elf_greg_t)) | ||
172 | #define ELF_AR_UNAT_OFFSET (50 * sizeof(elf_greg_t)) | ||
173 | #define ELF_AR_FPSR_OFFSET (51 * sizeof(elf_greg_t)) | ||
174 | #define ELF_AR_PFS_OFFSET (52 * sizeof(elf_greg_t)) | ||
175 | #define ELF_AR_LC_OFFSET (53 * sizeof(elf_greg_t)) | ||
176 | #define ELF_AR_EC_OFFSET (54 * sizeof(elf_greg_t)) | ||
177 | #define ELF_AR_CSD_OFFSET (55 * sizeof(elf_greg_t)) | ||
178 | #define ELF_AR_SSD_OFFSET (56 * sizeof(elf_greg_t)) | ||
179 | #define ELF_AR_END_OFFSET (57 * sizeof(elf_greg_t)) | ||
180 | |||
157 | typedef unsigned long elf_fpxregset_t; | 181 | typedef unsigned long elf_fpxregset_t; |
158 | 182 | ||
159 | typedef unsigned long elf_greg_t; | 183 | typedef unsigned long elf_greg_t; |