🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.internals
2 messages
2 total messages Started by Graham Hausler Tue, 17 Nov 1992 11:13
device driver address translations
#2381
Author: Graham Hausler
Date: Tue, 17 Nov 1992 11:13
31 lines
1918 bytes
I'm searching for a couple of particular details on address translations
within the context of a device driver....

Firstly, under UNIX System V/88 R32V3 in particular, and UNIX System V in
general, what kernel address space is automatically mapped to physical 
memory? Teixeira, in his device driver text, says the kernel always maps
the upper 2 Mbytes of kernel address space to identical physical addresses.
Is this true for 88k, ie 0xFFE00000 - 0xFFFFFFFF references in kernel space
will try to access these physical addresses? I can't find any V/88
documentation that confirms or denies this (and I am not at device
driver debugging stage yet...) although samples of code I've looked at
definitely assume that this is the case.

If so, that covers accessing device registers, but how do I access 
primary memory that has been removed from UNIX via  sysgen configuration? 
For example, memory from 0x01FE0000 - 0x02000000 I want to access via my 
device driver. I've searched the documentation for some routine/method that 
allows me somehow directly access physical memory, but to no avail. 
Do I have to do something special/bypass address translation tables 
(if so, what/how ??!?), or is there simple solution? (ie a copyin/copyout
that works between kernel space and physical space...)

Thanks for any assistance
Graham Hausler.





-- 
Internet:   hausler@aldetec.oz.au      --> GEMCO, Perth, Australia.
Re: device driver address translations
#2387
Author: Boyd Roberts
Date: Thu, 19 Nov 1992 21:00
6 lines
689 bytes
It's all machine/implementation dependent.  Read the kernel source.


Boyd Roberts			boyd@prl.dec.com

``Not only is UNIX dead, it's starting to smell really bad.''  -- Rob Pike
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads