summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-02-25 17:32:32 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-02-25 17:32:32 (GMT)
commit1dd96271ad8fd8fb7661f27cbff8d425a8b9d698 (patch)
tree15baa8d5992a0ca1f69f8444a8368fa95005ac3f
parent7a5748839ae51d632ea519c921f1a87b8c19c864 (diff)
downloadvirtio9p-1dd96271ad8fd8fb7661f27cbff8d425a8b9d698.zip
virtio9p-1dd96271ad8fd8fb7661f27cbff8d425a8b9d698.tar.gz
virtio9p-1dd96271ad8fd8fb7661f27cbff8d425a8b9d698.tar.bz2
virtio9p-1dd96271ad8fd8fb7661f27cbff8d425a8b9d698.tar.xz
datetime: fix register names to silence gas warning
-rw-r--r--datetime.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/datetime.S b/datetime.S
index 63534e9..01ebca5 100644
--- a/datetime.S
+++ b/datetime.S
@@ -90,10 +90,10 @@ unix2dos:
divw %cx
/* %ax now is the month within year in the range 3-14 */
- cmpb $12,%ax
+ cmpb $12,%al
jna 2f
/* January or February are months 1-2 of the subsequent year */
- addb $(16-12),%ax
+ addb $(16-12),%al
2:
shlw $5,%ax
addw %ax,%bx /* Add, not or! May be modifying the year! */