mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Kernel: Slap UNMAP_AFTER_INIT on a bunch more functions
We're now able to unmap 100 KiB of kernel text after init. :^)
This commit is contained in:
parent
e920c74cae
commit
2b2828ae52
36 changed files with 105 additions and 105 deletions
|
@ -60,7 +60,7 @@ namespace Kernel {
|
|||
|
||||
static AK::Singleton<BXVGADevice> s_the;
|
||||
|
||||
void BXVGADevice::initialize()
|
||||
UNMAP_AFTER_INIT void BXVGADevice::initialize()
|
||||
{
|
||||
s_the.ensure_instance();
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ BXVGADevice& BXVGADevice::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
BXVGADevice::BXVGADevice()
|
||||
UNMAP_AFTER_INIT BXVGADevice::BXVGADevice()
|
||||
: BlockDevice(29, 0)
|
||||
|
||||
{
|
||||
|
@ -157,7 +157,7 @@ void BXVGADevice::set_y_offset(size_t y_offset)
|
|||
set_register(VBE_DISPI_INDEX_Y_OFFSET, (u16)y_offset);
|
||||
}
|
||||
|
||||
u32 BXVGADevice::find_framebuffer_address()
|
||||
UNMAP_AFTER_INIT u32 BXVGADevice::find_framebuffer_address()
|
||||
{
|
||||
// NOTE: The QEMU card has the same PCI ID as the Bochs one.
|
||||
static const PCI::ID bochs_vga_id = { 0x1234, 0x1111 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue