2020-07-20 09:51:30 -05:00
|
|
|
#include <sys/syscalls.h>
|
|
|
|
|
|
|
|
#define QUAUX(X) #X
|
|
|
|
#define QU(X) QUAUX(X)
|
|
|
|
|
2019-08-25 13:52:56 -05:00
|
|
|
void serial_print(char* str) {
|
|
|
|
asm volatile(" \
|
2020-07-20 09:51:30 -05:00
|
|
|
mov $" QU(SYSCALL_SERIAL_PRINT) ", %%eax; \
|
2019-08-25 13:52:56 -05:00
|
|
|
int $80; \
|
|
|
|
"::"b"(str));
|
|
|
|
}
|