riscv: move STRINGIFY et al to util.h
This commit is contained in:
parent
d76511c7b4
commit
00cae0baed
2 changed files with 4 additions and 4 deletions
|
|
@ -19,6 +19,8 @@
|
|||
#ifndef __ARCH_MACHINE_HARDWARE_H
|
||||
#define __ARCH_MACHINE_HARDWARE_H
|
||||
|
||||
#include <util.h>
|
||||
|
||||
/* RVTODO: check if risc-v spec actually declares the l1 cache line size */
|
||||
#define L1_CACHE_LINE_SIZE 64
|
||||
|
||||
|
|
@ -130,10 +132,6 @@ RISCVpageAtPTLevel(vm_page_size_t pagesize)
|
|||
#define FSTORE fsd
|
||||
#endif /* CONFIG_HAVE_FPU */
|
||||
|
||||
/* RVTODO: this is a general utility macro and shouldn't be here */
|
||||
#define _STRINGIFY(a) #a
|
||||
#define STRINGIFY(a) _STRINGIFY(a)
|
||||
|
||||
#define LOAD_S STRINGIFY(LOAD)
|
||||
#define STORE_S STRINGIFY(STORE)
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@
|
|||
#define MIN(a,b) (((a)<(b))?(a):(b))
|
||||
#define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
#define PASTE(a, b) a ## b
|
||||
#define _STRINGIFY(a) #a
|
||||
#define STRINGIFY(a) _STRINGIFY(a)
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue