Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11431
b: refs/heads/master
c: 637a6ff
h: refs/heads/master
i:
  11429: 990047c
  11427: 7df89be
  11423: f2b5cd3
v: v3
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Sep 21, 2005
1 parent cd2b2e8 commit aadd1bc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 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: d0035c62d9145a2ce3057c8182a7ff0b4921a41c
refs/heads/master: 637a6ff6ce525d8495df944550efea0f023dd521
2 changes: 1 addition & 1 deletion trunk/arch/ppc64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,7 @@ _GLOBAL(smp_release_cpus)
*/
.section ".bss"

.align 12
.align PAGE_SHIFT

.globl empty_zero_page
empty_zero_page:
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ppc64/kernel/misc.S
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ _GLOBAL(__flush_dcache_icache)

/* Flush the dcache */
ld r7,PPC64_CACHES@toc(r2)
clrrdi r3,r3,12 /* Page align */
clrrdi r3,r3,PAGE_SHIFT /* Page align */
lwz r4,DCACHEL1LINESPERPAGE(r7) /* Get # dcache lines per page */
lwz r5,DCACHEL1LINESIZE(r7) /* Get dcache line size */
mr r6,r3
Expand Down
16 changes: 10 additions & 6 deletions trunk/arch/ppc64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <asm/page.h>
#include <asm-generic/vmlinux.lds.h>

OUTPUT_ARCH(powerpc:common64)
Expand All @@ -17,7 +18,7 @@ SECTIONS
LOCK_TEXT
KPROBES_TEXT
*(.fixup)
. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
_etext = .;
}

Expand All @@ -43,7 +44,7 @@ SECTIONS


/* will be freed after init */
. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
__init_begin = .;

.init.text : {
Expand Down Expand Up @@ -83,7 +84,7 @@ SECTIONS

SECURITY_INIT

. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
.init.ramfs : {
__initramfs_start = .;
*(.init.ramfs)
Expand All @@ -96,18 +97,21 @@ SECTIONS
__per_cpu_end = .;
}

. = ALIGN(PAGE_SIZE);
. = ALIGN(16384);
__init_end = .;
/* freed after init ends here */


/* Read/write sections */
. = ALIGN(PAGE_SIZE);
. = ALIGN(16384);
/* The initial task and kernel stack */
.data.init_task : {
*(.data.init_task)
}

. = ALIGN(PAGE_SIZE);
.data.page_aligned : {
*(.data.page_aligned)
}
Expand All @@ -129,18 +133,18 @@ SECTIONS
__toc_start = .;
*(.got)
*(.toc)
. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
_edata = .;
}


. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
.bss : {
__bss_start = .;
*(.bss)
__bss_stop = .;
}

. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
_end = . ;
}
3 changes: 2 additions & 1 deletion trunk/include/asm-ppc64/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <asm/ptrace.h>
#include <asm/cputable.h>
#include <asm/auxvec.h>
#include <asm/page.h>

/* PowerPC relocations defined by the ABIs */
#define R_PPC_NONE 0
Expand Down Expand Up @@ -146,7 +147,7 @@ typedef elf_vrreg_t elf_vrregset_t32[ELF_NVRREG32];
#define elf_check_arch(x) ((x)->e_machine == ELF_ARCH)

#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096
#define ELF_EXEC_PAGESIZE PAGE_SIZE

/* This is the location that an ET_DYN program is loaded if exec'ed. Typical
use of this is to invoke "./ld.so someprog" to test out a new version of
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-ppc64/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

/* Location of cpu0's segment table */
#define STAB0_PAGE 0x6
#define STAB0_PHYS_ADDR (STAB0_PAGE<<PAGE_SHIFT)
#define STAB0_PHYS_ADDR (STAB0_PAGE<<12)

#ifndef __ASSEMBLY__
extern char initial_stab[];
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/asm-ppc64/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ struct thread_info {

/* thread information allocation */

#define THREAD_ORDER 2
#define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
#define THREAD_SHIFT (PAGE_SHIFT + THREAD_ORDER)
#define THREAD_SHIFT 14
#define THREAD_ORDER (THREAD_SHIFT - PAGE_SHIFT)
#define THREAD_SIZE (1 << THREAD_SHIFT)
#ifdef CONFIG_DEBUG_STACK_USAGE
#define alloc_thread_info(tsk) \
({ \
Expand Down

0 comments on commit aadd1bc

Please sign in to comment.