summaryrefslogtreecommitdiff
path: root/sys/src/9/pc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-01-16 19:25:11 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-01-16 19:25:11 +0000
commit6f9838a6a5b80e0253bdc8fb194ad6f15eb655f5 (patch)
treeb7b6770ef352dd40e389ef300f4e3495031d139e /sys/src/9/pc
parent6e64d30454f71ecda88dba1bd792e97509115d73 (diff)
kernel: make Page.txtflush into an array
To avoid a MAXMACH limit of 32 and make txtflush into an array for the bitmap. Provide portable macros for testing and clearing the bits: needtxtflush(), donetxtflush(). On pc/pc64, define inittxtflush()/settxtflush() as no-op macros, avoiding the storage overhead of the txtflush array alltogether.
Diffstat (limited to 'sys/src/9/pc')
-rw-r--r--sys/src/9/pc/dat.h3
-rw-r--r--sys/src/9/pc/mem.h5
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/src/9/pc/dat.h b/sys/src/9/pc/dat.h
index 63789fcee..fa83b2662 100644
--- a/sys/src/9/pc/dat.h
+++ b/sys/src/9/pc/dat.h
@@ -159,6 +159,9 @@ struct PMMU
void *vmx;
};
+#define inittxtflush(p)
+#define settxtflush(p,c)
+
#include "../port/portdat.h"
typedef struct {
diff --git a/sys/src/9/pc/mem.h b/sys/src/9/pc/mem.h
index ef646db7d..83dafb8cb 100644
--- a/sys/src/9/pc/mem.h
+++ b/sys/src/9/pc/mem.h
@@ -21,11 +21,6 @@
#define BLOCKALIGN 8
#define FPalign 16
-/*
- * In 32-bit mode, the MAXMACH limit is 32 without
- * changing the way active.machs is defined and used
- * (unfortunately, it is also used in the port code).
- */
#define MAXMACH 32 /* max # cpus system can run */
#define KSTACK 4096 /* Size of kernel stack */