Index: sys/powerpc/powerpc/machdep.c =================================================================== --- sys/powerpc/powerpc/machdep.c +++ sys/powerpc/powerpc/machdep.c @@ -284,8 +284,14 @@ #endif } } else { +/* + * On BOOKE the BSS is already cleared and some variables initialized. + * Do not wipe them out. + */ +#if !defined (BOOKE) bzero(__sbss_start, __sbss_end - __sbss_start); bzero(__bss_start, _end - __bss_start); +#endif init_static_kenv(NULL, 0); } /* Store boot environment state */