what to do with vtophys()

January 12, 2008 Pivotal Labs

outside of work, I do some things with OpenBSD. Over the last month or so, I’ve been poking at the DRI code, mostly to make it compile on my laptop. Why is it taking so long? I don’t know C, and are learning on the fly. Kernel space makes it interesting.

One problem with compiling: the code uses ‘vtophys()’, which is not portable. My laptop is running in AMD64 mode, which doesn’t have vtophys(). The solution: ‘bus_space_vaddr()’. it essentially is a drop-in replacement for vtophys(), but I have to set up the bus_space area first. Thats proving to be a little more of a challenge than I hoped. I think I’ll have to edit the headers, and add (yuck) some entries into a struct, so I can pass around the appropriate information.

About the Author

Biography

More Content by Pivotal Labs
Previous
Java Functional Testing with JRuby and RSpec
Java Functional Testing with JRuby and RSpec

One of our client Java projects is pioneering the use of RSpec Story Framework for functional tests. Ove...

Next
It Ain't Official, It Ain't Blabs… It's Everyone!
It Ain't Official, It Ain't Blabs… It's Everyone!

Howdy, everyone! Don't you hate it when one of your favorite Pivots blogs a non-official, non-blabs articl...

Enter curious. Exit smarter.

Register Now