RISC-V: enable XIP
[linux-2.6-microblaze.git] / arch / riscv / kernel / vmlinux.lds.S
index 5667713..891742f 100644 (file)
@@ -4,8 +4,13 @@
  * Copyright (C) 2017 SiFive
  */
 
+#ifdef CONFIG_XIP_KERNEL
+#include "vmlinux-xip.lds.S"
+#else
+
 #include <asm/pgtable.h>
 #define LOAD_OFFSET KERNEL_LINK_ADDR
+
 #include <asm/vmlinux.lds.h>
 #include <asm/page.h>
 #include <asm/cache.h>
@@ -140,3 +145,4 @@ SECTIONS
 
        DISCARDS
 }
+#endif /* CONFIG_XIP_KERNEL */