patches/gdb/6.7.1/175-gdb-hppa-offsets.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jul 25 14:08:03 2008 +0000 (2008-07-25)
changeset 722 37968404e9b9
permissions -rw-r--r--
When dumping the DokuWiki table of samples, don't leave the kernel headers version empty if using a custom headers set., and say so.

/trunk/scripts/showSamples.sh | 6 5 1 0 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
yann@570
     1
Original patch from gentoo: gentoo/src/patchsets/gdb/6.7.1/45_all_gdb-hppa-offsets.patch
yann@570
     2
-= BEGIN original header =-
yann@570
     3
sanitized headers dont include asm/offsets.h, so cache a local copy 
yann@570
     4
yann@570
     5
http://bugs.gentoo.org/180476
yann@570
     6
http://lists.parisc-linux.org/pipermail/parisc-linux/2007-February/031162.html
yann@570
     7
yann@570
     8
-= END original header =-
yann@570
     9
diff -durN gdb-6.7.1.orig/gdb/hppa-linux-nat.c gdb-6.7.1/gdb/hppa-linux-nat.c
yann@570
    10
--- gdb-6.7.1.orig/gdb/hppa-linux-nat.c	2007-08-23 20:08:33.000000000 +0200
yann@570
    11
+++ gdb-6.7.1/gdb/hppa-linux-nat.c	2008-06-17 23:27:45.000000000 +0200
yann@570
    12
@@ -32,7 +32,7 @@
yann@570
    13
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,43)
yann@570
    14
 #include <asm/offset.h>
yann@570
    15
 #else
yann@570
    16
-#include <asm/offsets.h>
yann@570
    17
+#include <hppa-offsets.h>
yann@570
    18
 #endif
yann@570
    19
 
yann@570
    20
 #include "hppa-tdep.h"
yann@570
    21
diff -durN gdb-6.7.1.orig/gdb/hppa-offsets.h gdb-6.7.1/gdb/hppa-offsets.h
yann@570
    22
--- gdb-6.7.1.orig/gdb/hppa-offsets.h	1970-01-01 01:00:00.000000000 +0100
yann@570
    23
+++ gdb-6.7.1/gdb/hppa-offsets.h	2008-06-17 23:27:45.000000000 +0200
yann@570
    24
@@ -0,0 +1,248 @@
yann@570
    25
+#ifndef __ASM_OFFSETS_H__
yann@570
    26
+#define __ASM_OFFSETS_H__
yann@570
    27
+/*
yann@570
    28
+ * DO NOT MODIFY.
yann@570
    29
+ *
yann@570
    30
+ * This file was generated by arch/parisc/Makefile
yann@570
    31
+ *
yann@570
    32
+ */
yann@570
    33
+
yann@570
    34
+#define TASK_THREAD_INFO 4 /* offsetof(struct task_struct, thread_info) */
yann@570
    35
+#define TASK_STATE 0 /* offsetof(struct task_struct, state) */
yann@570
    36
+#define TASK_FLAGS 12 /* offsetof(struct task_struct, flags) */
yann@570
    37
+#define TASK_SIGPENDING 1188 /* offsetof(struct task_struct, pending) */
yann@570
    38
+#define TASK_PTRACE 16 /* offsetof(struct task_struct, ptrace) */
yann@570
    39
+#define TASK_MM 108 /* offsetof(struct task_struct, mm) */
yann@570
    40
+#define TASK_PERSONALITY 132 /* offsetof(struct task_struct, personality) */
yann@570
    41
+#define TASK_PID 140 /* offsetof(struct task_struct, pid) */
yann@570
    42
+
yann@570
    43
+#define TASK_REGS 664 /* offsetof(struct task_struct, thread.regs) */
yann@570
    44
+#define TASK_PT_PSW 664 /* offsetof(struct task_struct, thread.regs.gr[ 0]) */
yann@570
    45
+#define TASK_PT_GR1 668 /* offsetof(struct task_struct, thread.regs.gr[ 1]) */
yann@570
    46
+#define TASK_PT_GR2 672 /* offsetof(struct task_struct, thread.regs.gr[ 2]) */
yann@570
    47
+#define TASK_PT_GR3 676 /* offsetof(struct task_struct, thread.regs.gr[ 3]) */
yann@570
    48
+#define TASK_PT_GR4 680 /* offsetof(struct task_struct, thread.regs.gr[ 4]) */
yann@570
    49
