We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3581

Summary: Atari SDL programs hang on Amiga
Product: SDL Reporter: Vincent Riviere <vincent.riviere>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: patmandin
Version: HG 1.2   
Hardware: Other   
OS: Other   
Attachments: Fix interrupt mask for non-Atari hardware

Description Vincent Riviere 2017-02-05 15:00:12 UTC
Created attachment 2695 [details]
Fix interrupt mask for non-Atari hardware

Background:
EmuTOS is an operating system for Atari ST computers. It can also run on non-Atari hardware, such as Amiga.

Atari SDL programs hang when started on Amiga. This is because SDL assumes that the normal interrupt level is 3. This is true on Atari hardware, but wrong on Amiga where interrupts are different and where normal interrupt level is 0.

The attached patch fixes this problem. The interrupt level is properly saved/restored, for compatibility with any hardware.
Comment 1 Sam Lantinga 2017-02-05 20:16:35 UTC
Got it, thanks!
https://hg.libsdl.org/SDL/rev/7676476631ce