mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +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
|
@ -155,7 +155,7 @@ struct [[gnu::packed]] received_packet_header {
|
|||
u16 length;
|
||||
};
|
||||
|
||||
void NE2000NetworkAdapter::detect()
|
||||
UNMAP_AFTER_INIT void NE2000NetworkAdapter::detect()
|
||||
{
|
||||
static const auto ne2k_ids = Array<PCI::ID, 11> {
|
||||
PCI::ID { 0x10EC, 0x8029 }, // RealTek RTL-8029(AS)
|
||||
|
@ -182,7 +182,7 @@ void NE2000NetworkAdapter::detect()
|
|||
});
|
||||
}
|
||||
|
||||
NE2000NetworkAdapter::NE2000NetworkAdapter(PCI::Address address, u8 irq)
|
||||
UNMAP_AFTER_INIT NE2000NetworkAdapter::NE2000NetworkAdapter(PCI::Address address, u8 irq)
|
||||
: PCI::Device(address, irq)
|
||||
, m_io_base(PCI::get_BAR0(pci_address()) & ~3)
|
||||
{
|
||||
|
@ -203,7 +203,7 @@ NE2000NetworkAdapter::NE2000NetworkAdapter(PCI::Address address, u8 irq)
|
|||
enable_irq();
|
||||
}
|
||||
|
||||
NE2000NetworkAdapter::~NE2000NetworkAdapter()
|
||||
UNMAP_AFTER_INIT NE2000NetworkAdapter::~NE2000NetworkAdapter()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue