Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: Hard Disk *...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 11 Topic 4556 of 4729
Post > Topic >>

Re: Hard Disk ****ts

by Jerry Coffin <spamtrap@[EMAIL PROTECTED] > Mar 9, 2008 at 04:34 PM

In article <7ah1t31u4hlgpofkrvs5kerl6aitta3vnr@[EMAIL PROTECTED]
>, 
spamtrap@[EMAIL PROTECTED]
 says...

[ ... ]

> Not possible.  I/O space and memory space are very different, and you
can't
> reroute one to the other.

While that's true from a hardware perspective, you can make an arbitrary 
range of memory _act_ as if it was mapped to I/O space from a software 
perspective, if you want to badly enough.

The trick is pretty simple: pick your memory range set it up as memory 
that's not present. Attempting to read or write the page will result in 
a page fault. In the fault handler, read/write the appropriate ****t, 
then return to the original code.

This will normally involve switching to ring 0 every time you read/write 
the "memory mapped" I/O space, so the performance is dismal (to put it 
nicely).

-- 
    Later,
    Jerry.

The universe is a figment of its own imagination.
 




 11 Posts in Topic:
Hard Disk Ports
tony <spamtrap@[EMAIL  2008-03-04 10:47:01 
Re: Hard Disk Ports
Tim Roberts <spamtrap  2008-03-05 06:22:14 
Re: Hard Disk Ports
"Wolfgang Kern"  2008-03-05 13:50:41 
Re: Hard Disk Ports
tony <spamtrap@[EMAIL  2008-03-05 07:17:07 
Re: Hard Disk Ports
Tim Roberts <spamtrap  2008-03-07 04:37:59 
Re: Hard Disk Ports
Robert Redelmeier <red  2008-03-07 14:41:52 
Re: Hard Disk Ports
NoSpam@[EMAIL PROTECTED]   2008-03-08 13:14:55 
Re: Hard Disk Ports
Jerry Coffin <spamtra  2008-03-09 16:34:13 
Re: Hard Disk Ports
tony <spamtrap@[EMAIL  2008-03-06 09:52:28 
Re: Hard Disk Ports
Robert Redelmeier <red  2008-03-06 22:06:31 
Re: Hard Disk Ports
"Wolfgang Kern"  2008-03-07 16:46:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:04:54 CDT 2008.