ref: update formatting

This commit is contained in:
Katharina 2026-07-02 19:38:45 +02:00
parent 7d0155d8ce
commit ee097d6cdf
16 changed files with 419 additions and 420 deletions

View file

@ -7,7 +7,7 @@ struct KernelSection {
const char* name;
paddr_t phys_start() const { return paddr_t{vma_start >= high_base ? vma_start - high_base : vma_start}; }
paddr_t phys_end() const { return paddr_t{vma_end >= high_base ? vma_end - high_base : vma_end}; }
paddr_t phys_end() const { return paddr_t{vma_end >= high_base ? vma_end - high_base : vma_end}; }
};
extern KernelSection __reserved_ranges_start__[], __reserved_ranges_end__[];
@ -21,8 +21,7 @@ void for_each_reserved_section(Fn&& fn) {
inline bool is_in_reserved_section(paddr_t ptr, size_t size = 1) {
bool res = false;
for_each_reserved_section([&](const KernelSection& section) {
if (ptr.address < section.phys_end().address &&
section.phys_start().address < ptr.address + size) {
if (ptr.address < section.phys_end().address && section.phys_start().address < ptr.address + size) {
res = true;
}
});