Skip to content

Commit

Permalink
fix(meminfo): use r11 to not conflict with print
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorNoInternet committed Aug 20, 2024
1 parent fa8f796 commit dc7d902
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meminfo.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ populate_meminfo:

xor r8, r8
xor r9, r9
xor r10, r10
xor r11, r11

meminfo_available:
mov bl, [meminfo_buf + r8]
Expand All @@ -42,8 +42,8 @@ meminfo_available_skip_space:
je meminfo_available_skip_space

meminfo_available_parse:
mov [memavailable_buf + r10], bl
inc r10
mov [memavailable_buf + r11], bl
inc r11

mov bl, [meminfo_buf + r8]
inc r8
Expand Down

0 comments on commit dc7d902

Please sign in to comment.