aboutsummaryrefslogtreecommitdiff
path: root/src/lib/libkogata/syscall.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-14 11:07:31 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-14 11:07:31 +0100
commit630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f (patch)
treef8c1bfe9da8dc23a69d8982bfb2b4e19d517f820 /src/lib/libkogata/syscall.c
parent706c69d40fcc46e7d7f170dab932d3c7fcc7c34e (diff)
downloadkogata-630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f.tar.gz
kogata-630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f.zip
Change a bit of structure
Diffstat (limited to 'src/lib/libkogata/syscall.c')
-rw-r--r--src/lib/libkogata/syscall.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c
index dc7e648..342426b 100644
--- a/src/lib/libkogata/syscall.c
+++ b/src/lib/libkogata/syscall.c
@@ -4,12 +4,7 @@
#include <string.h>
void dbg_print(const char* str) {
-
- char buf[256];
- strncpy(buf, str, 256);
- buf[255] = 0;
-
- asm volatile("int $0x40"::"a"(SC_DBG_PRINT),"b"(buf));
+ asm volatile("int $0x40"::"a"(SC_DBG_PRINT),"b"(str),"c"(strlen(str)));
}
void yield() {