summaryrefslogtreecommitdiffstats
path: root/src/c_cpu.S
diff options
context:
space:
mode:
authorJozanLeClerc <>2022-05-22 16:30:43 +0000
committerJozanLeClerc <>2022-05-22 16:30:43 +0000
commit6c0655e7dfd83b726eeec71ecb72e29f5ef0a8d4 (patch)
treeb5b6815fba5abfb0cfab8c9c25c1d297f048e8d2 /src/c_cpu.S
parentUpdate (diff)
downloadasm-cgi-example-6c0655e7dfd83b726eeec71ecb72e29f5ef0a8d4.tar.gz
asm-cgi-example-6c0655e7dfd83b726eeec71ecb72e29f5ef0a8d4.tar.bz2
asm-cgi-example-6c0655e7dfd83b726eeec71ecb72e29f5ef0a8d4.tar.xz
asm-cgi-example-6c0655e7dfd83b726eeec71ecb72e29f5ef0a8d4.tar.zst
asm-cgi-example-6c0655e7dfd83b726eeec71ecb72e29f5ef0a8d4.zip
WIP
FossilOrigin-Name: 50c6fcb1c1758fb6252c48df702f81c626389bcc
Diffstat (limited to '')
-rw-r--r--src/c_cpu.S16
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"