From 9cc125fb3cfdc2c8ae7153b5ae0fe705980835fb Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 6 Jan 2022 23:39:12 +0200 Subject: Allow building with clang + Release mode is sort of broken, as lto doesn't work with linker relaxation and turning the relaxation off causes issues with the jump from init to kernel (as I've currently implemented it, could probably be fixed with a manual jump from assembly, I'll add it to my TODO list) --- arch/riscv/include/sbi.h | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 arch/riscv/include/sbi.h (limited to 'arch/riscv/include/sbi.h') diff --git a/arch/riscv/include/sbi.h b/arch/riscv/include/sbi.h deleted file mode 100644 index 609849d..0000000 --- a/arch/riscv/include/sbi.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef APOS_RISCV_SBI_H - -struct sbiret { - long error; - long value; -}; - -struct sbiret sbi_ecall(int ext, int fid, - unsigned long arg0, unsigned long arg1, unsigned long arg2, - unsigned long arg3, unsigned long arg4, unsigned long arg5); - -#endif /* APOS_RISCV_SBI_H */ -- cgit v1.3