Remove the GET_NUM_BOOT_DRIVES and GET_DRIVE_BOOT_CONFIG driver queries#190
Remove the GET_NUM_BOOT_DRIVES and GET_DRIVE_BOOT_CONFIG driver queries#190
Conversation
Remove support for these queries from the Nextor kernel and from the Standalone ASCII 8, SunriseIDE and MFRSD drivers. From now on, only the kernel can decide the drives configuration at boot time.
📝 WalkthroughWalkthroughThis PR removes the boot-time driver query interface for boot-drive configuration and count. It eliminates DRVQ_GET_NUM_BOOT_DRIVES and DRVQ_GET_DRIVE_BOOT_CONFIG constants from the driver protocol; simplifies boot-device discovery by removing driver-provided configuration flows; and updates constant values, driver handlers, and test utilities accordingly. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@source/kernel/bank4/partit.mac`:
- Around line 389-393: Update the GDRIVER comment block in partit.mac: change
"The later may happen if" to "The latter may happen if" and correct any
misspelling of "partitions" in that same comment so it reads "partitions"
(ensure the two numbered bullets remain unchanged); target the GDRIVER comment
text near the existing numbered list to make the edits.
The driver queries
GET_NUM_BOOT_DRIVESandGET_DRIVE_BOOT_CONFIGwere added as a workaround for the fact that in Nextor 2 it's not possible to tell apart a device that doesn't exist or one that exists but is removable and is currently offline (e.g. an empty SD card slot). In Nextor 3 this is no longer the case and thus these queries can now be removed. The driver shouldn't be concerned about how the OS maps its drives.