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 4609

Summary: [PATCH] riscos: Clean up SWI calls
Product: SDL Reporter: Cameron Cawley <ccawley2011>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: ARM   
OS: RISC OS   
Bug Depends on:    
Bug Blocks: 4654    
Attachments: riscos: Clean up SWI calls

Description Cameron Cawley 2019-04-26 21:12:16 UTC
Created attachment 3765 [details]
riscos: Clean up SWI calls

The main thing this patch does is it changes all OS_Byte and OS_Word calls to use _kernel_osbyte and _kernel_osword from the system headers. This should provide a minor optimization since it avoids having to call the SWIs via OS_CallASWIR12. Both functions are already used elsewhere in SDL, so this change shouldn't be a big deal.

It also uses the proper names for OS_ReadPalette and Joystick_Read.
Comment 1 Sam Lantinga 2019-06-08 20:17:25 UTC
Patch added!
https://hg.libsdl.org/SDL/rev/c47cdc60c1b3