kernel: facility for user-visible memory

. map all objects named usermapped_*.o with globally visible
	  pages; usermapped_glo_*.o with the VM 'global' bit on, i.e.
	  permanently in tlb (very scarce resource!)
	. added kinfo, machine, kmessages and loadinfo for a start
	. modified log, tty to make use of the shared messages struct
This commit is contained in:
Ben Gras
2012-07-18 18:53:20 +02:00
parent 53a947167c
commit b6ea15115c
25 changed files with 209 additions and 64 deletions

11
kernel/usermapped_data.c Normal file
View File

@@ -0,0 +1,11 @@
#include "kernel.h"
/* This is the user-visible struct that has pointers to other bits of data. */
struct minix_kerninfo minix_kerninfo;
/* Kernel information structures. */
struct kinfo kinfo; /* kernel information for users */
struct machine machine; /* machine information for users */
struct kmessages kmessages; /* diagnostic messages in kernel */
struct loadinfo loadinfo; /* status of load average */