Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178178438
D13948.1796206584.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
941 B
Referenced Files
None
Subscribers
None
D13948.1796206584.diff
View Options
Index: head/sys/powerpc/powerpc/machdep.c
===================================================================
--- head/sys/powerpc/powerpc/machdep.c
+++ head/sys/powerpc/powerpc/machdep.c
@@ -260,6 +260,15 @@
if (mdp_cookie != 0xfb5d104d)
mdp = NULL;
+#if !defined(BOOKE)
+ /*
+ * On BOOKE the BSS is already cleared and some variables
+ * initialized. Do not wipe them out.
+ */
+ bzero(__sbss_start, __sbss_end - __sbss_start);
+ bzero(__bss_start, _end - __bss_start);
+#endif
+
#ifdef AIM
/*
* If running from an FDT, make sure we are in real mode to avoid
@@ -293,14 +302,6 @@
#endif
}
} else {
-#if !defined(BOOKE)
- /*
- * On BOOKE the BSS is already cleared and some variables
- * initialized. Do not wipe them out.
- */
- bzero(__sbss_start, __sbss_end - __sbss_start);
- bzero(__bss_start, _end - __bss_start);
-#endif
init_static_kenv(init_kenv, sizeof(init_kenv));
ofw_bootargs = true;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 2, 10:16 AM (16 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42140540
Default Alt Text
D13948.1796206584.diff (941 B)
Attached To
Mode
D13948: PPC: machdep, zero BSS always but BookE
Attached
Detach File
Event Timeline