mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-22 11:07:51 -04:00
Add avx to the list of gathered features
This commit is contained in:
parent
41ecd7c69a
commit
e0b7aaa240
@ -20,6 +20,7 @@ STRING sysinfo_sse2, "sse2 "
|
||||
STRING sysinfo_sse3, "sse3 "
|
||||
STRING sysinfo_sse4_1, "sse4_1 "
|
||||
STRING sysinfo_sse4_2, "sse4_2 "
|
||||
STRING sysinfo_avx, "avx"
|
||||
STRING sysinfo_ht, "ht "
|
||||
|
||||
STRING available_commands, "Available commands: "
|
||||
@ -234,12 +235,23 @@ sysinfo_command:
|
||||
mov r15, rcx
|
||||
and r15, 1 << 20
|
||||
cmp r15, 0
|
||||
je .frequency
|
||||
je .avx
|
||||
|
||||
mov r8, sysinfo_sse4_2
|
||||
mov r9, sysinfo_sse4_2_length
|
||||
call print_normal
|
||||
|
||||
.avx:
|
||||
|
||||
mov r15, rcx
|
||||
and r15, 1 << 28
|
||||
cmp r15, 0
|
||||
je .frequency
|
||||
|
||||
mov r8, sysinfo_avx
|
||||
mov r9, sysinfo_avx_length
|
||||
call print_normal
|
||||
|
||||
.frequency:
|
||||
|
||||
call goto_next_line
|
||||
|
Loading…
x
Reference in New Issue
Block a user