1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:14:58 +00:00

Bootloader: Locate the kernel's data segment and clear it.

This was a constant source of stupid bugs and I kept postponing it because
I wasn't in the mood to write assembly code. Until now! :^)
This commit is contained in:
Andreas Kling 2019-02-06 16:02:10 +01:00
parent 781f216676
commit a1b63bb6d4
22 changed files with 54 additions and 83 deletions

View file

@ -21,15 +21,6 @@ namespace AK {
static StringImpl* s_the_empty_stringimpl = nullptr;
void StringImpl::initialize_globals()
{
s_the_empty_stringimpl = nullptr;
#ifdef DEBUG_STRINGIMPL
g_stringimpl_count = 0;
g_all_live_stringimpls = new HashTable<StringImpl*>;
#endif
}
StringImpl& StringImpl::the_empty_stringimpl()
{
if (!s_the_empty_stringimpl)