diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-10-18 03:04:34 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@shortfin.cabal.ca> | 2007-10-18 03:59:15 -0400 |
commit | 1c593571093ae0f259d3bd7a66988a7a8eb5c7bc (patch) | |
tree | 0ce48386ab6e2752145dba8fa81bc5440eda0118 /arch/parisc/kernel | |
parent | be1b3d8cb141c0705d61af2e2372d72ff16c7d04 (diff) |
[PARISC] Kill off ASM_PAGE_SIZE use
We have the macro _AC() generally available now
so the calculation of PAGE_SIZE can be made
assembler compatible.
Introduce use of _AC() and kill all users of
ASM_PAGE_SIZE.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/asm-offsets.c | 1 | ||||
-rw-r--r-- | arch/parisc/kernel/syscall.S | 11 | ||||
-rw-r--r-- | arch/parisc/kernel/vmlinux.lds.S | 14 |
3 files changed, 13 insertions, 13 deletions
diff --git a/arch/parisc/kernel/asm-offsets.c b/arch/parisc/kernel/asm-offsets.c index d3b7917a87cb..8c2bcdbd494a 100644 --- a/arch/parisc/kernel/asm-offsets.c +++ b/arch/parisc/kernel/asm-offsets.c | |||
@@ -290,7 +290,6 @@ int main(void) | |||
290 | DEFINE(ASM_PTE_ENTRY_SIZE, PTE_ENTRY_SIZE); | 290 | DEFINE(ASM_PTE_ENTRY_SIZE, PTE_ENTRY_SIZE); |
291 | DEFINE(ASM_PFN_PTE_SHIFT, PFN_PTE_SHIFT); | 291 | DEFINE(ASM_PFN_PTE_SHIFT, PFN_PTE_SHIFT); |
292 | DEFINE(ASM_PT_INITIAL, PT_INITIAL); | 292 | DEFINE(ASM_PT_INITIAL, PT_INITIAL); |
293 | DEFINE(ASM_PAGE_SIZE, PAGE_SIZE); | ||
294 | DEFINE(ASM_PAGE_SIZE_DIV64, PAGE_SIZE/64); | 293 | DEFINE(ASM_PAGE_SIZE_DIV64, PAGE_SIZE/64); |
295 | DEFINE(ASM_PAGE_SIZE_DIV128, PAGE_SIZE/128); | 294 | DEFINE(ASM_PAGE_SIZE_DIV128, PAGE_SIZE/128); |
296 | BLANK(); | 295 | BLANK(); |
diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index 56f6231cb863..06cde9e700e9 100644 --- a/arch/parisc/kernel/syscall.S +++ b/arch/parisc/kernel/syscall.S | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <asm/asm-offsets.h> | 10 | #include <asm/asm-offsets.h> |
11 | #include <asm/unistd.h> | 11 | #include <asm/unistd.h> |
12 | #include <asm/errno.h> | 12 | #include <asm/errno.h> |
13 | #include <asm/page.h> | ||
13 | #include <asm/psw.h> | 14 | #include <asm/psw.h> |
14 | #include <asm/thread_info.h> | 15 | #include <asm/thread_info.h> |
15 | #include <asm/assembly.h> | 16 | #include <asm/assembly.h> |
@@ -38,7 +39,7 @@ | |||
38 | * pointers. | 39 | * pointers. |
39 | */ | 40 | */ |
40 | 41 | ||
41 | .align ASM_PAGE_SIZE | 42 | .align PAGE_SIZE |
42 | ENTRY(linux_gateway_page) | 43 | ENTRY(linux_gateway_page) |
43 | 44 | ||
44 | /* ADDRESS 0x00 to 0xb0 = 176 bytes / 4 bytes per insn = 44 insns */ | 45 | /* ADDRESS 0x00 to 0xb0 = 176 bytes / 4 bytes per insn = 44 insns */ |
@@ -597,7 +598,7 @@ cas_action: | |||
597 | 598 | ||
598 | 599 | ||
599 | /* Make sure nothing else is placed on this page */ | 600 | /* Make sure nothing else is placed on this page */ |
600 | .align ASM_PAGE_SIZE | 601 | .align PAGE_SIZE |
601 | END(linux_gateway_page) | 602 | END(linux_gateway_page) |
602 | ENTRY(end_linux_gateway_page) | 603 | ENTRY(end_linux_gateway_page) |
603 | 604 | ||
@@ -608,7 +609,7 @@ ENTRY(end_linux_gateway_page) | |||
608 | 609 | ||
609 | .section .rodata,"a" | 610 | .section .rodata,"a" |
610 | 611 | ||
611 | .align ASM_PAGE_SIZE | 612 | .align PAGE_SIZE |
612 | /* Light-weight-syscall table */ | 613 | /* Light-weight-syscall table */ |
613 | /* Start of lws table. */ | 614 | /* Start of lws table. */ |
614 | ENTRY(lws_table) | 615 | ENTRY(lws_table) |
@@ -617,13 +618,13 @@ ENTRY(lws_table) | |||
617 | END(lws_table) | 618 | END(lws_table) |
618 | /* End of lws table */ | 619 | /* End of lws table */ |
619 | 620 | ||
620 | .align ASM_PAGE_SIZE | 621 | .align PAGE_SIZE |
621 | ENTRY(sys_call_table) | 622 | ENTRY(sys_call_table) |
622 | #include "syscall_table.S" | 623 | #include "syscall_table.S" |
623 | END(sys_call_table) | 624 | END(sys_call_table) |
624 | 625 | ||
625 | #ifdef CONFIG_64BIT | 626 | #ifdef CONFIG_64BIT |
626 | .align ASM_PAGE_SIZE | 627 | .align PAGE_SIZE |
627 | ENTRY(sys_call_table64) | 628 | ENTRY(sys_call_table64) |
628 | #define SYSCALL_TABLE_64BIT | 629 | #define SYSCALL_TABLE_64BIT |
629 | #include "syscall_table.S" | 630 | #include "syscall_table.S" |
diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index d6951bb5a9c9..d6dbcbcdcc2e 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S | |||
@@ -73,7 +73,7 @@ SECTIONS | |||
73 | * that we can properly leave these | 73 | * that we can properly leave these |
74 | * as writable | 74 | * as writable |
75 | */ | 75 | */ |
76 | . = ALIGN(ASM_PAGE_SIZE); | 76 | . = ALIGN(PAGE_SIZE); |
77 | data_start = .; | 77 | data_start = .; |
78 | . = ALIGN(16); | 78 | . = ALIGN(16); |
79 | /* Exception table */ | 79 | /* Exception table */ |
@@ -119,12 +119,12 @@ SECTIONS | |||
119 | /* nosave data is really only used for software suspend...it's here | 119 | /* nosave data is really only used for software suspend...it's here |
120 | * just in case we ever implement it | 120 | * just in case we ever implement it |
121 | */ | 121 | */ |
122 | . = ALIGN(ASM_PAGE_SIZE); | 122 | . = ALIGN(PAGE_SIZE); |
123 | __nosave_begin = .; | 123 | __nosave_begin = .; |
124 | .data_nosave : { | 124 | .data_nosave : { |
125 | *(.data.nosave) | 125 | *(.data.nosave) |
126 | } | 126 | } |
127 | . = ALIGN(ASM_PAGE_SIZE); | 127 | . = ALIGN(PAGE_SIZE); |
128 | __nosave_end = .; | 128 | __nosave_end = .; |
129 | 129 | ||
130 | /* End of data section */ | 130 | /* End of data section */ |
@@ -133,7 +133,7 @@ SECTIONS | |||
133 | /* BSS */ | 133 | /* BSS */ |
134 | __bss_start = .; | 134 | __bss_start = .; |
135 | /* page table entries need to be PAGE_SIZE aligned */ | 135 | /* page table entries need to be PAGE_SIZE aligned */ |
136 | . = ALIGN(ASM_PAGE_SIZE); | 136 | . = ALIGN(PAGE_SIZE); |
137 | .data.vmpages : { | 137 | .data.vmpages : { |
138 | *(.data.vm0.pmd) | 138 | *(.data.vm0.pmd) |
139 | *(.data.vm0.pgd) | 139 | *(.data.vm0.pgd) |
@@ -229,7 +229,7 @@ SECTIONS | |||
229 | *(.exit.data) | 229 | *(.exit.data) |
230 | } | 230 | } |
231 | #ifdef CONFIG_BLK_DEV_INITRD | 231 | #ifdef CONFIG_BLK_DEV_INITRD |
232 | . = ALIGN(ASM_PAGE_SIZE); | 232 | . = ALIGN(PAGE_SIZE); |
233 | .init.ramfs : { | 233 | .init.ramfs : { |
234 | __initramfs_start = .; | 234 | __initramfs_start = .; |
235 | *(.init.ramfs) | 235 | *(.init.ramfs) |
@@ -237,8 +237,8 @@ SECTIONS | |||
237 | } | 237 | } |
238 | #endif | 238 | #endif |
239 | 239 | ||
240 | PERCPU(ASM_PAGE_SIZE) | 240 | PERCPU(PAGE_SIZE) |
241 | . = ALIGN(ASM_PAGE_SIZE); | 241 | . = ALIGN(PAGE_SIZE); |
242 | __init_end = .; | 242 | __init_end = .; |
243 | /* freed after init ends here */ | 243 | /* freed after init ends here */ |
244 | _end = . ; | 244 | _end = . ; |