🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #420

Re: Interrupts in OoO

#420
From: EricP
Date: Wed, 28 Oct 2026 18:19
89 lines
5630 bytes
On 2026-Oct-27 12:35, MitchAlsup wrote:
> EricP <ThatWouldBeTelling@thevillage.com> posted:
>>
>> In my terminology I have Exceptions, Interrupts, and Errors.
>> I take all the well defined stuff and put it in the Exception and
>> Interrupt buckets, and take all the weird stuff and call it Errors.
> 
> To a very large extent I agree with you. The things you call errors
> I call Checks. Checks are never supposed to happen {{like late store
> data ECC fails}}.
>   
>> Exceptions are defined by the ISA, are precise, and synchronous
>> to the excepting instruction. There are two kinds, Faults and Traps.
>> Most exceptions notifications cannot be deferred or "masked".
>> Floating point exceptions are potentially maskable however if
>> they are then any auxiliary information about the precise source of
>> the FP exceptions will be synchronous with instruction that unmasks
>> a pending floating point exception.
>>
>> Interrupts are defined as precise and asynchronous.
>> Their number and priority mechanisms is defined as model specific.
>> Interrupts are potentially maskable and may be deferred.
>> The only ISA defined part of interrupts are the master interrupt
>> mask control instructions INTEN enable and INTDI disable.
>>
>> Exceptions and Interrupts are defined as precise and restartable.
>>
>> The mechanism for delivering Exception and Interrupt notifications
>> is defined as model specific. In practice this just means that
>> operating systems should modularize this layer of their software
>> (sometimes called a HAL or Hardware Abstraction Layer).
>>
>> Errors are model and error specific, may be synchronous or asynchronous,
>> may be precise (Faults or Traps) or imprecise (Aborts).
>> Errors may or may not be deferred (maskable).
> 
> It is at this point I generally point out that Checks {errors} deliver
> control to the highest privilege level {HyperVisor} not the next higher
> privilege level {Guest OS when in User}.

I didn't have separate privilege modes for HV and Errors-Checks,
just Supervisor mode.

There is a HV mode which triggers exceptions when guest OS attempt to
access certain privileged control registers while guest is in Super mode.
But that is enabled by privileged control flags.

I'm not sure what an Error-Check mode could do that is different
from faulting into Super mode and disabling the HV enable flag,
and vectoring off to a privileged error handler routine.

>> Errors may not be restartable.
>> The mechanism for delivering Error notifications is defined as
>> model and error specific.
> 
> No, while the checks are model specific, the mechanism to deliver them
> to HV is specified.
>>

In my approach the ISA defines:
- Exceptions type codes and auxiliary data, and their associated instructions.
- That priority interrupts exist,
   that there is a master enable/disable flag controlled INTEN and INTDI instructions,
   that there is a REIC Return from Exception or Interrupt Conditional instruction
   to return from OS to prior execution context.
- That Errors are possible.

However the mechanism for communicating between the HW and SW handlers
is defined as model specific. In the case of exceptions that mechanism is
unlikely to change - there are some privileged control registers to set up,
HW calculates a jump address using the exception code (no memory is accessed
during state transition so no external errors can disrupt the context switch).

However Interrupts and Errors (Checks) I see as external to the ISA
and defined by the needs of the surrounding IO and other hardware.

The interrupt controllers I see as plug-in HW and SW modules external to the ISA,
and there would be multiple kinds interrupt controllers for different markets.
Potentially there are different controllers for embedded, desktop, server-bare,
and server-VM. Mobile and laptop are more like embedded where there are no
new devices that plug into the interrupt system, than like desktop or server.
Embedded, mobile and laptop probably want the lowest cost interfaces,
whereas servers, particularly those running virtual machines want more features.

These interfaces are specified, its just that they are documented for each model
and any differences only affect privileged operating system software.


Technical Details
Message-ID: <j1rES.147330$V9C6.84580@fx02.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.iad.POSTED!not-for-mail
References: <2024Oct3.160055@mips.complang.tuwien.ac.at> <vdmrk6$3rksr$1@dont-email.me> <LyELO.69485$2nv5.62232@fx39.iad> <TdWLO.282116$FzW1.158190@fx14.iad> <963a276fd8d43e4212477cefae7f6e46@www.novabbs.org> <8IcMO.249144$v8v2.147178@fx18.iad> <2024Oct5.195712@mips.complang.tuwien.ac.at> <6adbf319.9129937@news.eternal-september.org> <1792869649-5857@newsgrouper.org> <fCpDS.27362$9b8f.8498@fx39.iad> <L%JDS.15598$fJ0f.4191@fx44.iad> <1793118908-5857@newsgrouper.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Interrupts in OoO
Newsgroups: comp.arch
References: <2024Oct3.160055@mips.complang.tuwien.ac.at>
 <vdmrk6$3rksr$1@dont-email.me> <LyELO.69485$2nv5.62232@fx39.iad>
 <TdWLO.282116$FzW1.158190@fx14.iad>
 <963a276fd8d43e4212477cefae7f6e46@www.novabbs.org>
 <8IcMO.249144$v8v2.147178@fx18.iad>
 <2024Oct5.195712@mips.complang.tuwien.ac.at>
 <6adbf319.9129937@news.eternal-september.org>
 <1792869649-5857@newsgrouper.org> <fCpDS.27362$9b8f.8498@fx39.iad>
 <L%JDS.15598$fJ0f.4191@fx44.iad> <1793118908-5857@newsgrouper.org>
Content-Language: en-CA
From: EricP <ThatWouldBeTelling@thevillage.com>
In-Reply-To: <1793118908-5857@newsgrouper.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 89
Message-ID: <j1rES.147330$V9C6.84580@fx02.iad>
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Wed, 28 Oct 2026 18:19:59 UTC
Date: Wed, 28 Oct 2026 14:19:56 -0400
X-Received-Bytes: 5398