+#define TASK_PT_GR5 684 /* offsetof(struct task_struct, thread.regs.gr[ 5]) */
yann@570
    50
+#define TASK_PT_GR6 688 /* offsetof(struct task_struct, thread.regs.gr[ 6]) */
yann@570
    51
+#define TASK_PT_GR7 692 /* offsetof(struct task_struct, thread.regs.gr[ 7]) */
yann@570
    52
+#define TASK_PT_GR8 696 /* offsetof(struct task_struct, thread.regs.gr[ 8]) */
yann@570
    53
+#define TASK_PT_GR9 700 /* offsetof(struct task_struct, thread.regs.gr[ 9]) */
yann@570
    54
+#define TASK_PT_GR10 704 /* offsetof(struct task_struct, thread.regs.gr[10]) */
yann@570
    55
+#define TASK_PT_GR11 708 /* offsetof(struct task_struct, thread.regs.gr[11]) */
yann@570
    56
+#define TASK_PT_GR12 712 /* offsetof(struct task_struct, thread.regs.gr[12]) */
yann@570
    57
+#define TASK_PT_GR13 716 /* offsetof(struct task_struct, thread.regs.gr[13]) */
yann@570
    58
+#define TASK_PT_GR14 720 /* offsetof(struct task_struct, thread.regs.gr[14]) */
yann@570
    59
+#define TASK_PT_GR15 724 /* offsetof(struct task_struct, thread.regs.gr[15]) */
yann@570
    60
+#define TASK_PT_GR16 728 /* offsetof(struct task_struct, thread.regs.gr[16]) */
yann@570
    61
+#define TASK_PT_GR17 732 /* offsetof(struct task_struct, thread.regs.gr[17]) */
yann@570
    62
+#define TASK_PT_GR18 736 /* offsetof(struct task_struct, thread.regs.gr[18]) */
yann@570
    63
+#define TASK_PT_GR19 740 /* offsetof(struct task_struct, thread.regs.gr[19]) */
yann@570
    64
+#define TASK_PT_GR20 744 /* offsetof(struct task_struct, thread.regs.gr[20]) */
yann@570
    65
+#define TASK_PT_GR21 748 /* offsetof(struct task_struct, thread.regs.gr[21]) */
yann@570
    66
+#define TASK_PT_GR22 752 /* offsetof(struct task_struct, thread.regs.gr[22]) */
yann@570
    67
+#define TASK_PT_GR23 756 /* offsetof(struct task_struct, thread.regs.gr[23]) */
yann@570
    68
+#define TASK_PT_GR24 760 /* offsetof(struct task_struct, thread.regs.gr[24]) */
yann@570
    69
+#define TASK_PT_GR25 764 /* offsetof(struct task_struct, thread.regs.gr[25]) */
yann@570
    70
+#define TASK_PT_GR26 768 /* offsetof(struct task_struct, thread.regs.gr[26]) */
yann@570
    71
+#define TASK_PT_GR27 772 /* offsetof(struct task_struct, thread.regs.gr[27]) */
yann@570
    72
+#define TASK_PT_GR28 776 /* offsetof(struct task_struct, thread.regs.gr[28]) */
yann@570
    73
+#define TASK_PT_GR29 780 /* offsetof(struct task_struct, thread.regs.gr[29]) */
yann@570
    74
+#define TASK_PT_GR30 784 /* offsetof(struct task_struct, thread.regs.gr[30]) */
yann@570
    75
+#define TASK_PT_GR31 788 /* offsetof(struct task_struct, thread.regs.gr[31]) */
yann@570
    76
+#define TASK_PT_FR0 792 /* offsetof(struct task_struct, thread.regs.fr[ 0]) */
yann@570
    77
+#define TASK_PT_FR1 800 /* offsetof(struct task_struct, thread.regs.fr[ 1]) */
yann@570
    78
+#define TASK_PT_FR2 808 /* offsetof(struct task_struct, thread.regs.fr[ 2]) */
yann@570
    79
+#define TASK_PT_FR3 816 /* offsetof(struct task_struct, thread.regs.fr[ 3]) */
yann@570
    80
+#define TASK_PT_FR4 824 /* offsetof(struct task_struct, thread.regs.fr[ 4]) */
yann@570
    81
+#define TASK_PT_FR5 832 /* offsetof(struct task_struct, thread.regs.fr[ 5]) */
yann@570
    82
