diff options
| author | H. Peter Anvin | 2009-04-12 03:30:22 +0200 |
|---|---|---|
| committer | Michael Brown | 2009-04-15 16:45:27 +0200 |
| commit | f44205b9ea928c3cdefb6848e7f20fe11d112522 (patch) | |
| tree | 53605cfae5199d510bb5d047cb7cb2c9c71e8d7a /src/include | |
| parent | [build] Don't assume the existence of "seq" (diff) | |
| download | ipxe-f44205b9ea928c3cdefb6848e7f20fe11d112522.tar.gz ipxe-f44205b9ea928c3cdefb6848e7f20fe11d112522.tar.xz ipxe-f44205b9ea928c3cdefb6848e7f20fe11d112522.zip | |
[pcbios] Don't use "lret $2" to return from an interrupt
Using "lret $2" to return from an interrupt causes interrupts to be
disabled in the calling program, since the INT instruction will have
disabled interrupts. Instead, patch CF on the stack and use iret to
return.
Interestingly, the original PC BIOS had this bug in at least one
place.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Michael Brown <mcb30@etherboot.org>
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions
