From d7edf041557687abaa42c72a398ce13a6f39a509 Mon Sep 17 00:00:00 2001 From: Douglas Thain Date: Fri, 15 Dec 2023 16:22:48 -0500 Subject: [PATCH] movw not movl --- user/sysstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/sysstat.c b/user/sysstat.c index 059fe438..4cf37474 100644 --- a/user/sysstat.c +++ b/user/sysstat.c @@ -23,8 +23,8 @@ int main(int argc, char *argv[]) /* The workaround here is to explicitly set up the es register prior to using it.*/ - asm("movl %ds, %ax"); - asm("movl %ax, %es"); + asm("mov %ds, %ax"); + asm("mov %ax, %es"); struct system_stats s = {0};