diff options
author | Grant Grundler <grundler@parisc-linux.org> | 2005-10-21 22:46:48 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@parisc-linux.org> | 2005-10-21 22:46:48 -0400 |
commit | 413059f28e9949d9ad2d04d1070c63169798176e (patch) | |
tree | c4609bc151c3f88f7e8f2128e81c32356f842063 /arch/parisc/kernel/head.S | |
parent | 3499495205a676d85fcc2f3c28e35ec9b43c47e3 (diff) |
[PARISC] Replace uses of __LP64__ with CONFIG_64BIT
2.6.12-rc4-pa3 s/__LP64__/CONFIG_64BIT/ and fixup config.h usage
Signed-off-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'arch/parisc/kernel/head.S')
-rw-r--r-- | arch/parisc/kernel/head.S | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/parisc/kernel/head.S b/arch/parisc/kernel/head.S index 2b8738576ec2..0b47afc20690 100644 --- a/arch/parisc/kernel/head.S +++ b/arch/parisc/kernel/head.S | |||
@@ -12,7 +12,7 @@ | |||
12 | * Initial Version 04-23-1999 by Helge Deller <deller@gmx.de> | 12 | * Initial Version 04-23-1999 by Helge Deller <deller@gmx.de> |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/autoconf.h> /* for CONFIG_SMP */ | 15 | #include <linux/config.h> /* for CONFIG_SMP */ |
16 | 16 | ||
17 | #include <asm/asm-offsets.h> | 17 | #include <asm/asm-offsets.h> |
18 | #include <asm/psw.h> | 18 | #include <asm/psw.h> |
@@ -36,10 +36,10 @@ boot_args: | |||
36 | .align 4 | 36 | .align 4 |
37 | .import init_thread_union,data | 37 | .import init_thread_union,data |
38 | .import fault_vector_20,code /* IVA parisc 2.0 32 bit */ | 38 | .import fault_vector_20,code /* IVA parisc 2.0 32 bit */ |
39 | #ifndef __LP64__ | 39 | #ifndef CONFIG_64BIT |
40 | .import fault_vector_11,code /* IVA parisc 1.1 32 bit */ | 40 | .import fault_vector_11,code /* IVA parisc 1.1 32 bit */ |
41 | .import $global$ /* forward declaration */ | 41 | .import $global$ /* forward declaration */ |
42 | #endif /*!LP64*/ | 42 | #endif /*!CONFIG_64BIT*/ |
43 | .export stext | 43 | .export stext |
44 | .export _stext,data /* Kernel want it this way! */ | 44 | .export _stext,data /* Kernel want it this way! */ |
45 | _stext: | 45 | _stext: |
@@ -76,7 +76,7 @@ $bss_loop: | |||
76 | mtctl %r4,%cr24 /* Initialize kernel root pointer */ | 76 | mtctl %r4,%cr24 /* Initialize kernel root pointer */ |
77 | mtctl %r4,%cr25 /* Initialize user root pointer */ | 77 | mtctl %r4,%cr25 /* Initialize user root pointer */ |
78 | 78 | ||
79 | #ifdef __LP64__ | 79 | #ifdef CONFIG_64BIT |
80 | /* Set pmd in pgd */ | 80 | /* Set pmd in pgd */ |
81 | load32 PA(pmd0),%r5 | 81 | load32 PA(pmd0),%r5 |
82 | shrd %r5,PxD_VALUE_SHIFT,%r3 | 82 | shrd %r5,PxD_VALUE_SHIFT,%r3 |
@@ -99,7 +99,7 @@ $bss_loop: | |||
99 | stw %r3,0(%r4) | 99 | stw %r3,0(%r4) |
100 | ldo (ASM_PAGE_SIZE >> PxD_VALUE_SHIFT)(%r3),%r3 | 100 | ldo (ASM_PAGE_SIZE >> PxD_VALUE_SHIFT)(%r3),%r3 |
101 | addib,> -1,%r1,1b | 101 | addib,> -1,%r1,1b |
102 | #ifdef __LP64__ | 102 | #ifdef CONFIG_64BIT |
103 | ldo ASM_PMD_ENTRY_SIZE(%r4),%r4 | 103 | ldo ASM_PMD_ENTRY_SIZE(%r4),%r4 |
104 | #else | 104 | #else |
105 | ldo ASM_PGD_ENTRY_SIZE(%r4),%r4 | 105 | ldo ASM_PGD_ENTRY_SIZE(%r4),%r4 |
@@ -170,7 +170,7 @@ common_stext: | |||
170 | stw %r0,0x28(%r0) /* MEM_RENDEZ_HI */ | 170 | stw %r0,0x28(%r0) /* MEM_RENDEZ_HI */ |
171 | #endif /*CONFIG_SMP*/ | 171 | #endif /*CONFIG_SMP*/ |
172 | 172 | ||
173 | #ifdef __LP64__ | 173 | #ifdef CONFIG_64BIT |
174 | tophys_r1 %sp | 174 | tophys_r1 %sp |
175 | 175 | ||
176 | /* Save the rfi target address */ | 176 | /* Save the rfi target address */ |
@@ -233,7 +233,7 @@ stext_pdc_ret: | |||
233 | * following short sequence of instructions can determine this | 233 | * following short sequence of instructions can determine this |
234 | * (without being illegal on a PA1.1 machine). | 234 | * (without being illegal on a PA1.1 machine). |
235 | */ | 235 | */ |
236 | #ifndef __LP64__ | 236 | #ifndef CONFIG_64BIT |
237 | ldi 32,%r10 | 237 | ldi 32,%r10 |
238 | mtctl %r10,%cr11 | 238 | mtctl %r10,%cr11 |
239 | .level 2.0 | 239 | .level 2.0 |
@@ -246,7 +246,7 @@ stext_pdc_ret: | |||
246 | 246 | ||
247 | $is_pa20: | 247 | $is_pa20: |
248 | .level LEVEL /* restore 1.1 || 2.0w */ | 248 | .level LEVEL /* restore 1.1 || 2.0w */ |
249 | #endif /*!LP64*/ | 249 | #endif /*!CONFIG_64BIT*/ |
250 | load32 PA(fault_vector_20),%r10 | 250 | load32 PA(fault_vector_20),%r10 |
251 | 251 | ||
252 | $install_iva: | 252 | $install_iva: |
@@ -284,7 +284,7 @@ aligned_rfi: | |||
284 | .import smp_init_current_idle_task,data | 284 | .import smp_init_current_idle_task,data |
285 | .import smp_callin,code | 285 | .import smp_callin,code |
286 | 286 | ||
287 | #ifndef __LP64__ | 287 | #ifndef CONFIG_64BIT |
288 | smp_callin_rtn: | 288 | smp_callin_rtn: |
289 | .proc | 289 | .proc |
290 | .callinfo | 290 | .callinfo |
@@ -292,7 +292,7 @@ smp_callin_rtn: | |||
292 | nop | 292 | nop |
293 | nop | 293 | nop |
294 | .procend | 294 | .procend |
295 | #endif /*!LP64*/ | 295 | #endif /*!CONFIG_64BIT*/ |
296 | 296 | ||
297 | /*************************************************************************** | 297 | /*************************************************************************** |
298 | * smp_slave_stext is executed by all non-monarch Processors when the Monarch | 298 | * smp_slave_stext is executed by all non-monarch Processors when the Monarch |
@@ -327,7 +327,7 @@ smp_slave_stext: | |||
327 | mtctl %r4,%cr24 /* Initialize kernel root pointer */ | 327 | mtctl %r4,%cr24 /* Initialize kernel root pointer */ |
328 | mtctl %r4,%cr25 /* Initialize user root pointer */ | 328 | mtctl %r4,%cr25 /* Initialize user root pointer */ |
329 | 329 | ||
330 | #ifdef __LP64__ | 330 | #ifdef CONFIG_64BIT |
331 | /* Setup PDCE_PROC entry */ | 331 | /* Setup PDCE_PROC entry */ |
332 | copy %arg0,%r3 | 332 | copy %arg0,%r3 |
333 | #else | 333 | #else |
@@ -344,7 +344,7 @@ smp_slave_stext: | |||
344 | 344 | ||
345 | .procend | 345 | .procend |
346 | #endif /* CONFIG_SMP */ | 346 | #endif /* CONFIG_SMP */ |
347 | #ifndef __LP64__ | 347 | #ifndef CONFIG_64BIT |
348 | .data | 348 | .data |
349 | 349 | ||
350 | .align 4 | 350 | .align 4 |
@@ -354,4 +354,4 @@ smp_slave_stext: | |||
354 | .size $global$,4 | 354 | .size $global$,4 |
355 | $global$: | 355 | $global$: |
356 | .word 0 | 356 | .word 0 |
357 | #endif /*!LP64*/ | 357 | #endif /*!CONFIG_64BIT*/ |