6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Apr 27, 2024 10:33 am

All times are UTC




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Thu Dec 30, 2010 6:56 pm 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
I don't think this is a super-serious problem. Many RISC CPUs store their interrupt state in registers, not on a stack. For example, MIPS, PowerPC, and IIRC m88k CPUs all had software stacks. Thus, it was the responsibility of the interrupt handler to (1) save the critical state to a software stack, and then (2) re-enable relevant interrupts.

In other words, there is no such thing as an NMI anymore. If an interrupt source is to be non-maskable, it's because of OS-enforced policy.

Therefore, I propose the glue logic also mask the NMI (in fact, it has to do this temporarily anyway for the delayed demotion mechanism discussed above). This would give the host OS time to save relevant data before deciding whether or not it wants to re-enable NMI or not.

The performance impact, while not zero, should be small enough to not matter for all but the most pathologically speed-sensitive applications. But, then, in such applications, you're not likely going to need an MMU either.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: