Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71914
b: refs/heads/master
c: 1c59357
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg authored and Kyle McMartin committed Oct 18, 2007
1 parent b2db67a commit 223ebf7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be1b3d8cb141c0705d61af2e2372d72ff16c7d04
refs/heads/master: 1c593571093ae0f259d3bd7a66988a7a8eb5c7bc
1 change: 0 additions & 1 deletion trunk/arch/parisc/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ int main(void)
DEFINE(ASM_PTE_ENTRY_SIZE, PTE_ENTRY_SIZE);
DEFINE(ASM_PFN_PTE_SHIFT, PFN_PTE_SHIFT);
DEFINE(ASM_PT_INITIAL, PT_INITIAL);
DEFINE(ASM_PAGE_SIZE, PAGE_SIZE);
DEFINE(ASM_PAGE_SIZE_DIV64, PAGE_SIZE/64);
DEFINE(ASM_PAGE_SIZE_DIV128, PAGE_SIZE/128);
BLANK();
Expand Down
11 changes: 6 additions & 5 deletions trunk/arch/parisc/kernel/syscall.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <asm/asm-offsets.h>
#include <asm/unistd.h>
#include <asm/errno.h>
#include <asm/page.h>
#include <asm/psw.h>
#include <asm/thread_info.h>
#include <asm/assembly.h>
Expand Down Expand Up @@ -38,7 +39,7 @@
* pointers.
*/

.align ASM_PAGE_SIZE
.align PAGE_SIZE
ENTRY(linux_gateway_page)

/* ADDRESS 0x00 to 0xb0 = 176 bytes / 4 bytes per insn = 44 insns */
Expand Down Expand Up @@ -597,7 +598,7 @@ cas_action:


/* Make sure nothing else is placed on this page */
.align ASM_PAGE_SIZE
.align PAGE_SIZE
END(linux_gateway_page)
ENTRY(end_linux_gateway_page)

Expand All @@ -608,7 +609,7 @@ ENTRY(end_linux_gateway_page)

.section .rodata,"a"

.align ASM_PAGE_SIZE
.align PAGE_SIZE
/* Light-weight-syscall table */
/* Start of lws table. */
ENTRY(lws_table)
Expand All @@ -617,13 +618,13 @@ ENTRY(lws_table)
END(lws_table)
/* End of lws table */

.align ASM_PAGE_SIZE
.align PAGE_SIZE
ENTRY(sys_call_table)
#include "syscall_table.S"
END(sys_call_table)

#ifdef CONFIG_64BIT
.align ASM_PAGE_SIZE
.align PAGE_SIZE
ENTRY(sys_call_table64)
#define SYSCALL_TABLE_64BIT
#include "syscall_table.S"
Expand Down
14 changes: 7 additions & 7 deletions trunk/arch/parisc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ SECTIONS
* that we can properly leave these
* as writable
*/
. = ALIGN(ASM_PAGE_SIZE);
. = ALIGN(PAGE_SIZE);
data_start = .;
. = ALIGN(16);
/* Exception table */
Expand Down Expand Up @@ -119,12 +119,12 @@ SECTIONS
/* nosave data is really only used for software suspend...it's here
* just in case we ever implement it
*/
. = ALIGN(ASM_PAGE_SIZE);
. = ALIGN(PAGE_SIZE);
__nosave_begin = .;
.data_nosave : {
*(.data.nosave)
}
. = ALIGN(ASM_PAGE_SIZE);
. = ALIGN(PAGE_SIZE);
__nosave_end = .;

/* End of data section */
Expand All @@ -133,7 +133,7 @@ SECTIONS
/* BSS */
__bss_start = .;
/* page table entries need to be PAGE_SIZE aligned */
. = ALIGN(ASM_PAGE_SIZE);
. = ALIGN(PAGE_SIZE);
.data.vmpages : {
*(.data.vm0.pmd)
*(.data.vm0.pgd)
Expand Down Expand Up @@ -229,16 +229,16 @@ SECTIONS
*(.exit.data)
}
#ifdef CONFIG_BLK_DEV_INITRD
. = ALIGN(ASM_PAGE_SIZE);
. = ALIGN(PAGE_SIZE);
.init.ramfs : {
__initramfs_start = .;
*(.init.ramfs)
__initramfs_end = .;
}
#endif

PERCPU(ASM_PAGE_SIZE)
. = ALIGN(ASM_PAGE_SIZE);
PERCPU(PAGE_SIZE)
. = ALIGN(PAGE_SIZE);
__init_end = .;
/* freed after init ends here */
_end = . ;
Expand Down
4 changes: 3 additions & 1 deletion trunk/include/asm-parisc/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#ifdef __KERNEL__

#include <linux/const.h>

#if defined(CONFIG_PARISC_PAGE_SIZE_4KB)
# define PAGE_SHIFT 12
#elif defined(CONFIG_PARISC_PAGE_SIZE_16KB)
Expand All @@ -12,7 +14,7 @@
#else
# error "unknown default kernel page size"
#endif
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))


Expand Down

0 comments on commit 223ebf7

Please sign in to comment.