ref: c2d312b97123f2ce53ed756e14f642db5457a55a
parent: 51517c68d5991e64d4b32eb2591ea64778fab95f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Nov 10 19:01:44 EST 2023
kernel: fix SEGMAXSIZE macro, force 64-bit result
--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -395,7 +395,7 @@
#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
{
--
⑨