21 lines
505 B
C
21 lines
505 B
C
#include "../syscall.h"
|
|
#include <stdint.h>
|
|
|
|
void userspace_puts(const char* s) {
|
|
char c;
|
|
while ((c = *s++)) {
|
|
syscall(SYS_putc, c);
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
const char* spell = "cra cra trif traf not sgnieflet\n";
|
|
const char* spell2 = "Pam pam pam pam parapapapapam\n";
|
|
const char* spell3 = "Zhopu podotri\n";
|
|
// userspace_puts(spell);
|
|
syscall(SYS_puts, (uintptr_t)spell);
|
|
syscall(SYS_puts, (uint32_t)spell2);
|
|
syscall(SYS_puts, (uint32_t)spell3);
|
|
return 0;
|
|
}
|