Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amd64 bus_space_*_8() functions


On 23 Apr 2008, at 16:14 , Andrew Doran wrote:

I think it is simply because there has not been a need for these functions yet. I think that an 8-byte operation to I/O space should call panic(). Can you see how to implement them (arch/amd64/amd64/busfunc.S) or shall I
do that?

I'd  be very grateful if you would do it.  I've been making progress

#define bus_space_read_8(t, h, o) \
        (*(volatile uint64_t *)((h) + (o)))

#define bus_space_write_8(t, h, o, v) \
        (*(volatile uint64_t *)((h) + (o)) = (v))

shoved in a .h file, and while I found the file they needed to be
added to my Intel assembler skills are too obsolete to do a proper
job without some relearning.  If you would do it, it would save me
that last bit of trouble.

Thanks very much,

Home | Main Index | Thread Index | Old Index