Skip to content

Commit

Permalink
feat: move link vars to basic_info
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Jan 7, 2025
1 parent 820f114 commit 07e74d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@ repos:
- id: clang-tidy
args:
- --checks=.clang-tidy
- -p=/root/SimpleKernel/build_riscv64/compiler_commands.json
- -p=/root/SimpleKernel/build_x86_64/compiler_commands.json
- -extra-arg=--std=c++2b
- --fix
- --header-filter=^(/root/SimpleKernel/build_riscv64/src/).*
# - --exclude-header-filter=^(?/root/SimpleKernel/build_riscv64/src/arch/x86_64|/root/SimpleKernel/build_riscv64/src/arch/aarch64).*
- --header-filter=^(/root/SimpleKernel/build_x86_64/src/).*
# - --exclude-header-filter=^(?/root/SimpleKernel/build_x86_64/src/arch/x86_64|/root/SimpleKernel/build_x86_64/src/arch/aarch64).*
# - id: clang-tidy
# args:
# - --checks=.clang-tidy
# - -p=/root/SimpleKernel/build_riscv64/build_x86_64/compiler_commands.json
# - -p=/root/SimpleKernel/build_x86_64/build_x86_64/compiler_commands.json
# - -extra-arg=--std=c++2b
# - --fix
# - --header-filter=^(?/root/SimpleKernel/build_riscv64/src/).*
# - --exclude-header-filter=^(?/root/SimpleKernel/build_riscv64/src/arch/riscv_64|/root/SimpleKernel/build_riscv64/src/arch/aarch64).*
# - --header-filter=^(?/root/SimpleKernel/build_x86_64/src/).*
# - --exclude-header-filter=^(?/root/SimpleKernel/build_x86_64/src/arch/riscv_64|/root/SimpleKernel/build_x86_64/src/arch/aarch64).*
# - id: clang-tidy
# args:
# - --checks=.clang-tidy
# - -p=/root/SimpleKernel/build_riscv64/build_aarch64/compiler_commands.json
# - -p=/root/SimpleKernel/build_x86_64/build_aarch64/compiler_commands.json
# - -extra-arg=--std=c++2b
# - --fix
# - --header-filter=^(?/root/SimpleKernel/build_riscv64/src/).*
# - --exclude-header-filter=^(?/root/SimpleKernel/build_riscv64/src/arch/riscv64|/root/SimpleKernel/build_riscv64/src/arch/x86_64).*
# - --header-filter=^(?/root/SimpleKernel/build_x86_64/src/).*
# - --exclude-header-filter=^(?/root/SimpleKernel/build_x86_64/src/arch/riscv64|/root/SimpleKernel/build_x86_64/src/arch/x86_64).*

- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
Expand Down
12 changes: 6 additions & 6 deletions src/kernel/arch/x86_64/arch_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@
namespace {
cpu_io::Serial kSerial(cpu_io::kCom1);
extern "C" void _putchar(char character) { kSerial.Write(character); }
// 引用链接脚本中的变量
/// @see http://wiki.osdev.org/Using_Linker_Script_Values
/// 内核开始
extern "C" void *__executable_start[]; // NOLINT
/// 内核结束
extern "C" void *end[];
} // namespace

BasicInfo::BasicInfo(uint32_t argc, const uint8_t *argv) {
Expand Down Expand Up @@ -77,3 +71,9 @@ auto ArchInit(uint32_t argc, const uint8_t *argv) -> uint32_t {

return 0;
}

auto ArchInitSMP(uint32_t argc, const uint8_t *argv) -> uint32_t {
(void)argc;
(void)argv;
return 0;
}

0 comments on commit 07e74d1

Please sign in to comment.