Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346813
b: refs/heads/master
c: 61e2390
h: refs/heads/master
i:
  346811: 37d101e
v: v3
  • Loading branch information
Michael Neuling authored and Benjamin Herrenschmidt committed Nov 15, 2012
1 parent fb6ca0d commit feb211e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 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: faab4dd2d281d42cb46b16e36f769be59c0a7338
refs/heads/master: 61e2390ede3cea186cc01f5f3d0c9eb570c42c40
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/include/asm/exception-64s.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
* word.
*/
#define LOAD_HANDLER(reg, label) \
addi reg,reg,(label)-_stext; /* virt addr of handler ... */
/* Handlers must be within 64K of kbase, which must be 64k aligned */ \
ori reg,reg,(label)-_stext; /* virt addr of handler ... */

/* Exception register prefixes */
#define EXC_HV H
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/exceptions-64s.S
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,8 @@ __end_interrupts:
* Code from here down to __end_handlers is invoked from the
* exception prologs above. Because the prologs assemble the
* addresses of these handlers using the LOAD_HANDLER macro,
* which uses an addi instruction, these handlers must be in
* the first 32k of the kernel image.
* which uses an ori instruction, these handlers must be in
* the first 64k of the kernel image.
*/

/*** Common interrupt handlers ***/
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,11 @@ void __init setup_arch(char **cmdline_p)

kvm_linear_init();

/* Interrupt code needs to be 64K-aligned */
if ((unsigned long)_stext & 0xffff)
panic("Kernelbase not 64K-aligned (0x%lx)!\n",
(unsigned long)_stext);

ppc64_boot_msg(0x15, "Setup Done");
}

Expand Down

0 comments on commit feb211e

Please sign in to comment.