mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 04:56:30 +00:00
在riscv输出hello world (#466)
增加了以下内容: - SBI驱动 - 把内核的rust工具链升级到2023-08-15版本 - 输出riscv的helloworld - 设置内核是PIC的
This commit is contained in:
@ -17,7 +17,7 @@ impl CFilesArch for RiscV64CFilesArch {
|
||||
}
|
||||
|
||||
fn setup_files(&self, _c: &mut cc::Build, files: &mut Vec<std::path::PathBuf>) {
|
||||
files.push(PathBuf::from("src/arch/riscv64/boot/head.S"));
|
||||
files.push(PathBuf::from("src/arch/riscv64/asm/head.S"));
|
||||
files.append(&mut FileUtils::list_all_files(
|
||||
&arch_path("asm"),
|
||||
Some("c"),
|
||||
|
@ -26,7 +26,7 @@ impl CFilesBuilder {
|
||||
c.flag("-fno-builtin")
|
||||
.flag("-nostdlib")
|
||||
.flag("-fno-stack-protector")
|
||||
.flag("-fno-pie")
|
||||
.flag("-static-pie")
|
||||
.flag("-Wno-expansion-to-defined")
|
||||
.flag("-Wno-unused-parameter")
|
||||
.flag("-O1");
|
||||
|
Reference in New Issue
Block a user