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

x86 bootloader: keep 8259 PIC enabled when reading from disk #2065

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

francescolavra
Copy link
Member

Following a recent update of the hypervisor and/or the BIOS firmware on AWS Xen-based instances (e.g. t2 instances), the BIOS never returns from the INT 13H routine that the stage1 bootloader uses to read stage2 code from disk. This prevents the kernel from booting on those instance types.
This change fixes the above issue by disabling the 8259 PIC only after reading stage2 code from disk. This allows the BIOS firmware to work properly when executing the INT 13H routine, and also allows this routine to be executed more than once. Therefore, the limitation of 64 kB on stage2 code size is being lifted, since a larger stage2 binary (which requires more than one INT 13H call in order to be read from disk) is now properly handled on AWS instances.

Following a recent update of the hypervisor and/or the BIOS
firmware on AWS Xen-based instances (e.g. t2 instances), the BIOS
never returns from the INT 13H routine that the stage1 bootloader
uses to read stage2 code from disk. This prevents the kernel from
booting on those instance types.
This change fixes the above issue by disabling the 8259 PIC only
after reading stage2 code from disk. This allows the BIOS firmware
to work properly when executing the INT 13H routine, and also
allows this routine to be executed more than once. Therefore, the
limitation of 64 kB on stage2 code size is being lifted, since a
larger stage2 binary (which requires more than one INT 13H call in
order to be read from disk) is now properly handled on AWS
instances.
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