summaryrefslogtreecommitdiffstats
path: root/src/c_example.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_example.S')
-rw-r--r--src/c_example.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/c_example.S b/src/c_example.S
index 3de431b..17b2f34 100644
--- a/src/c_example.S
+++ b/src/c_example.S
@@ -58,6 +58,8 @@ write_begin:
movq $len_begin, %rdx
movb $0x4, %al /* SYS_write */
syscall
+
+cpu:
callq c_cpu
write_end:
@@ -75,7 +77,7 @@ end:
retq
.data
- str_begin: .ascii "Content-type: text/html\n\n<html>\n\t<head>\n\t\t<title>Title</title>\n\t</head>\n\t<body>\n\t\t<h1>asm-cgi-example</h1>\n\t\t<p>\n\t\t\tThis page was generated by a small assembly program. It will run some shell commands for you. It's pointless in essence but I am trying to prove a point.\n\t\t</p>\n\t\t<h2>Some CPU infos</h2>\n\t\t<p>\n\t\t\tLet's fetch some infos about this server's CPU.\n\t\t\n\t\t<pre>\n"
+ str_begin: .ascii "Content-type: text/html\n\n<html>\n\t<head>\n\t\t<title>Title</title>\n\t</head>\n\t<body>\n\t\t<h1>asm-cgi-example</h1>\n\t\t<p>\n\t\t\tThis page was generated by a small assembly program. It will run some shell commands for you. It's pointless in essence but I am trying to prove a point.\n\t\t</p>\n\t\t<h2>Some CPU infos</h2>\n\t\t<p>\n\t\t\tLet's fetch some infos about this server's CPU.\n\t\t</p>\n"
len_begin = . - str_begin
- str_end: .ascii "\t\t</pre></p>\n\t</body>\n</html>\n"
+ str_end: .ascii "\t</body>\n</html>\n"
len_end = . - str_end