+#define TASK_PT_FR6 840 /* offsetof(struct task_struct, thread.regs.fr[ 6]) */
yann@570
    83
+#define TASK_PT_FR7 848 /* offsetof(struct task_struct, thread.regs.fr[ 7]) */
yann@570
    84
+#define TASK_PT_FR8 856 /* offsetof(struct task_struct, thread.regs.fr[ 8]) */
yann@570
    85
+#define TASK_PT_FR9 864 /* offsetof(struct task_struct, thread.regs.fr[ 9]) */
yann@570
    86
+#define TASK_PT_FR10 872 /* offsetof(struct task_struct, thread.regs.fr[10]) */
yann@570
    87
+#define TASK_PT_FR11 880 /* offsetof(struct task_struct, thread.regs.fr[11]) */
yann@570
    88
+#define TASK_PT_FR12 888 /* offsetof(struct task_struct, thread.regs.fr[12]) */
yann@570
    89
+#define TASK_PT_FR13 896 /* offsetof(struct task_struct, thread.regs.fr[13]) */
yann@570
    90
+#define TASK_PT_FR14 904 /* offsetof(struct task_struct, thread.regs.fr[14]) */
yann@570
    91
+#define TASK_PT_FR15 912 /* offsetof(struct task_struct, thread.regs.fr[15]) */
yann@570
    92
+#define TASK_PT_FR16 920 /* offsetof(struct task_struct, thread.regs.fr[16]) */
yann@570
    93
+#define TASK_PT_FR17 928 /* offsetof(struct task_struct, thread.regs.fr[17]) */
yann@570
    94
+#define TASK_PT_FR18 936 /* offsetof(struct task_struct, thread.regs.fr[18]) */
yann@570
    95
+#define TASK_PT_FR19 944 /* offsetof(struct task_struct, thread.regs.fr[19]) */
yann@570
    96
+#define TASK_PT_FR20 952 /* offsetof(struct task_struct, thread.regs.fr[20]) */
yann@570
    97
+#define TASK_PT_FR21 960 /* offsetof(struct task_struct, thread.regs.fr[21]) */
yann@570
    98
+#define TASK_PT_FR22 968 /* offsetof(struct task_struct, thread.regs.fr[22]) */
yann@570
    99
+#define TASK_PT_FR23 976 /* offsetof(struct task_struct, thread.regs.fr[23]) */
yann@570
   100
+#define TASK_PT_FR24 984 /* offsetof(struct task_struct, thread.regs.fr[24]) */
yann@570
   101
+#define TASK_PT_FR25 992 /* offsetof(struct task_struct, thread.regs.fr[25]) */
yann@570
   102
+#define TASK_PT_FR26 1000 /* offsetof(struct task_struct, thread.regs.fr[26]) */
yann@570
   103
+#define TASK_PT_FR27 1008 /* offsetof(struct task_struct, thread.regs.fr[27]) */
yann@570
   104
+#define TASK_PT_FR28 1016 /* offsetof(struct task_struct, thread.regs.fr[28]) */
yann@570
   105
+#define TASK_PT_FR29 1024 /* offsetof(struct task_struct, thread.regs.fr[29]) */
yann@570
   106
+#define TASK_PT_FR30 1032 /* offsetof(struct task_struct, thread.regs.fr[30]) */
yann@570
   107
+#define TASK_PT_FR31 1040 /* offsetof(struct task_struct, thread.regs.fr[31]) */
yann@570
   108
+#define TASK_PT_SR0 1048 /* offsetof(struct task_struct, thread.regs.sr[ 0]) */
yann@570
   109
+#define TASK_PT_SR1 1052 /* offsetof(struct task_struct, thread.regs.sr[ 1]) */
yann@570
   110
+#define TASK_PT_SR2 1056 /* offsetof(struct task_struct, thread.regs.sr[ 2]) */
yann@570
   111
+#define TASK_PT_SR3 1060 /* offsetof(struct task_struct, thread.regs.sr[ 3]) */
yann@570
   112
+#define TASK_PT_SR4 1064 /* offsetof(struct task_struct, thread.regs.sr[ 4]) */
yann@570
   113
+#define TASK_PT_SR5 1068 /* offsetof(struct task_struct, thread.regs.sr[ 5]) */
yann@570
   114
+#define TASK_PT_SR6 1072 /* offsetof(struct task_struct, thread.regs.sr[ 6]) */
yann@570
   115
