summaryrefslogtreecommitdiff
path: root/mbr
diff options
context:
space:
mode:
Diffstat (limited to 'mbr')
-rw-r--r--mbr/adjust.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/mbr/adjust.h b/mbr/adjust.h
index 42c12a35..ce8716eb 100644
--- a/mbr/adjust.h
+++ b/mbr/adjust.h
@@ -1,6 +1,6 @@
/* -*- asm -*- -----------------------------------------------------------
*
- * Copyright 2009 Intel Corporation; author: H. Peter Anvin
+ * Copyright 2009-2014 Intel Corporation; author: H. Peter Anvin
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
@@ -36,7 +36,11 @@
#ifdef CTRL_80
.macro ADJUST_DRIVE
- testb $0x04, BIOS_kbdflags
+ pusha
+ movb $0x02, %ah
+ int $0x16
+ testb $0x04, %al
+ popa
jz 1f
movb $0x80, %dl
1: