03.05.2012 19:47, Andrew Brooks wrote:
> I've just tried to get dosemu working (on ubuntu 12.04) with hardware 
> that requires IO ports.
>
> It wasn't working so I checked /proc/ioports and found the first line 
> completely overlaps the range I need (0x0320...)
> 0000-0cf7 : PCI Bus 0000:00
> The other lines in the file are as normal (although indented) covering 
> allocations more specifically.
>
> I hacked dosemu to ignore the offending line and now have IO port access.
>
> Is there a clean way to solve this in the source (emu-i386/ports.c) ?
There is: to teach dosemu about the indentation in
/proc/ioports, that covers the allocations more specifically. :)
You code? :)
I think the simplest logic would be to just ignore the
previous line if the subsequent line is "more indented".

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dosemu-devel mailing list
Dosemu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel

Reply via email to