Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98963
b: refs/heads/master
c: 761cdf6
h: refs/heads/master
i:
  98961: afabbb6
  98959: a8bfc1e
v: v3
  • Loading branch information
Heiko Carstens committed Jul 14, 2008
1 parent 44638e0 commit 6e47b18
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63506c41986c4af9d4fd6f3490e98e335f3dc8f5
refs/heads/master: 761cdf6aacdb76f819050f4938cdab1f4cdcb945
18 changes: 18 additions & 0 deletions trunk/arch/s390/kernel/early.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,23 @@ static __init void detect_machine_facilities(void)
#endif
}

static __init void rescue_initrd(void)
{
#ifdef CONFIG_BLK_DEV_INITRD
/*
* Move the initrd right behind the bss section in case it starts
* within the bss section. So we don't overwrite it when the bss
* section gets cleared.
*/
if (!INITRD_START || !INITRD_SIZE)
return;
if (INITRD_START >= (unsigned long) __bss_stop)
return;
memmove(__bss_stop, (void *) INITRD_START, INITRD_SIZE);
INITRD_START = (unsigned long) __bss_stop;
#endif
}

/*
* Save ipl parameters, clear bss memory, initialize storage keys
* and create a kernel NSS at startup if the SAVESYS= parm is defined
Expand All @@ -389,6 +406,7 @@ void __init startup_init(void)
unsigned long long memsize;

ipl_save_parameters();
rescue_initrd();
clear_bss_section();
init_kernel_storage_key();
lockdep_init();
Expand Down

0 comments on commit 6e47b18

Please sign in to comment.