mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +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 <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 Memory {
|
||||
|
@ -57,17 +65,6 @@ struct ProcessorMessageEntry {
|
|||
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>
|
||||
class ProcessorSpecific {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue