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)