mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +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:
parent
781f216676
commit
a1b63bb6d4
22 changed files with 54 additions and 83 deletions
|
@ -12,11 +12,6 @@
|
|||
|
||||
static WSMessageLoop* s_the;
|
||||
|
||||
void WSMessageLoop::initialize()
|
||||
{
|
||||
s_the = nullptr;
|
||||
}
|
||||
|
||||
WSMessageLoop::WSMessageLoop()
|
||||
{
|
||||
if (!s_the)
|
||||
|
|
|
@ -19,8 +19,6 @@ public:
|
|||
|
||||
static WSMessageLoop& the();
|
||||
|
||||
static void initialize();
|
||||
|
||||
bool running() const { return m_running; }
|
||||
Process& server_process() { return *m_server_process; }
|
||||
|
||||
|
|
|
@ -7,11 +7,6 @@
|
|||
|
||||
static WSScreen* s_the;
|
||||
|
||||
void WSScreen::initialize()
|
||||
{
|
||||
s_the = nullptr;
|
||||
}
|
||||
|
||||
WSScreen& WSScreen::the()
|
||||
{
|
||||
ASSERT(s_the);
|
||||
|
|
|
@ -21,8 +21,6 @@ public:
|
|||
Size size() const { return { width(), height() }; }
|
||||
Rect rect() const { return { 0, 0, width(), height() }; }
|
||||
|
||||
static void initialize();
|
||||
|
||||
Point cursor_location() const { return m_cursor_location; }
|
||||
bool left_mouse_button_pressed() const { return m_left_mouse_button_pressed; }
|
||||
bool right_mouse_button_pressed() const { return m_right_mouse_button_pressed; }
|
||||
|
|
|
@ -75,11 +75,6 @@ WSWindowManager& WSWindowManager::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
void WSWindowManager::initialize()
|
||||
{
|
||||
s_the = nullptr;
|
||||
}
|
||||
|
||||
static const char* cursor_bitmap_inner_ascii = {
|
||||
" # "
|
||||
" ## "
|
||||
|
|
|
@ -29,8 +29,6 @@ public:
|
|||
|
||||
void move_to_front(WSWindow&);
|
||||
|
||||
static void initialize();
|
||||
|
||||
void draw_cursor();
|
||||
|
||||
void invalidate(const WSWindow&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue