mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:47:46 +00:00
Kernel: Move all code into the Kernel namespace
This commit is contained in:
parent
d42f0f4661
commit
a356e48150
201 changed files with 907 additions and 111 deletions
|
@ -154,7 +154,7 @@ String ELFLoader::symbolicate(u32 address, u32* out_offset) const
|
|||
SortedSymbol* sorted_symbols = nullptr;
|
||||
#ifdef KERNEL
|
||||
if (!m_sorted_symbols_region) {
|
||||
m_sorted_symbols_region = MM.allocate_kernel_region(PAGE_ROUND_UP(m_image.symbol_count() * sizeof(SortedSymbol)), "Sorted symbols", Region::Access::Read | Region::Access::Write);
|
||||
m_sorted_symbols_region = MM.allocate_kernel_region(PAGE_ROUND_UP(m_image.symbol_count() * sizeof(SortedSymbol)), "Sorted symbols", Kernel::Region::Access::Read | Kernel::Region::Access::Write);
|
||||
sorted_symbols = (SortedSymbol*)m_sorted_symbols_region->vaddr().as_ptr();
|
||||
size_t index = 0;
|
||||
m_image.for_each_symbol([&](auto& symbol) {
|
||||
|
|
|
@ -34,7 +34,9 @@
|
|||
|
||||
#ifdef KERNEL
|
||||
# include <LibBareMetal/Memory/VirtualAddress.h>
|
||||
namespace Kernel {
|
||||
class Region;
|
||||
}
|
||||
#endif
|
||||
|
||||
class ELFLoader {
|
||||
|
@ -80,7 +82,7 @@ private:
|
|||
StringView name;
|
||||
};
|
||||
#ifdef KERNEL
|
||||
mutable OwnPtr<Region> m_sorted_symbols_region;
|
||||
mutable OwnPtr<Kernel::Region> m_sorted_symbols_region;
|
||||
#else
|
||||
mutable Vector<SortedSymbol> m_sorted_symbols;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue