Search the web
Sign In
New User? Sign Up
amithlondev · Amithlon-Dev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
m68k x86 address space   Message List  
Reply | Forward Message #25 of 313 |
Re: [amithlondev] Re: m68k x86 address space

>If you use linux drivers, you have to make sure that the used
>hardware resources are not available to AmigaOS side and that
>such things as irq's are cleared in case of cpu emulation reset.

Actually, Harald, if you use linux drivers, you *don't* have to worry
about clearing interrupts in case of an emulation reset. That's because the
driver (which handles the interrupts) doesn't go away when the emulated
Amiga gets rebooted.

As for the idea of making an AHI driver that uses the linux driver for
the raw hardware access --- it is a good idea, and I have just such a
driver ready and working, and will release it under the GPL soon. Yes,
I know how much everyone must by now hate the word "soon", and trust me,
so do I.....

If you want to do it yourself, anyway (it's an interesting challenge),
be warned that things are not quite as simple as one might at first
assume. AHI's hardware drivers are not just information sinks; They
are also supposed to inform the higher AHI layers about having finished
playback of a buffer.
Because the main emulation thread MUST NEVER block (when it does, the
68k CPU emulation is blocked....), you need to either

a) Poll the state of the linux driver quite often, or
b) Run the actual driver access in a separate x86 thread.

(a) tends to be detrimental to performance (ideally, the driver will have
no more than 10ms of data buffered up, so you probably need to catch
a buffer-writable condition within about 2ms. That's 500+ timer interrupts
per second). (b) is the way to go, but it requires a bit of experience
(and maybe even some inside knowledge) with such arrangements under
Amithlon.

Bernie




Wed Mar 20, 2002 3:26 pm

umisef
Offline Offline
Send Email Send Email

Forward
Message #25 of 313 |
Expand Messages Author Sort by Date

Hi I have changes a bit in the kernel, so my it has support for soundcards again, as my soundcard aint support by the ahi driver. If I alloc a buffer on the...
Jacob Dahl Pind
rachael_@...
Send Email
Mar 19, 2002
5:02 pm

... Hi Jacob, which soundcard did you have ? We allready made new audio drivers and looking allways for some helpfull testers. For your programming questions: ...
vmconline
Offline Send Email
Mar 20, 2002
12:02 pm

... Actually, Harald, if you use linux drivers, you *don't* have to worry about clearing interrupts in case of an emulation reset. That's because the driver...
Bernie Meyer
umisef
Offline Send Email
Mar 20, 2002
3:27 pm

... Right now a isa aztech sound galaxy and I have another motherboard with an onboard opl3 based soundcard, but that board gave me alot of problems as I had...
Jacob Dahl Pind
rachael_@...
Send Email
Mar 20, 2002
7:25 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help