Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 1997 14:24:35 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        Shimon@i-Connect.Net (Simon Shapiro)
Cc:        msmith@atrad.adelaide.edu.au, FreeBSD-Hackers@FreeBSD.ORG
Subject:   Re: Kernel howto, Second Request
Message-ID:  <199708020454.OAA09123@genesis.atrad.adelaide.edu.au>
In-Reply-To: <XFMail.970801210215.Shimon@i-Connect.Net> from Simon Shapiro at "Aug 1, 97 09:02:15 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Simon Shapiro stands accused of saying:
> > 
> > I responded to these.  Let me know if you didn't get the rsponse, but
> > more importantly _why_ do you want them?  
> 
> I didn't get the response :-(

Booger.

> I do not want these.  I need them.  The DPT raid manager requires these.
> They do not do anything dramatic with them, but the application (originally
> DOS) expects them in reply to an IOCTL.  

Ok.  Can you lie about them, or fix the application?  The CMOS drive type
is unlikely to be relevant, the CPU and architecture you can get
inside the kernel (look at the output of sysctl -a and backtrack that
into the kernel, or pester me some more and I can cons you some code
for the job).

> Kernel, of course.  The addresses are all BIOS data pages and the DPT
> BIOS and firmware addresses.  The code is really, really not portable
> (I am being very kind with my words here :-)  If I an have the values
> for the struct, I will gladly avoid writing all these nasty inb/outb
> and funny memory accesses.
>
> I really do not knowif this memory has been mapped or not.  What I need
> to do is probe certain location, in BIOS ranges for certain signatures.
> This probing should not be destructive.

Oh, that's completely different again.  If you want to poke at the
ISA 'hole', that's mapped as part of the kernel address space.  If you
have an up-to-date -current lurking somewhere, have a look in
sys/i386/i386/bios.c to see how to rummage in that area.

The BIOS data area I'm not so sure about; I'm fairly sure it's
preserved, but I'm not entirely sure where.  If you _really_ need
numbers from here, go ahead and chase it.  In most cases, I'd suggest
you fake the numbers instead.
 
-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708020454.OAA09123>