[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>
This commit is contained in:
Heiko Carstens
2007-03-05 23:35:43 +01:00
committed by Martin Schwidefsky
parent 25864162c1
commit c5dd858670
4 changed files with 19 additions and 12 deletions

View File

@@ -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);