caos-with-snake/user/badputs.c

10 lines
218 B
C
Raw Normal View History

2025-01-21 00:29:31 +04:00
#include "../syscall.h"
#include <stdint.h>
int main() {
const char *message = "I hope the kernel does not panic...\n";
2025-01-21 00:29:31 +04:00
syscall(SYS_puts, (uint32_t)message);
syscall(SYS_puts, 0x1bad1dea);
return 0;
}