From 6f9838a6a5b80e0253bdc8fb194ad6f15eb655f5 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 16 Jan 2022 19:25:11 +0000 Subject: 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. --- sys/src/9/port/userinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/9/port/userinit.c') diff --git a/sys/src/9/port/userinit.c b/sys/src/9/port/userinit.c index 89a19c1c9..01354b94a 100644 --- a/sys/src/9/port/userinit.c +++ b/sys/src/9/port/userinit.c @@ -52,7 +52,7 @@ proc0(void*) k = kmap(p); memmove((void*)VA(k), initcode, sizeof(initcode)); kunmap(k); - p->txtflush = ~0; + settxtflush(p, 1); segpage(up->seg[TSEG], p); up->seg[TSEG]->flushme = 1; -- cgit v1.2.3