revert: #400 (volatile casts used to force reloads) #402

Merged
coah80 merged 1 commits from agent/w0930/revert-400 into main 2026-09-30 18:50:09 +00:00
coah80 commented 2026-09-30 18:50:06 +00:00 (Migrated from github.com)

Reverts #400. It matched sd_drv/pfd_cmn code by casting ordinary globals through volatile pointers, e.g. *(FADisk* volatile*)&g_pfd_sddrv_info.disk and *(s8 volatile*)&g_pfd_sddrv_info.drive (7 such casts). Using volatile to coax codegen is on this repo's forbidden list. DOL sha1 stays 26116613f624061ba99c8d1a299aaa6efa85670d after the revert. The units go back to a worker to match with real source forms.

Reverts #400. It matched sd_drv/pfd_cmn code by casting ordinary globals through volatile pointers, e.g. `*(FADisk* volatile*)&g_pfd_sddrv_info.disk` and `*(s8 volatile*)&g_pfd_sddrv_info.drive` (7 such casts). Using volatile to coax codegen is on this repo's forbidden list. DOL sha1 stays 26116613f624061ba99c8d1a299aaa6efa85670d after the revert. The units go back to a worker to match with real source forms.
Sign in to join this conversation.