Page MenuHomeFreeBSD

Prevent BSS from being cleared twice on BookE

Authored by on Aug 25 2016, 4:49 AM.



First time BSS is cleared in booke_init(), Second time it cleared in powerpc_init().
Any variable initialized between two those guys gets wiped out what is wrong. In particular
it wipes tlb1_entries initialized by tlb1_init()

Test Plan

Build and boot the kernel

Diff Detail

rS FreeBSD src repository - subversion
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline retitled this revision from to Prevent BSS from being cleared twice on BookE. updated this object. edited the test plan for this revision. (Show Details) set the repository for this revision to rS FreeBSD src repository - subversion. added a project: PowerPC.
jhibbits edited edge metadata.

Great! This was another leftover from the statically cached tlb1, where we would re initialize then reset the tlb. Since we no longer reset the tlb this zeroing is no longer needed, and is instead potentially harmful.

This revision is now accepted and ready to land.Aug 25 2016, 7:31 PM
This revision was automatically updated to reflect the committed changes.