Skip to content

Commit

Permalink
fix: aarch64 compile
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Aug 7, 2024
1 parent 6d6a930 commit eb45735
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/boot/boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "project_config.h"

// efi 使用的全局变量
#if defined(__x86_64__)
#if defined(__x86_64__) || defined(__aarch64__)
uintptr_t ImageBase = 0;
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/kernel/arch/aarch64/include/cpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ReadOnlyRegBase {
if constexpr (std::is_same<RegInfo, reginfo::X29Info>::value) {
__asm__ volatile("mov %0, x29" : "=r"(value) : :);
} else {
Err("No Type\n");
log::Err("No Type\n");
throw;
}
return value;
Expand Down Expand Up @@ -120,7 +120,7 @@ class WriteOnlyRegBase {
if constexpr (std::is_same<RegInfo, reginfo::X29Info>::value) {
__asm__ volatile("mv fp, %0" : : "r"(value) :);
} else {
Err("No Type\n");
log::Err("No Type\n");
throw;
}
}
Expand Down

0 comments on commit eb45735

Please sign in to comment.