OSLib bug fixes (various)

Timothy Baldwin csyteb at comp.leeds.ac.uk
Sun Jan 14 18:43:29 GMT 2001


On Fri, 12 Jan 2001, Daniel Ellis wrote:
> On Fri 12 Jan, Tony van der Hoff wrote:

> > >+ os_int_on() and os_int_off() added as these can be called from user
> > >   and 32 bit modes.
> > Really? With valid APCS - this was the reason they weren't included in
> > the first place.

In USR26 and USR32 modes fhe I flag can't be written to, there it's state
won't be restore on function exit, also APCS32 does not restore the flags so
the I flag will remain as set by os_int_on() or os_int_off().

> These SWIs don't affect any registers, so why should APCS be of any
> significance?
> 
> > >+ DefMod checks SWI numbers with |xos_swi_number_from_string|.
> 
> Surely this will error if the module supplying the SWI isn't resident?

In which case the SWI number is assumed to be valid.

-- 
Timothy Baldwin




More information about the oslib-user mailing list