mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 16:47:42 +00:00
Kernel: Convert klog() => AK::Format in DMI
This commit is contained in:
parent
77b8865538
commit
a1f37ebcb8
1 changed files with 5 additions and 5 deletions
|
@ -44,8 +44,8 @@ AK::Singleton<DMIExpose> s_the;
|
||||||
|
|
||||||
UNMAP_AFTER_INIT void DMIExpose::set_64_bit_entry_initialization_values()
|
UNMAP_AFTER_INIT void DMIExpose::set_64_bit_entry_initialization_values()
|
||||||
{
|
{
|
||||||
klog() << "DMIExpose: SMBIOS 64bit Entry point @ " << m_entry_point;
|
dbgln("DMIExpose: SMBIOS 64bit Entry point @ {}", m_entry_point);
|
||||||
auto smbios_entry = map_typed<SMBIOS::EntryPoint64bit>(PhysicalAddress(m_entry_point), SMBIOS_SEARCH_AREA_SIZE);
|
auto smbios_entry = map_typed<SMBIOS::EntryPoint64bit>(m_entry_point, SMBIOS_SEARCH_AREA_SIZE);
|
||||||
m_structure_table = PhysicalAddress(smbios_entry.ptr()->table_ptr);
|
m_structure_table = PhysicalAddress(smbios_entry.ptr()->table_ptr);
|
||||||
m_entry_point_length = smbios_entry.ptr()->length;
|
m_entry_point_length = smbios_entry.ptr()->length;
|
||||||
m_structure_table_length = smbios_entry.ptr()->table_maximum_size;
|
m_structure_table_length = smbios_entry.ptr()->table_maximum_size;
|
||||||
|
@ -53,8 +53,8 @@ UNMAP_AFTER_INIT void DMIExpose::set_64_bit_entry_initialization_values()
|
||||||
|
|
||||||
UNMAP_AFTER_INIT void DMIExpose::set_32_bit_entry_initialization_values()
|
UNMAP_AFTER_INIT void DMIExpose::set_32_bit_entry_initialization_values()
|
||||||
{
|
{
|
||||||
klog() << "DMIExpose: SMBIOS 32bit Entry point @ " << m_entry_point;
|
dbgln("DMIExpose: SMBIOS 32bit Entry point @ {}", m_entry_point);
|
||||||
auto smbios_entry = map_typed<SMBIOS::EntryPoint32bit>(PhysicalAddress(m_entry_point), SMBIOS_SEARCH_AREA_SIZE);
|
auto smbios_entry = map_typed<SMBIOS::EntryPoint32bit>(m_entry_point, SMBIOS_SEARCH_AREA_SIZE);
|
||||||
m_structure_table = PhysicalAddress(smbios_entry.ptr()->legacy_structure.smbios_table_ptr);
|
m_structure_table = PhysicalAddress(smbios_entry.ptr()->legacy_structure.smbios_table_ptr);
|
||||||
m_entry_point_length = smbios_entry.ptr()->length;
|
m_entry_point_length = smbios_entry.ptr()->length;
|
||||||
m_structure_table_length = smbios_entry.ptr()->legacy_structure.smboios_table_length;
|
m_structure_table_length = smbios_entry.ptr()->legacy_structure.smboios_table_length;
|
||||||
|
@ -87,7 +87,7 @@ UNMAP_AFTER_INIT void DMIExpose::initialize_exposer()
|
||||||
} else {
|
} else {
|
||||||
set_32_bit_entry_initialization_values();
|
set_32_bit_entry_initialization_values();
|
||||||
}
|
}
|
||||||
klog() << "DMIExpose: Data table @ " << m_structure_table;
|
dbgln("DMIExpose: Data table @ {}", m_structure_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
OwnPtr<KBuffer> DMIExpose::entry_point() const
|
OwnPtr<KBuffer> DMIExpose::entry_point() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue