asm-offsets.c (aa04b4cc5be64b4fb9ef4e0fdf2418e2f4737fb2) asm-offsets.c (9e368f2915601cd5bc7f5fd638b58435b018bbd7)
1/*
2 * This program is used to generate definitions needed by
3 * assembly language modules.
4 *
5 * We use the technique used in the OSF Mach kernel code:
6 * generate asm statements containing #defines,
7 * compile this file to assembler, and then extract the
8 * #defines from the assembly-language output.

--- 114 unchanged lines hidden (view full) ---

123 DEFINE(DCACHEL1LINESIZE, offsetof(struct ppc64_caches, dline_size));
124 DEFINE(DCACHEL1LOGLINESIZE, offsetof(struct ppc64_caches, log_dline_size));
125 DEFINE(DCACHEL1LINESPERPAGE, offsetof(struct ppc64_caches, dlines_per_page));
126 DEFINE(ICACHEL1LINESIZE, offsetof(struct ppc64_caches, iline_size));
127 DEFINE(ICACHEL1LOGLINESIZE, offsetof(struct ppc64_caches, log_iline_size));
128 DEFINE(ICACHEL1LINESPERPAGE, offsetof(struct ppc64_caches, ilines_per_page));
129 /* paca */
130 DEFINE(PACA_SIZE, sizeof(struct paca_struct));
1/*
2 * This program is used to generate definitions needed by
3 * assembly language modules.
4 *
5 * We use the technique used in the OSF Mach kernel code:
6 * generate asm statements containing #defines,
7 * compile this file to assembler, and then extract the
8 * #defines from the assembly-language output.

--- 114 unchanged lines hidden (view full) ---

123 DEFINE(DCACHEL1LINESIZE, offsetof(struct ppc64_caches, dline_size));
124 DEFINE(DCACHEL1LOGLINESIZE, offsetof(struct ppc64_caches, log_dline_size));
125 DEFINE(DCACHEL1LINESPERPAGE, offsetof(struct ppc64_caches, dlines_per_page));
126 DEFINE(ICACHEL1LINESIZE, offsetof(struct ppc64_caches, iline_size));
127 DEFINE(ICACHEL1LOGLINESIZE, offsetof(struct ppc64_caches, log_iline_size));
128 DEFINE(ICACHEL1LINESPERPAGE, offsetof(struct ppc64_caches, ilines_per_page));
129 /* paca */
130 DEFINE(PACA_SIZE, sizeof(struct paca_struct));
131 DEFINE(PACA_LOCK_TOKEN, offsetof(struct paca_struct, lock_token));
131 DEFINE(PACAPACAINDEX, offsetof(struct paca_struct, paca_index));
132 DEFINE(PACAPROCSTART, offsetof(struct paca_struct, cpu_start));
133 DEFINE(PACAKSAVE, offsetof(struct paca_struct, kstack));
134 DEFINE(PACACURRENT, offsetof(struct paca_struct, __current));
135 DEFINE(PACASAVEDMSR, offsetof(struct paca_struct, saved_msr));
136 DEFINE(PACASTABRR, offsetof(struct paca_struct, stab_rr));
137 DEFINE(PACAR1, offsetof(struct paca_struct, saved_r1));
138 DEFINE(PACATOC, offsetof(struct paca_struct, kernel_toc));

--- 471 unchanged lines hidden ---
132 DEFINE(PACAPACAINDEX, offsetof(struct paca_struct, paca_index));
133 DEFINE(PACAPROCSTART, offsetof(struct paca_struct, cpu_start));
134 DEFINE(PACAKSAVE, offsetof(struct paca_struct, kstack));
135 DEFINE(PACACURRENT, offsetof(struct paca_struct, __current));
136 DEFINE(PACASAVEDMSR, offsetof(struct paca_struct, saved_msr));
137 DEFINE(PACASTABRR, offsetof(struct paca_struct, stab_rr));
138 DEFINE(PACAR1, offsetof(struct paca_struct, saved_r1));
139 DEFINE(PACATOC, offsetof(struct paca_struct, kernel_toc));

--- 471 unchanged lines hidden ---