summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2023-11-11 00:01:44 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2023-11-11 00:01:44 +0000
commit44c0e7259800885d0028d8c5352f6760f670132b (patch)
treea2d28a15301012579e164cfe80177fc0bfd864ff
parent57bf8f165dd5a19c1876278e045a5b6b791ce4dd (diff)
kernel: fix SEGMAXSIZE macro, force 64-bit result
-rw-r--r--sys/src/9/port/portdat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h
index 7a4c88746..b4eea1a04 100644
--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -395,7 +395,7 @@ enum
#define pagedout(s) (((uintptr)s)==0 || onswap(s))
#define swapaddr(s) (((uintptr)s)&~PG_ONSWAP)
-#define SEGMAXSIZE (SEGMAPSIZE*PTEMAPMEM)
+#define SEGMAXSIZE (1ULL*SEGMAPSIZE*PTEMAPMEM)
struct Physseg
{