+#define TASK_PT_SR7 1076 /* offsetof(struct task_struct, thread.regs.sr[ 7]) */
yann@570
   116
+#define TASK_PT_IASQ0 1080 /* offsetof(struct task_struct, thread.regs.iasq[0]) */
yann@570
   117
+#define TASK_PT_IASQ1 1084 /* offsetof(struct task_struct, thread.regs.iasq[1]) */
yann@570
   118
+#define TASK_PT_IAOQ0 1088 /* offsetof(struct task_struct, thread.regs.iaoq[0]) */
yann@570
   119
+#define TASK_PT_IAOQ1 1092 /* offsetof(struct task_struct, thread.regs.iaoq[1]) */
yann@570
   120
+#define TASK_PT_CR27 1096 /* offsetof(struct task_struct, thread.regs.cr27) */
yann@570
   121
+#define TASK_PT_ORIG_R28 1104 /* offsetof(struct task_struct, thread.regs.orig_r28) */
yann@570
   122
+#define TASK_PT_KSP 1108 /* offsetof(struct task_struct, thread.regs.ksp) */
yann@570
   123
+#define TASK_PT_KPC 1112 /* offsetof(struct task_struct, thread.regs.kpc) */
yann@570
   124
+#define TASK_PT_SAR 1116 /* offsetof(struct task_struct, thread.regs.sar) */
yann@570
   125
+#define TASK_PT_IIR 1120 /* offsetof(struct task_struct, thread.regs.iir) */
yann@570
   126
+#define TASK_PT_ISR 1124 /* offsetof(struct task_struct, thread.regs.isr) */
yann@570
   127
+#define TASK_PT_IOR 1128 /* offsetof(struct task_struct, thread.regs.ior) */
yann@570
   128
+
yann@570
   129
+#define TASK_SZ 1272 /* sizeof(struct task_struct) */
yann@570
   130
+#define TASK_SZ_ALGN 1344 /* align(sizeof(struct task_struct), 64) */
yann@570
   131
+
yann@570
   132
+#define PT_PSW 0 /* offsetof(struct pt_regs, gr[ 0]) */
yann@570
   133
+#define PT_GR1 4 /* offsetof(struct pt_regs, gr[ 1]) */
yann@570
   134
+#define PT_GR2 8 /* offsetof(struct pt_regs, gr[ 2]) */
yann@570
   135
+#define PT_GR3 12 /* offsetof(struct pt_regs, gr[ 3]) */
yann@570
   136
+#define PT_GR4 16 /* offsetof(struct pt_regs, gr[ 4]) */
yann@570
   137
+#define PT_GR5 20 /* offsetof(struct pt_regs, gr[ 5]) */
yann@570
   138
+#define PT_GR6 24 /* offsetof(struct pt_regs, gr[ 6]) */
yann@570
   139
+#define PT_GR7 28 /* offsetof(struct pt_regs, gr[ 7]) */
yann@570
   140
+#define PT_GR8 32 /* offsetof(struct pt_regs, gr[ 8]) */
yann@570
   141
+#define PT_GR9 36 /* offsetof(struct pt_regs, gr[ 9]) */
yann@570
   142
+#define PT_GR10 40 /* offsetof(struct pt_regs, gr[10]) */
yann@570
   143
+#define PT_GR11 44 /* offsetof(struct pt_regs, gr[11]) */
yann@570
   144
+#define PT_GR12 48 /* offsetof(struct pt_regs, gr[12]) */
yann@570
   145
+#define PT_GR13 52 /* offsetof(struct pt_regs, gr[13]) */
yann@570
   146
+#define PT_GR14 56 /* offsetof(struct pt_regs, gr[14]) */
yann@570
   147
+#define PT_GR15 60 /* offsetof(struct pt_regs, gr[15]) */
yann@570
   148
+#define PT_GR16 64 /* offsetof(struct pt_regs, gr[16]) */
yann@570
   149
+#define PT_GR17 68 /* offsetof(struct pt_regs, gr[17]) */
yann@570
   150
+#define PT_GR18 72 /* offsetof(struct pt_regs, gr[18]) */
yann@570
   151
+#define PT_GR19 76 /* offsetof(struct pt_regs, gr[19]) */
yann@570
   152
+#define PT_GR20 80 /* offsetof(struct pt_regs, gr[20]) */
yann@570
   153
