mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
Kernel: Share Processor class (and others) across architectures
About half of the Processor code is common across architectures, so let's share it with a templated base class. Also, other code that can be shared in some ways, like FPUState and TrapFrame functions, is adjusted here. Functions which cannot be shared trivially (without internal refactoring) are left alone for now.
This commit is contained in:
parent
0b824ab7a6
commit
398d271a46
26 changed files with 943 additions and 860 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Arch/aarch64/Processor.h>
|
||||
#include <Kernel/Arch/Processor.h>
|
||||
#include <Kernel/Arch/aarch64/Registers.h>
|
||||
|
||||
namespace Kernel::Aarch64::Asm {
|
||||
|
@ -145,12 +145,3 @@ inline void flush_data_cache(FlatPtr start, size_t size)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
inline bool are_interrupts_enabled()
|
||||
{
|
||||
return Processor::are_interrupts_enabled();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue