shithub: riscv

Download patch

ref: fdd3e1808fc2ec0f6a2d2c5dd8cec914a0b20476
parent: 32183b1abf7a670e11c59595fda4cd64dad1008b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jul 10 07:42:03 EDT 2022

imx8: cleanup mem.h

--- a/sys/src/9/imx8/mem.h
+++ b/sys/src/9/imx8/mem.h
@@ -46,7 +46,6 @@
 #define VDRAM		(0xFFFFFFFFC0000000ULL)	/* 0x40000000 - 0x80000000 */
 #define	KTZERO		(VDRAM + 0x100000)	/* 0x40100000 - kernel text start */
 
-#define	ARMLOCAL	(0xFFFFFFFFB1000000ULL)	/* 0x31000000 */
 #define	VIRTIO		(0xFFFFFFFFB0000000ULL)	/* 0x30000000 */
 
 #define	KZERO		(0xFFFFFFFF80000000ULL)	/* 0x00000000 - kernel address space */
@@ -65,7 +64,7 @@
 #define MACHADDR(n)	(KTZERO-((n)+1)*MACHSIZE)
 
 #define CONFADDR	(VDRAM + 0x10000)	/* 0x40010000 */
-#define	REBOOTADDR	(0x40020000)		/* 0x40020000 */
+#define	REBOOTADDR	(VDRAM-KZERO + 0x20000)	/* 0x40020000 */
 
 #define	UZERO		0ULL			/* user segment */
 #define	UTZERO		(UZERO+0x10000)		/* user text start */