aboutsummaryrefslogtreecommitdiffstats
path: root/bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus.c b/bus.c
index f2369eb..cd84232 100644
--- a/bus.c
+++ b/bus.c
@@ -64,7 +64,7 @@ int addr_to_pramin_mut(struct nvdebug_state *g,
64 goto relocate; 64 goto relocate;
65 } 65 }
66 pramin_base = ((uint64_t)window.base) << 16; 66 pramin_base = ((uint64_t)window.base) << 16;
67 if (addr < pramin_base || addr > pramin_base + NV_PRAMIN_LEN) 67 if (addr < pramin_base || addr >= pramin_base + NV_PRAMIN_LEN)
68 goto relocate; 68 goto relocate;
69 return addr - pramin_base; // Guaranteed to be < 1MiB, so safe for int 69 return addr - pramin_base; // Guaranteed to be < 1MiB, so safe for int
70relocate: 70relocate: