From owner-freebsd-hackers Sun Jun 22 18:01:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA01728 for hackers-outgoing; Sun, 22 Jun 1997 18:01:39 -0700 (PDT) Received: from misery.sdf.com (misery.sdf.com [204.244.210.193]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA01721 for ; Sun, 22 Jun 1997 18:01:29 -0700 (PDT) Received: from tom by misery.sdf.com with smtp (Exim 1.62 #1) id 0wfxSO-0006L4-00; Sun, 22 Jun 1997 17:58:12 -0700 Date: Sun, 22 Jun 1997 17:58:11 -0700 (PDT) From: Tom Samplonius To: Steve Howe cc: freebsd-hackers Subject: Re: direct access In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 22 Jun 1997, Steve Howe wrote: > > i wanted to port a hex/block editor from DOS. > > it can read/write 1 RAM blocks > 2 Port Addresses > 3 Hard/Floppy Drives > 4 Files > > however, i am finding even simple things like ... > ///////////////////////////////////////////////// > int main (void) { > > unsigned char * p = (unsigned char *)0x000b8000; > > while ( 1 ) { printf("%c", *p++); getch(); } return 0; > } > ///////////////////////////////////////////////// > where i try to read the CGA/VGA screen, bomb with > "segmentation violation" errors. > > is the kernel examining op codes on the run, or what? > is it at all possible to write Device editors? > at any level of coding? > > ------------------------------------------------- > FingerPrint BA09868C 1B995204 58410FD3 A5E7B2DA > http://www.geocities.com/siliconvalley/way/7747 > ------------------------------------------------- FreeBSD is unix. Unix is a multi-user operating system. Unix uses the memory management functions of the CPU to protect the memory space of each process. I thought everyone knew this? Tom