diff options
Diffstat (limited to 'src/c_cpu.S')
-rw-r--r-- | src/c_cpu.S | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/c_cpu.S b/src/c_cpu.S index 395b176..fedcebb 100644 --- a/src/c_cpu.S +++ b/src/c_cpu.S @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * asm-cgi-example: src/c_cpu.S - * Sun May 22 16:51:35 CEST 2022 + * Sun May 22 17:22:17 CEST 2022 * Joe */ @@ -49,8 +49,6 @@ c_cpu: fork_model: xorq %rdi, %rdi - xorq %rsi, %rsi - xorq %rdx, %rdx xorq %rax, %rax movb $0x1, %dil movq $str_model, %rsi @@ -69,8 +67,6 @@ fork_model: fork_ncpu: xorq %rdi, %rdi - xorq %rsi, %rsi - xorq %rdx, %rdx xorq %rax, %rax movb $0x1, %dil movq $str_ncpu, %rsi @@ -89,8 +85,6 @@ fork_ncpu: fork_lscpu: xorq %rdi, %rdi - xorq %rsi, %rsi - xorq %rdx, %rdx xorq %rax, %rax movb $0x1, %dil movq $str_lscpu, %rsi @@ -202,13 +196,13 @@ err: syscall .data - str_model: .asciz "\t\t<p>\n\t\t\t<code>sysctl hw.model</code>:\n\t\t</p>\n\t\t<pre>\n" + str_model: .ascii "\t\t<p>\n\t\t\t<code>sysctl hw.model</code>:\n\t\t</p>\n\t\t<pre>\n" len_model = . - str_model - str_ncpu: .asciz "\t\t</pre>\n\t\t<p>\n\t\t\t<code>sysctl hw.ncpu</code>:\n\t\t</p>\n\t\t<pre>\n" + str_ncpu: .ascii "\t\t</pre>\n\t\t<p>\n\t\t\t<code>sysctl hw.ncpu</code>:\n\t\t</p>\n\t\t<pre>\n" len_ncpu = . - str_ncpu - str_lscpu: .asciz "\t\t</pre>\n\t\t<p>\n\t\t\t<code>lscpu</code>:\n\t\t</p>\n\t\t<pre>\n" + str_lscpu: .ascii "\t\t</pre>\n\t\t<p>\n\t\t\t<code>lscpu</code>:\n\t\t</p>\n\t\t<pre>\n" len_lscpu = . - str_lscpu - str_end: .asciz "\t\t</pre>\n" + str_end: .ascii "\t\t</pre>\n" len_end = . - str_end sysctl: .asciz "/sbin/sysctl" lscpu: .asciz "/usr/local/bin/lscpu" |