aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/ipl.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2007-03-05 23:35:43 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-03-05 23:35:43 +0100
commitc5dd8586707800cd7bbdefcd675ad7d3c9afcd57 (patch)
treee80b86321c3e7e2c478ad8d7850d8b3c98be7850 /arch/s390/kernel/ipl.c
parent25864162c15e61b494aa619974a4d521270362f7 (diff)
downloadkernel_samsung_smdk4412-c5dd8586707800cd7bbdefcd675ad7d3c9afcd57.zip
kernel_samsung_smdk4412-c5dd8586707800cd7bbdefcd675ad7d3c9afcd57.tar.gz
kernel_samsung_smdk4412-c5dd8586707800cd7bbdefcd675ad7d3c9afcd57.tar.bz2
[S390] reipl: move dump_prefix_page out of text section.
Reipl doesn't work on older machines were s390_reset_machine() gets called. The reason is that the text section is read-only but the variable dump_prefix_page is there. Since s390_reset_machine() writes to it we get a protection exception. Therefore move dump_prefix_page to the bss section. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/ipl.c')
-rw-r--r--arch/s390/kernel/ipl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
index 5a863a3..d125a4e 100644
--- a/arch/s390/kernel/ipl.c
+++ b/arch/s390/kernel/ipl.c
@@ -1066,7 +1066,7 @@ static void do_reset_calls(void)
reset->fn();
}
-extern __u32 dump_prefix_page;
+u32 dump_prefix_page;
void s390_reset_system(void)
{
@@ -1078,7 +1078,7 @@ void s390_reset_system(void)
lc->panic_stack = S390_lowcore.panic_stack;
/* Save prefix page address for dump case */
- dump_prefix_page = (unsigned long) lc;
+ dump_prefix_page = (u32)(unsigned long) lc;
/* Disable prefixing */
set_prefix(0);