+#define PT_GR21 84 /* offsetof(struct pt_regs, gr[21]) */
yann@570
   154
+#define PT_GR22 88 /* offsetof(struct pt_regs, gr[22]) */
yann@570
   155
+#define PT_GR23 92 /* offsetof(struct pt_regs, gr[23]) */
yann@570
   156
+#define PT_GR24 96 /* offsetof(struct pt_regs, gr[24]) */
yann@570
   157
+#define PT_GR25 100 /* offsetof(struct pt_regs, gr[25]) */
yann@570
   158
+#define PT_GR26 104 /* offsetof(struct pt_regs, gr[26]) */
yann@570
   159
+#define PT_GR27 108 /* offsetof(struct pt_regs, gr[27]) */
yann@570
   160
+#define PT_GR28 112 /* offsetof(struct pt_regs, gr[28]) */
yann@570
   161
+#define PT_GR29 116 /* offsetof(struct pt_regs, gr[29]) */
yann@570
   162
+#define PT_GR30 120 /* offsetof(struct pt_regs, gr[30]) */
yann@570
   163
+#define PT_GR31 124 /* offsetof(struct pt_regs, gr[31]) */
yann@570
   164
+#define PT_FR0 128 /* offsetof(struct pt_regs, fr[ 0]) */
yann@570
   165
+#define PT_FR1 136 /* offsetof(struct pt_regs, fr[ 1]) */
yann@570
   166
+#define PT_FR2 144 /* offsetof(struct pt_regs, fr[ 2]) */
yann@570
   167
+#define PT_FR3 152 /* offsetof(struct pt_regs, fr[ 3]) */
yann@570
   168
+#define PT_FR4 160 /* offsetof(struct pt_regs, fr[ 4]) */
yann@570
   169
+#define PT_FR5 168 /* offsetof(struct pt_regs, fr[ 5]) */
yann@570
   170
+#define PT_FR6 176 /* offsetof(struct pt_regs, fr[ 6]) */
yann@570
   171
+#define PT_FR7 184 /* offsetof(struct pt_regs, fr[ 7]) */
yann@570
   172
+#define PT_FR8 192 /* offsetof(struct pt_regs, fr[ 8]) */
yann@570
   173
+#define PT_FR9 200 /* offsetof(struct pt_regs, fr[ 9]) */
yann@570
   174
+#define PT_FR10 208 /* offsetof(struct pt_regs, fr[10]) */
yann@570
   175
+#define PT_FR11 216 /* offsetof(struct pt_regs, fr[11]) */
yann@570
   176
+#define PT_FR12 224 /* offsetof(struct pt_regs, fr[12]) */
yann@570
   177
+#define PT_FR13 232 /* offsetof(struct pt_regs, fr[13]) */
yann@570
   178
+#define PT_FR14 240 /* offsetof(struct pt_regs, fr[14]) */
yann@570
   179
+#define PT_FR15 248 /* offsetof(struct pt_regs, fr[15]) */
yann@570
   180
+#define PT_FR16 256 /* offsetof(struct pt_regs, fr[16]) */
yann@570
   181
+#define PT_FR17 264 /* offsetof(struct pt_regs, fr[17]) */
yann@570
   182
+#define PT_FR18 272 /* offsetof(struct pt_regs, fr[18]) */
yann@570
   183
+#define PT_FR19 280 /* offsetof(struct pt_regs, fr[19]) */
yann@570
   184
+#define PT_FR20 288 /* offsetof(struct pt_regs, fr[20]) */
yann@570
   185
+#define PT_FR21 296 /* offsetof(struct pt_regs, fr[21]) */
yann@570
   186
+#define PT_FR22 304 /* offsetof(struct pt_regs, fr[22]) */
yann@570
   187
+#define PT_FR23 312 /* offsetof(struct pt_regs, fr[23]) */
yann@570
   188
+#define PT_FR24 320 /* offsetof(struct pt_regs, fr[24]) */
yann@570
   189
+#define PT_FR25 328 /* offsetof(struct pt_regs, fr[25]) */
yann@570
   190
+#define PT_FR26 336 /* offsetof(struct pt_regs, fr[26]) */
yann@570
   191
+#define PT_FR27 344 /* offsetof(struct pt_regs, fr[27]) */
yann@570
   192
+#define PT_FR28 352 /* offsetof(struct pt_regs, fr[28]) */
yann@570
   193
