1 /* 2 * Generate definitions needed by assembly language modules. 3 * This code generates raw asm output which is post-processed to extract 4 * and format the required data. 5 * 6 * Copyright (C) 2000-2001 John Marvin <jsm at parisc-linux.org> 7 * Copyright (C) 2000 David Huggins-Daines <dhd with pobox.org> 8 * Copyright (C) 2000 Sam Creasey <sammy@sammy.net> 9 * Copyright (C) 2000 Grant Grundler <grundler with parisc-linux.org> 10 * Copyright (C) 2001 Paul Bame <bame at parisc-linux.org> 11 * Copyright (C) 2001 Richard Hirst <rhirst at parisc-linux.org> 12 * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org> 13 * Copyright (C) 2003 James Bottomley <jejb at parisc-linux.org> 14 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 19 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 28 */ 29 30 #include <linux/types.h> 31 #include <linux/sched.h> 32 #include <linux/thread_info.h> 33 #include <linux/version.h> 34 #include <linux/ptrace.h> 35 #include <linux/hardirq.h> 36 37 #include <asm/pgtable.h> 38 #include <asm/ptrace.h> 39 #include <asm/processor.h> 40 #include <asm/pdc.h> 41 #include <asm/uaccess.h> 42 43 #define DEFINE(sym, val) \ 44 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 45 46 #define BLANK() asm volatile("\n->" : : ) 47 48 #ifdef __LP64__ 49 #define FRAME_SIZE 128 50 #else 51 #define FRAME_SIZE 64 52 #endif 53 54 #define align(x,y) (((x)+FRAME_SIZE+(y)-1) - (((x)+(y)-1)%(y))) 55 56 int main(void) 57 { 58 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, thread_info)); 59 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); 60 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); 61 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); 62 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); 63 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); 64 DEFINE(TASK_PERSONALITY, offsetof(struct task_struct, personality)); 65 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); 66 BLANK(); 67 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); 68 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); 69 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); 70 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); 71 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); 72 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); 73 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); 74 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); 75 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); 76 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread.regs.gr[ 8])); 77 DEFINE(TASK_PT_GR9, offsetof(struct task_struct, thread.regs.gr[ 9])); 78 DEFINE(TASK_PT_GR10, offsetof(struct task_struct, thread.regs.gr[10])); 79 DEFINE(TASK_PT_GR11, offsetof(struct task_struct, thread.regs.gr[11])); 80 DEFINE(TASK_PT_GR12, offsetof(struct task_struct, thread.regs.gr[12])); 81 DEFINE(TASK_PT_GR13, offsetof(struct task_struct, thread.regs.gr[13])); 82 DEFINE(TASK_PT_GR14, offsetof(struct task_struct, thread.regs.gr[14])); 83 DEFINE(TASK_PT_GR15, offsetof(struct task_struct, thread.regs.gr[15])); 84 DEFINE(TASK_PT_GR16, offsetof(struct task_struct, thread.regs.gr[16])); 85 DEFINE(TASK_PT_GR17, offsetof(struct task_struct, thread.regs.gr[17])); 86 DEFINE(TASK_PT_GR18, offsetof(struct task_struct, thread.regs.gr[18])); 87 DEFINE(TASK_PT_GR19, offsetof(struct task_struct, thread.regs.gr[19])); 88 DEFINE(TASK_PT_GR20, offsetof(struct task_struct, thread.regs.gr[20])); 89 DEFINE(TASK_PT_GR21, offsetof(struct task_struct, thread.regs.gr[21])); 90 DEFINE(TASK_PT_GR22, offsetof(struct task_struct, thread.regs.gr[22])); 91 DEFINE(TASK_PT_GR23, offsetof(struct task_struct, thread.regs.gr[23])); 92 DEFINE(TASK_PT_GR24, offsetof(struct task_struct, thread.regs.gr[24])); 93 DEFINE(TASK_PT_GR25, offsetof(struct task_struct, thread.regs.gr[25])); 94 DEFINE(TASK_PT_GR26, offsetof(struct task_struct, thread.regs.gr[26])); 95 DEFINE(TASK_PT_GR27, offsetof(struct task_struct, thread.regs.gr[27])); 96 DEFINE(TASK_PT_GR28, offsetof(struct task_struct, thread.regs.gr[28])); 97 DEFINE(TASK_PT_GR29, offsetof(struct task_struct, thread.regs.gr[29])); 98 DEFINE(TASK_PT_GR30, offsetof(struct task_struct, thread.regs.gr[30])); 99 DEFINE(TASK_PT_GR31, offsetof(struct task_struct, thread.regs.gr[31])); 100 DEFINE(TASK_PT_FR0, offsetof(struct task_struct, thread.regs.fr[ 0])); 101 DEFINE(TASK_PT_FR1, offsetof(struct task_struct, thread.regs.fr[ 1])); 102 DEFINE(TASK_PT_FR2, offsetof(struct task_struct, thread.regs.fr[ 2])); 103 DEFINE(TASK_PT_FR3, offsetof(struct task_struct, thread.regs.fr[ 3])); 104 DEFINE(TASK_PT_FR4, offsetof(struct task_struct, thread.regs.fr[ 4])); 105 DEFINE(TASK_PT_FR5, offsetof(struct task_struct, thread.regs.fr[ 5])); 106 DEFINE(TASK_PT_FR6, offsetof(struct task_struct, thread.regs.fr[ 6])); 107 DEFINE(TASK_PT_FR7, offsetof(struct task_struct, thread.regs.fr[ 7])); 108 DEFINE(TASK_PT_FR8, offsetof(struct task_struct, thread.regs.fr[ 8])); 109 DEFINE(TASK_PT_FR9, offsetof(struct task_struct, thread.regs.fr[ 9])); 110 DEFINE(TASK_PT_FR10, offsetof(struct task_struct, thread.regs.fr[10])); 111 DEFINE(TASK_PT_FR11, offsetof(struct task_struct, thread.regs.fr[11])); 112 DEFINE(TASK_PT_FR12, offsetof(struct task_struct, thread.regs.fr[12])); 113 DEFINE(TASK_PT_FR13, offsetof(struct task_struct, thread.regs.fr[13])); 114 DEFINE(TASK_PT_FR14, offsetof(struct task_struct, thread.regs.fr[14])); 115 DEFINE(TASK_PT_FR15, offsetof(struct task_struct, thread.regs.fr[15])); 116 DEFINE(TASK_PT_FR16, offsetof(struct task_struct, thread.regs.fr[16])); 117 DEFINE(TASK_PT_FR17, offsetof(struct task_struct, thread.regs.fr[17])); 118 DEFINE(TASK_PT_FR18, offsetof(struct task_struct, thread.regs.fr[18])); 119 DEFINE(TASK_PT_FR19, offsetof(struct task_struct, thread.regs.fr[19])); 120 DEFINE(TASK_PT_FR20, offsetof(struct task_struct, thread.regs.fr[20])); 121 DEFINE(TASK_PT_FR21, offsetof(struct task_struct, thread.regs.fr[21])); 122 DEFINE(TASK_PT_FR22, offsetof(struct task_struct, thread.regs.fr[22])); 123 DEFINE(TASK_PT_FR23, offsetof(struct task_struct, thread.regs.fr[23])); 124 DEFINE(TASK_PT_FR24, offsetof(struct task_struct, thread.regs.fr[24])); 125 DEFINE(TASK_PT_FR25, offsetof(struct task_struct, thread.regs.fr[25])); 126 DEFINE(TASK_PT_FR26, offsetof(struct task_struct, thread.regs.fr[26])); 127 DEFINE(TASK_PT_FR27, offsetof(struct task_struct, thread.regs.fr[27])); 128 DEFINE(TASK_PT_FR28, offsetof(struct task_struct, thread.regs.fr[28])); 129 DEFINE(TASK_PT_FR29, offsetof(struct task_struct, thread.regs.fr[29])); 130 DEFINE(TASK_PT_FR30, offsetof(struct task_struct, thread.regs.fr[30])); 131 DEFINE(TASK_PT_FR31, offsetof(struct task_struct, thread.regs.fr[31])); 132 DEFINE(TASK_PT_SR0, offsetof(struct task_struct, thread.regs.sr[ 0])); 133 DEFINE(TASK_PT_SR1, offsetof(struct task_struct, thread.regs.sr[ 1])); 134 DEFINE(TASK_PT_SR2, offsetof(struct task_struct, thread.regs.sr[ 2])); 135 DEFINE(TASK_PT_SR3, offsetof(struct task_struct, thread.regs.sr[ 3])); 136 DEFINE(TASK_PT_SR4, offsetof(struct task_struct, thread.regs.sr[ 4])); 137 DEFINE(TASK_PT_SR5, offsetof(struct task_struct, thread.regs.sr[ 5])); 138 DEFINE(TASK_PT_SR6, offsetof(struct task_struct, thread.regs.sr[ 6])); 139 DEFINE(TASK_PT_SR7, offsetof(struct task_struct, thread.regs.sr[ 7])); 140 DEFINE(TASK_PT_IASQ0, offsetof(struct task_struct, thread.regs.iasq[0])); 141 DEFINE(TASK_PT_IASQ1, offsetof(struct task_struct, thread.regs.iasq[1])); 142 DEFINE(TASK_PT_IAOQ0, offsetof(struct task_struct, thread.regs.iaoq[0])); 143 DEFINE(TASK_PT_IAOQ1, offsetof(struct task_struct, thread.regs.iaoq[1])); 144 DEFINE(TASK_PT_CR27, offsetof(struct task_struct, thread.regs.cr27)); 145 DEFINE(TASK_PT_ORIG_R28, offsetof(struct task_struct, thread.regs.orig_r28)); 146 DEFINE(TASK_PT_KSP, offsetof(struct task_struct, thread.regs.ksp)); 147 DEFINE(TASK_PT_KPC, offsetof(struct task_struct, thread.regs.kpc)); 148 DEFINE(TASK_PT_SAR, offsetof(struct task_struct, thread.regs.sar)); 149 DEFINE(TASK_PT_IIR, offsetof(struct task_struct, thread.regs.iir)); 150 DEFINE(TASK_PT_ISR, offsetof(struct task_struct, thread.regs.isr)); 151 DEFINE(TASK_PT_IOR, offsetof(struct task_struct, thread.regs.ior)); 152 BLANK(); 153 DEFINE(TASK_SZ, sizeof(struct task_struct)); 154 DEFINE(TASK_SZ_ALGN, align(sizeof(struct task_struct), 64)); 155 BLANK(); 156 DEFINE(PT_PSW, offsetof(struct pt_regs, gr[ 0])); 157 DEFINE(PT_GR1, offsetof(struct pt_regs, gr[ 1])); 158 DEFINE(PT_GR2, offsetof(struct pt_regs, gr[ 2])); 159 DEFINE(PT_GR3, offsetof(struct pt_regs, gr[ 3])); 160 DEFINE(PT_GR4, offsetof(struct pt_regs, gr[ 4])); 161 DEFINE(PT_GR5, offsetof(struct pt_regs, gr[ 5])); 162 DEFINE(PT_GR6, offsetof(struct pt_regs, gr[ 6])); 163 DEFINE(PT_GR7, offsetof(struct pt_regs, gr[ 7])); 164 DEFINE(PT_GR8, offsetof(struct pt_regs, gr[ 8])); 165 DEFINE(PT_GR9, offsetof(struct pt_regs, gr[ 9])); 166 DEFINE(PT_GR10, offsetof(struct pt_regs, gr[10])); 167 DEFINE(PT_GR11, offsetof(struct pt_regs, gr[11])); 168 DEFINE(PT_GR12, offsetof(struct pt_regs, gr[12])); 169 DEFINE(PT_GR13, offsetof(struct pt_regs, gr[13])); 170 DEFINE(PT_GR14, offsetof(struct pt_regs, gr[14])); 171 DEFINE(PT_GR15, offsetof(struct pt_regs, gr[15])); 172 DEFINE(PT_GR16, offsetof(struct pt_regs, gr[16])); 173 DEFINE(PT_GR17, offsetof(struct pt_regs, gr[17])); 174 DEFINE(PT_GR18, offsetof(struct pt_regs, gr[18])); 175 DEFINE(PT_GR19, offsetof(struct pt_regs, gr[19])); 176 DEFINE(PT_GR20, offsetof(struct pt_regs, gr[20])); 177 DEFINE(PT_GR21, offsetof(struct pt_regs, gr[21])); 178 DEFINE(PT_GR22, offsetof(struct pt_regs, gr[22])); 179 DEFINE(PT_GR23, offsetof(struct pt_regs, gr[23])); 180 DEFINE(PT_GR24, offsetof(struct pt_regs, gr[24])); 181 DEFINE(PT_GR25, offsetof(struct pt_regs, gr[25])); 182 DEFINE(PT_GR26, offsetof(struct pt_regs, gr[26])); 183 DEFINE(PT_GR27, offsetof(struct pt_regs, gr[27])); 184 DEFINE(PT_GR28, offsetof(struct pt_regs, gr[28])); 185 DEFINE(PT_GR29, offsetof(struct pt_regs, gr[29])); 186 DEFINE(PT_GR30, offsetof(struct pt_regs, gr[30])); 187 DEFINE(PT_GR31, offsetof(struct pt_regs, gr[31])); 188 DEFINE(PT_FR0, offsetof(struct pt_regs, fr[ 0])); 189 DEFINE(PT_FR1, offsetof(struct pt_regs, fr[ 1])); 190 DEFINE(PT_FR2, offsetof(struct pt_regs, fr[ 2])); 191 DEFINE(PT_FR3, offsetof(struct pt_regs, fr[ 3])); 192 DEFINE(PT_FR4, offsetof(struct pt_regs, fr[ 4])); 193 DEFINE(PT_FR5, offsetof(struct pt_regs, fr[ 5])); 194 DEFINE(PT_FR6, offsetof(struct pt_regs, fr[ 6])); 195 DEFINE(PT_FR7, offsetof(struct pt_regs, fr[ 7])); 196 DEFINE(PT_FR8, offsetof(struct pt_regs, fr[ 8])); 197 DEFINE(PT_FR9, offsetof(struct pt_regs, fr[ 9])); 198 DEFINE(PT_FR10, offsetof(struct pt_regs, fr[10])); 199 DEFINE(PT_FR11, offsetof(struct pt_regs, fr[11])); 200 DEFINE(PT_FR12, offsetof(struct pt_regs, fr[12])); 201 DEFINE(PT_FR13, offsetof(struct pt_regs, fr[13])); 202 DEFINE(PT_FR14, offsetof(struct pt_regs, fr[14])); 203 DEFINE(PT_FR15, offsetof(struct pt_regs, fr[15])); 204 DEFINE(PT_FR16, offsetof(struct pt_regs, fr[16])); 205 DEFINE(PT_FR17, offsetof(struct pt_regs, fr[17])); 206 DEFINE(PT_FR18, offsetof(struct pt_regs, fr[18])); 207 DEFINE(PT_FR19, offsetof(struct pt_regs, fr[19])); 208 DEFINE(PT_FR20, offsetof(struct pt_regs, fr[20])); 209 DEFINE(PT_FR21, offsetof(struct pt_regs, fr[21])); 210 DEFINE(PT_FR22, offsetof(struct pt_regs, fr[22])); 211 DEFINE(PT_FR23, offsetof(struct pt_regs, fr[23])); 212 DEFINE(PT_FR24, offsetof(struct pt_regs, fr[24])); 213 DEFINE(PT_FR25, offsetof(struct pt_regs, fr[25])); 214 DEFINE(PT_FR26, offsetof(struct pt_regs, fr[26])); 215 DEFINE(PT_FR27, offsetof(struct pt_regs, fr[27])); 216 DEFINE(PT_FR28, offsetof(struct pt_regs, fr[28])); 217 DEFINE(PT_FR29, offsetof(struct pt_regs, fr[29])); 218 DEFINE(PT_FR30, offsetof(struct pt_regs, fr[30])); 219 DEFINE(PT_FR31, offsetof(struct pt_regs, fr[31])); 220 DEFINE(PT_SR0, offsetof(struct pt_regs, sr[ 0])); 221 DEFINE(PT_SR1, offsetof(struct pt_regs, sr[ 1])); 222 DEFINE(PT_SR2, offsetof(struct pt_regs, sr[ 2])); 223 DEFINE(PT_SR3, offsetof(struct pt_regs, sr[ 3])); 224 DEFINE(PT_SR4, offsetof(struct pt_regs, sr[ 4])); 225 DEFINE(PT_SR5, offsetof(struct pt_regs, sr[ 5])); 226 DEFINE(PT_SR6, offsetof(struct pt_regs, sr[ 6])); 227 DEFINE(PT_SR7, offsetof(struct pt_regs, sr[ 7])); 228 DEFINE(PT_IASQ0, offsetof(struct pt_regs, iasq[0])); 229 DEFINE(PT_IASQ1, offsetof(struct pt_regs, iasq[1])); 230 DEFINE(PT_IAOQ0, offsetof(struct pt_regs, iaoq[0])); 231 DEFINE(PT_IAOQ1, offsetof(struct pt_regs, iaoq[1])); 232 DEFINE(PT_CR27, offsetof(struct pt_regs, cr27)); 233 DEFINE(PT_ORIG_R28, offsetof(struct pt_regs, orig_r28)); 234 DEFINE(PT_KSP, offsetof(struct pt_regs, ksp)); 235 DEFINE(PT_KPC, offsetof(struct pt_regs, kpc)); 236 DEFINE(PT_SAR, offsetof(struct pt_regs, sar)); 237 DEFINE(PT_IIR, offsetof(struct pt_regs, iir)); 238 DEFINE(PT_ISR, offsetof(struct pt_regs, isr)); 239 DEFINE(PT_IOR, offsetof(struct pt_regs, ior)); 240 DEFINE(PT_SIZE, sizeof(struct pt_regs)); 241 DEFINE(PT_SZ_ALGN, align(sizeof(struct pt_regs), 64)); 242 BLANK(); 243 DEFINE(TI_TASK, offsetof(struct thread_info, task)); 244 DEFINE(TI_EXEC_DOMAIN, offsetof(struct thread_info, exec_domain)); 245 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); 246 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); 247 DEFINE(TI_SEGMENT, offsetof(struct thread_info, addr_limit)); 248 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); 249 DEFINE(THREAD_SZ, sizeof(struct thread_info)); 250 DEFINE(THREAD_SZ_ALGN, align(sizeof(struct thread_info), 64)); 251 BLANK(); 252 DEFINE(IRQSTAT_SIRQ_PEND, offsetof(irq_cpustat_t, __softirq_pending)); 253 DEFINE(IRQSTAT_SZ, sizeof(irq_cpustat_t)); 254 BLANK(); 255 DEFINE(ICACHE_BASE, offsetof(struct pdc_cache_info, ic_base)); 256 DEFINE(ICACHE_STRIDE, offsetof(struct pdc_cache_info, ic_stride)); 257 DEFINE(ICACHE_COUNT, offsetof(struct pdc_cache_info, ic_count)); 258 DEFINE(ICACHE_LOOP, offsetof(struct pdc_cache_info, ic_loop)); 259 DEFINE(DCACHE_BASE, offsetof(struct pdc_cache_info, dc_base)); 260 DEFINE(DCACHE_STRIDE, offsetof(struct pdc_cache_info, dc_stride)); 261 DEFINE(DCACHE_COUNT, offsetof(struct pdc_cache_info, dc_count)); 262 DEFINE(DCACHE_LOOP, offsetof(struct pdc_cache_info, dc_loop)); 263 DEFINE(ITLB_SID_BASE, offsetof(struct pdc_cache_info, it_sp_base)); 264 DEFINE(ITLB_SID_STRIDE, offsetof(struct pdc_cache_info, it_sp_stride)); 265 DEFINE(ITLB_SID_COUNT, offsetof(struct pdc_cache_info, it_sp_count)); 266 DEFINE(ITLB_OFF_BASE, offsetof(struct pdc_cache_info, it_off_base)); 267 DEFINE(ITLB_OFF_STRIDE, offsetof(struct pdc_cache_info, it_off_stride)); 268 DEFINE(ITLB_OFF_COUNT, offsetof(struct pdc_cache_info, it_off_count)); 269 DEFINE(ITLB_LOOP, offsetof(struct pdc_cache_info, it_loop)); 270 DEFINE(DTLB_SID_BASE, offsetof(struct pdc_cache_info, dt_sp_base)); 271 DEFINE(DTLB_SID_STRIDE, offsetof(struct pdc_cache_info, dt_sp_stride)); 272 DEFINE(DTLB_SID_COUNT, offsetof(struct pdc_cache_info, dt_sp_count)); 273 DEFINE(DTLB_OFF_BASE, offsetof(struct pdc_cache_info, dt_off_base)); 274 DEFINE(DTLB_OFF_STRIDE, offsetof(struct pdc_cache_info, dt_off_stride)); 275 DEFINE(DTLB_OFF_COUNT, offsetof(struct pdc_cache_info, dt_off_count)); 276 DEFINE(DTLB_LOOP, offsetof(struct pdc_cache_info, dt_loop)); 277 BLANK(); 278 DEFINE(PA_BLOCKSTEP_BIT, 31-PT_BLOCKSTEP_BIT); 279 DEFINE(PA_SINGLESTEP_BIT, 31-PT_SINGLESTEP_BIT); 280 BLANK(); 281 DEFINE(ASM_PMD_SHIFT, PMD_SHIFT); 282 DEFINE(ASM_PGDIR_SHIFT, PGDIR_SHIFT); 283 DEFINE(ASM_BITS_PER_PGD, BITS_PER_PGD); 284 DEFINE(ASM_BITS_PER_PMD, BITS_PER_PMD); 285 DEFINE(ASM_BITS_PER_PTE, BITS_PER_PTE); 286 DEFINE(ASM_PGD_PMD_OFFSET, -(PAGE_SIZE << PGD_ORDER)); 287 DEFINE(ASM_PMD_ENTRY, ((PAGE_OFFSET & PMD_MASK) >> PMD_SHIFT)); 288 DEFINE(ASM_PGD_ENTRY, PAGE_OFFSET >> PGDIR_SHIFT); 289 DEFINE(ASM_PGD_ENTRY_SIZE, PGD_ENTRY_SIZE); 290 DEFINE(ASM_PMD_ENTRY_SIZE, PMD_ENTRY_SIZE); 291 DEFINE(ASM_PTE_ENTRY_SIZE, PTE_ENTRY_SIZE); 292 DEFINE(ASM_PT_INITIAL, PT_INITIAL); 293 DEFINE(ASM_PAGE_SIZE, PAGE_SIZE); 294 BLANK(); 295 DEFINE(EXCDATA_IP, offsetof(struct exception_data, fault_ip)); 296 DEFINE(EXCDATA_SPACE, offsetof(struct exception_data, fault_space)); 297 DEFINE(EXCDATA_ADDR, offsetof(struct exception_data, fault_addr)); 298 return 0; 299 } 300