diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-25 19:21:22 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-25 19:21:51 +0200 |
| commit | f6b400b80efc64b918c03352e93ec9de4e2369a1 (patch) | |
| tree | 251a82ee3653568ef33ffdc48c83b7f54e370bc1 /dev/LibCompiler/src/AssemblerARM64.cc | |
| parent | 20042235d1f53ae428aa154e64afdbae5d8d91ad (diff) | |
dev, general: codebase needed refactors and tweaks, for NeKernel's 0.0.2 release.
details:
- things needed to be cleared off, short sighted decisions fixed.
- the inconsistency of certain files have been fixed too.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/AssemblerARM64.cc')
| -rw-r--r-- | dev/LibCompiler/src/AssemblerARM64.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/dev/LibCompiler/src/AssemblerARM64.cc b/dev/LibCompiler/src/AssemblerARM64.cc index d984845..98f12b8 100644 --- a/dev/LibCompiler/src/AssemblerARM64.cc +++ b/dev/LibCompiler/src/AssemblerARM64.cc @@ -18,11 +18,12 @@ #define __ASM_NEED_ARM64__ 1 #include <LibCompiler/AE.h> -#include <LibCompiler/Backend/arm64.h> +#include <LibCompiler/Backend/Aarch64.h> #include <LibCompiler/ErrorID.h> #include <LibCompiler/PEF.h> #include <LibCompiler/Parser.h> #include <LibCompiler/Version.h> +#include <LibCompiler/Detail/AsmUtils.h> #include <algorithm> #include <filesystem> #include <fstream> @@ -43,21 +44,15 @@ #define kStdOut (std::cout << kWhite) #define kStdErr (std::cout << kRed) -constexpr auto cPowerIPAlignment = 0x4U; +constexpr auto cPowerIPAlignment = 0x1U; static CharType kOutputArch = LibCompiler::kPefArchARM64; -static Boolean kOutputAsBinary = false; - -static UInt32 kErrorLimit = 10; -static UInt32 kAcceptableErrors = 0; static std::size_t kCounter = 1UL; static std::uintptr_t kOrigin = kPefBaseOrigin; static std::vector<std::pair<std::string, std::uintptr_t>> kOriginLabel; -static bool kVerbose = false; - static std::vector<uint8_t> kBytes; static LibCompiler::AERecordHeader kCurrentRecord{ @@ -72,9 +67,6 @@ static const std::string kRelocSymbol = ":RuntimeSymbol:"; // \brief forward decl. static bool asm_read_attributes(std::string& line); -/// Do not move it on top! it uses the assembler detail namespace! -#include <Detail/AsmUtils.h> - ///////////////////////////////////////////////////////////////////////////////////////// /// @brief POWER assembler entrypoint, the program/module starts here. |