+#define PT_FR29 360 /* offsetof(struct pt_regs, fr[29]) */
yann@570
   194
+#define PT_FR30 368 /* offsetof(struct pt_regs, fr[30]) */
yann@570
   195
+#define PT_FR31 376 /* offsetof(struct pt_regs, fr[31]) */
yann@570
   196
+#define PT_SR0 384 /* offsetof(struct pt_regs, sr[ 0]) */
yann@570
   197
+#define PT_SR1 388 /* offsetof(struct pt_regs, sr[ 1]) */
yann@570
   198
+#define PT_SR2 392 /* offsetof(struct pt_regs, sr[ 2]) */
yann@570
   199
+#define PT_SR3 396 /* offsetof(struct pt_regs, sr[ 3]) */
yann@570
   200
+#define PT_SR4 400 /* offsetof(struct pt_regs, sr[ 4]) */
yann@570
   201
+#define PT_SR5 404 /* offsetof(struct pt_regs, sr[ 5]) */
yann@570
   202
+#define PT_SR6 408 /* offsetof(struct pt_regs, sr[ 6]) */
yann@570
   203
+#define PT_SR7 412 /* offsetof(struct pt_regs, sr[ 7]) */
yann@570
   204
+#define PT_IASQ0 416 /* offsetof(struct pt_regs, iasq[0]) */
yann@570
   205
+#define PT_IASQ1 420 /* offsetof(struct pt_regs, iasq[1]) */
yann@570
   206
+#define PT_IAOQ0 424 /* offsetof(struct pt_regs, iaoq[0]) */
yann@570
   207
+#define PT_IAOQ1 428 /* offsetof(struct pt_regs, iaoq[1]) */
yann@570
   208
+#define PT_CR27 432 /* offsetof(struct pt_regs, cr27) */
yann@570
   209
+#define PT_ORIG_R28 440 /* offsetof(struct pt_regs, orig_r28) */
yann@570
   210
+#define PT_KSP 444 /* offsetof(struct pt_regs, ksp) */
yann@570
   211
+#define PT_KPC 448 /* offsetof(struct pt_regs, kpc) */
yann@570
   212
+#define PT_SAR 452 /* offsetof(struct pt_regs, sar) */
yann@570
   213
+#define PT_IIR 456 /* offsetof(struct pt_regs, iir) */
yann@570
   214
+#define PT_ISR 460 /* offsetof(struct pt_regs, isr) */
yann@570
   215
+#define PT_IOR 464 /* offsetof(struct pt_regs, ior) */
yann@570
   216
+#define PT_SIZE 472 /* sizeof(struct pt_regs) */
yann@570
   217
+#define PT_SZ_ALGN 576 /* align(sizeof(struct pt_regs), 64) */
yann@570
   218
+
yann@570
   219
+#define TI_TASK 0 /* offsetof(struct thread_info, task) */
yann@570
   220
+#define TI_EXEC_DOMAIN 4 /* offsetof(struct thread_info, exec_domain) */
yann@570
   221
+#define TI_FLAGS 8 /* offsetof(struct thread_info, flags) */
yann@570
   222
+#define TI_CPU 16 /* offsetof(struct thread_info, cpu) */
yann@570
   223
+#define TI_SEGMENT 12 /* offsetof(struct thread_info, addr_limit) */
yann@570
   224
+#define TI_PRE_COUNT 20 /* offsetof(struct thread_info, preempt_count) */
yann@570
   225
+#define THREAD_SZ 44 /* sizeof(struct thread_info) */
yann@570
   226
+#define THREAD_SZ_ALGN 128 /* align(sizeof(struct thread_info), 64) */
yann@570
   227
+
yann@570
   228
+#define IRQSTAT_SIRQ_PEND 0 /* offsetof(irq_cpustat_t, __softirq_pending) */
yann@570
   229
+#define IRQSTAT_SZ 64 /* sizeof(irq_cpustat_t) */
yann@570
   230
+
yann@570
   231
+#define ICACHE_BASE 8 /* offsetof(struct pdc_cache_info, ic_base) */
yann@570
   232
+#define ICACHE_STRIDE 12 /* offsetof(struct pdc_cache_info, ic_stride) */
yann@570
   233
+#define ICACHE_COUNT 16 /* offsetof(struct pdc_cache_info, ic_count) */
yann@570
   234
