fixes towards risc-v user programs running
[akaros.git] / kern / arch / riscv / arch.h
index e8a3cb3..48578aa 100644 (file)
 #define HW_CACHE_ALIGN 64
 #define IOAPIC_BASE    KERN_LOAD_ADDR // upper 2GB reserved (see mmu_init)
 
+#ifdef __riscv64
+# define KERN64
+#endif
+
 void print_cpuinfo(void);
 void show_mapping(uintptr_t start, size_t size);
 void backtrace(void);