chore: remove unused types

main
Sean McBride 5 years ago
parent 2cb302a27e
commit d14af73c30

@ -19,10 +19,8 @@ CFLAGS += -D_GNU_SOURCE
#CFLAGS += -DUSE_HTTP_UVIO #-DUSE_HTTP_SYNC #CFLAGS += -DUSE_HTTP_UVIO #-DUSE_HTTP_SYNC
#CFLAGS += -DUSE_SYSCALL #CFLAGS += -DUSE_SYSCALL
#CFLAGS += -DPREEMPT_DISABLE #CFLAGS += -DPREEMPT_DISABLE
CACHE_LINESIZE := $(shell getconf LEVEL1_DCACHE_LINESIZE)
NCORES_CONF := $(shell getconf _NPROCESSORS_CONF) NCORES_CONF := $(shell getconf _NPROCESSORS_CONF)
#todo:cross-compile #todo:cross-compile
CFLAGS += -DCACHELINE_SIZE=${CACHE_LINESIZE}
CFLAGS += -DNCORES=${NCORES_CONF} CFLAGS += -DNCORES=${NCORES_CONF}
#CFLAGS += -DNCORES=4 #CFLAGS += -DNCORES=4
CFLAGS += -DPAGE_SIZE=$(shell getconf PAGESIZE) CFLAGS += -DPAGE_SIZE=$(shell getconf PAGESIZE)

@ -23,15 +23,10 @@
#define INLINE __attribute__((always_inline)) #define INLINE __attribute__((always_inline))
#define WEAK __attribute__((weak)) #define WEAK __attribute__((weak))
#ifndef CACHELINE_SIZE
#define CACHELINE_SIZE 32
#endif
#ifndef PAGE_SIZE #ifndef PAGE_SIZE
#define PAGE_SIZE (1 << 12) #define PAGE_SIZE (1 << 12)
#endif #endif
#define CACHE_ALIGNED __attribute__((aligned(CACHELINE_SIZE)))
#define PAGE_ALIGNED __attribute__((aligned(PAGE_SIZE))) #define PAGE_ALIGNED __attribute__((aligned(PAGE_SIZE)))
/* For this family of macros, do NOT pass zero as the pow2 */ /* For this family of macros, do NOT pass zero as the pow2 */
@ -90,15 +85,6 @@ typedef void (*mod_mem_fn_t)(void);
typedef void (*mod_tbl_fn_t)(void); typedef void (*mod_tbl_fn_t)(void);
typedef void (*mod_libc_fn_t)(i32, i32); typedef void (*mod_libc_fn_t)(i32, i32);
typedef enum
{
MOD_ARG_MODPATH = 0,
MOD_ARG_MODPORT,
MOD_ARG_MODNAME,
MOD_ARG_MODNARGS,
MOD_ARG_MAX,
} mod_argindex_t;
/** /**
* debuglog is a macro that behaves based on the macros DEBUG and LOG_TO_FILE * debuglog is a macro that behaves based on the macros DEBUG and LOG_TO_FILE
* If DEBUG is not set, debuglog does nothing * If DEBUG is not set, debuglog does nothing

Loading…
Cancel
Save