From 7269306c93cd86b71422ccf3d9f22f687f699277 Mon Sep 17 00:00:00 2001 From: gabriel Date: Tue, 30 Jan 2024 08:30:42 +0100 Subject: [PATCH] making hello-world compile for all Boards --- include/sifive/const.h | 18 ------------------ include/sifive/devices/plic.h | 2 +- include/tgc-vp/const.h | 17 ----------------- include/tgc-vp/devices/plic.h | 2 +- 4 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 include/sifive/const.h delete mode 100644 include/tgc-vp/const.h diff --git a/include/sifive/const.h b/include/sifive/const.h deleted file mode 100644 index 8dcffbb..0000000 --- a/include/sifive/const.h +++ /dev/null @@ -1,18 +0,0 @@ -// See LICENSE for license details. -/* Derived from */ - -#ifndef _SIFIVE_CONST_H -#define _SIFIVE_CONST_H - -#ifdef __ASSEMBLER__ -#define _AC(X,Y) X -#define _AT(T,X) X -#else -#define _AC(X,Y) (X##Y) -#define _AT(T,X) ((T)(X)) -#endif /* !__ASSEMBLER__*/ - -#define _BITUL(x) (_AC(1,UL) << (x)) -#define _BITULL(x) (_AC(1,ULL) << (x)) - -#endif /* _SIFIVE_CONST_H */ diff --git a/include/sifive/devices/plic.h b/include/sifive/devices/plic.h index e1ca5d6..9b5a3cf 100644 --- a/include/sifive/devices/plic.h +++ b/include/sifive/devices/plic.h @@ -3,7 +3,7 @@ #ifndef PLIC_H #define PLIC_H -#include +//#include // 32 bits per source #define PLIC_PRIORITY_OFFSET _AC(0x0000,UL) diff --git a/include/tgc-vp/const.h b/include/tgc-vp/const.h deleted file mode 100644 index 3e0a681..0000000 --- a/include/tgc-vp/const.h +++ /dev/null @@ -1,17 +0,0 @@ -/* Derived from */ - -#ifndef _SIFIVE_CONST_H -#define _SIFIVE_CONST_H - -#ifdef __ASSEMBLER__ -#define _AC(X,Y) X -#define _AT(T,X) X -#else -#define _AC(X,Y) (X##Y) -#define _AT(T,X) ((T)(X)) -#endif /* !__ASSEMBLER__*/ - -#define _BITUL(x) (_AC(1,UL) << (x)) -#define _BITULL(x) (_AC(1,ULL) << (x)) - -#endif /* _SIFIVE_CONST_H */ diff --git a/include/tgc-vp/devices/plic.h b/include/tgc-vp/devices/plic.h index 16ea689..03c4aa8 100644 --- a/include/tgc-vp/devices/plic.h +++ b/include/tgc-vp/devices/plic.h @@ -3,7 +3,7 @@ #ifndef PLIC_H #define PLIC_H -#include +//#include // 32 bits per source #define PLIC_PRIORITY_OFFSET _AC(0x0000,UL)