From 4cb3dceb0ae315dfdda4294c6e944db4e281b93e Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sat, 2 Sep 2023 15:05:52 +0200 Subject: [PATCH] dart: limit vm-base to 36-bit io address space Required for t602x dcp*. Signed-off-by: Janne Grunau --- src/dart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dart.c b/src/dart.c index ff4819ea..907cc15b 100644 --- a/src/dart.c +++ b/src/dart.c @@ -324,6 +324,8 @@ dart_dev_t *dart_init_adt(const char *path, int instance, int device, bool keep_ } if (ADT_GETPROP(adt, node, "vm-base", &dart->vm_base) < 0) dart->vm_base = 0; + else + dart->vm_base &= (1LLU << 36) - 1; return dart; }