Skip to content

Commit

Permalink
movw not movl
Browse files Browse the repository at this point in the history
  • Loading branch information
dthain committed Dec 15, 2023
1 parent 0d470b3 commit d7edf04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/sysstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit d7edf04

Please sign in to comment.