VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Yoshinori Sato <ysato@users.sourceforge.jp> 2007-05-06 14:50:35 -0700 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2007-05-07 12:12:58 -0700 commit: c728d60455e8e8722ee08312a75f38dd7a866b5e parent: aeecf3142d82414d511135cc85f86caddfb58338
Commit Summary:
h8300 generic irq
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/arch/h8300/mm/kmap.c b/arch/h8300/mm/kmap.c
index 26ab17286a53..5c7af09ae8d1 100644
--- a/arch/h8300/mm/kmap.c
+++ b/arch/h8300/mm/kmap.c
@@ -24,12 +24,14 @@
 
 #undef DEBUG
 
+#define VIRT_OFFSET (0x01000000)
+
 /*
  * Map some physical address range into the kernel address space.
  */
 void *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag)
 {
-	return (void *)physaddr;
+	return (void *)(physaddr + VIRT_OFFSET);
 }
 
 /*