Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[driver] Optionally place direct floppy driver in far text segment #1727

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Sep 19, 2023

When the kernel is compiled with the BIOS, DF, SSD and RD block drivers, networking and all trace and system checks included, the near text segment checks in at 64336 bytes, too close to the 65535 byte max.

This PR moves the DF driver (and DMA code) into the far text segment when CONFIG_FARTEXT_KERNEL is set, which opens up about 3k bytes in the near text segment. Calling code between segments isn't free though, and the net total increase in kernel RAM size is plus ~400 bytes.

Considering doing the same for the SSD and RD drivers, and possibly BIOS.

@ghaerr ghaerr merged commit cece75e into master Sep 19, 2023
2 checks passed
@ghaerr ghaerr deleted the df branch September 19, 2023 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant