Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!internet!Ron Natalie From: Ron Natalie Newsgroups: net.unix-wizards Subject: Re: Mapping Kernel memory to user space Message-ID: <5964@brl-tgr.ARPA> Date: Tue, 20-Nov-84 15:45:06 EST Article-I.D.: brl-tgr.5964 Posted: Tue Nov 20 15:45:06 1984 Date-Received: Thu, 22-Nov-84 06:34:53 EST Sender: news@brl-tgr.ARPA Organization: Ballistic Research Lab Lines: 17 Add these to the end of uba.c maptouser(vaddress) caddr_t vaddress; { Sysmap[(((unsigned)(vaddress))-0x80000000) >> 9].pg_prot = (PG_UW>>27); } unmaptouser(vaddress) caddr_t vaddress; { Sysmap[(((unsigned)(vaddress))-0x80000000) >> 9].pg_prot = (PG_KW>>27); } and then call them from an IOCTL in the device driver.