mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
Kernel: Move architecture dependent includes to the top in Processor.h
With the declaration order dependency resolved in the last two commits we can now do this, which looks a lot nicer.
This commit is contained in:
parent
3f434506f5
commit
7a206868f8
1 changed files with 8 additions and 11 deletions
|
@ -10,6 +10,14 @@
|
||||||
#include <AK/Function.h>
|
#include <AK/Function.h>
|
||||||
#include <Kernel/Arch/DeferredCallEntry.h>
|
#include <Kernel/Arch/DeferredCallEntry.h>
|
||||||
|
|
||||||
|
#if ARCH(X86_64) || ARCH(I386)
|
||||||
|
# include <Kernel/Arch/x86/Processor.h>
|
||||||
|
#elif ARCH(AARCH64)
|
||||||
|
# include <Kernel/Arch/aarch64/Processor.h>
|
||||||
|
#else
|
||||||
|
# error "Unknown architecture"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
namespace Memory {
|
namespace Memory {
|
||||||
|
@ -57,17 +65,6 @@ struct ProcessorMessageEntry {
|
||||||
ProcessorMessage* msg;
|
ProcessorMessage* msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#if ARCH(X86_64) || ARCH(I386)
|
|
||||||
# include <Kernel/Arch/x86/Processor.h>
|
|
||||||
#elif ARCH(AARCH64)
|
|
||||||
# include <Kernel/Arch/aarch64/Processor.h>
|
|
||||||
#else
|
|
||||||
# error "Unknown architecture"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Kernel {
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class ProcessorSpecific {
|
class ProcessorSpecific {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue