the 512GB mark as the direct map cannot address memory past that point.
ok kettenis@ (quite a while ago)
-/* $OpenBSD: machdep.c,v 1.249 2018/07/27 21:11:31 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.250 2018/07/30 09:04:52 jmatthew Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
continue;
}
+ /*
+ * The direct map is limited to 512GB of memory, so
+ * discard anything above that.
+ */
+ if (e1 >= (uint64_t)512*1024*1024*1024) {
+ e1 = (uint64_t)512*1024*1024*1024;
+ if (s1 > e1)
+ continue;
+ }
+
/* Crop stuff into "640K hole" */
if (s1 < IOM_BEGIN && e1 > IOM_BEGIN)
e1 = IOM_BEGIN;