+#define ICACHE_LOOP 20 /* offsetof(struct pdc_cache_info, ic_loop) */
yann@570
   235
+#define DCACHE_BASE 32 /* offsetof(struct pdc_cache_info, dc_base) */
yann@570
   236
+#define DCACHE_STRIDE 36 /* offsetof(struct pdc_cache_info, dc_stride) */
yann@570
   237
+#define DCACHE_COUNT 40 /* offsetof(struct pdc_cache_info, dc_count) */
yann@570
   238
+#define DCACHE_LOOP 44 /* offsetof(struct pdc_cache_info, dc_loop) */
yann@570
   239
+#define ITLB_SID_BASE 56 /* offsetof(struct pdc_cache_info, it_sp_base) */
yann@570
   240
+#define ITLB_SID_STRIDE 60 /* offsetof(struct pdc_cache_info, it_sp_stride) */
yann@570
   241
+#define ITLB_SID_COUNT 64 /* offsetof(struct pdc_cache_info, it_sp_count) */
yann@570
   242
+#define ITLB_OFF_BASE 68 /* offsetof(struct pdc_cache_info, it_off_base) */
yann@570
   243
+#define ITLB_OFF_STRIDE 72 /* offsetof(struct pdc_cache_info, it_off_stride) */
yann@570
   244
+#define ITLB_OFF_COUNT 76 /* offsetof(struct pdc_cache_info, it_off_count) */
yann@570
   245
+#define ITLB_LOOP 80 /* offsetof(struct pdc_cache_info, it_loop) */
yann@570
   246
+#define DTLB_SID_BASE 92 /* offsetof(struct pdc_cache_info, dt_sp_base) */
yann@570
   247
+#define DTLB_SID_STRIDE 96 /* offsetof(struct pdc_cache_info, dt_sp_stride) */
yann@570
   248
+#define DTLB_SID_COUNT 100 /* offsetof(struct pdc_cache_info, dt_sp_count) */
yann@570
   249
+#define DTLB_OFF_BASE 104 /* offsetof(struct pdc_cache_info, dt_off_base) */
yann@570
   250
+#define DTLB_OFF_STRIDE 108 /* offsetof(struct pdc_cache_info, dt_off_stride) */
yann@570
   251
+#define DTLB_OFF_COUNT 112 /* offsetof(struct pdc_cache_info, dt_off_count) */
yann@570
   252
+#define DTLB_LOOP 116 /* offsetof(struct pdc_cache_info, dt_loop) */
yann@570
   253
+
yann@570
   254
+#define PA_BLOCKSTEP_BIT 1 /* 31-PT_BLOCKSTEP_BIT */
yann@570
   255
+#define PA_SINGLESTEP_BIT 0 /* 31-PT_SINGLESTEP_BIT */
yann@570
   256
+
yann@570
   257
+#define ASM_PMD_SHIFT 21 /* PMD_SHIFT */
yann@570
   258
+#define ASM_PGDIR_SHIFT 21 /* PGDIR_SHIFT */
yann@570
   259
+#define ASM_BITS_PER_PGD 11 /* BITS_PER_PGD */
yann@570
   260
+#define ASM_BITS_PER_PMD 0 /* BITS_PER_PMD */
yann@570
   261
+#define ASM_BITS_PER_PTE 9 /* BITS_PER_PTE */
yann@570
   262
+#define ASM_PGD_PMD_OFFSET -8192 /* -(PAGE_SIZE << PGD_ORDER) */
yann@570
   263
+#define ASM_PMD_ENTRY 128 /* ((PAGE_OFFSET & PMD_MASK) >> PMD_SHIFT) */
yann@570
   264
+#define ASM_PGD_ENTRY 128 /* PAGE_OFFSET >> PGDIR_SHIFT */
yann@570
   265
+#define ASM_PGD_ENTRY_SIZE 4 /* PGD_ENTRY_SIZE */
yann@570
   266
+#define ASM_PMD_ENTRY_SIZE 4 /* PMD_ENTRY_SIZE */
yann@570
   267
+#define ASM_PTE_ENTRY_SIZE 8 /* PTE_ENTRY_SIZE */
yann@570
   268
+#define ASM_PT_INITIAL 4 /* PT_INITIAL */
yann@570
   269
+#define ASM_PAGE_SIZE 4096 /* PAGE_SIZE */
yann@570
   270
+
yann@570
   271
+
yann@570
   272
+#endif