updates to make 64bit compiling

This commit is contained in:
2025-04-15 12:26:32 +02:00
parent 071d9cc8eb
commit 9909769c0a
6 changed files with 115 additions and 10 deletions

View File

@ -15,11 +15,12 @@ int factorial(int i) {
}
return result;
}
extern volatile uintptr_t tohost;
void write_tohost(char* string) {
volatile uint64_t payload[4] = {64, 0, (uintptr_t)string,
(strlen(string) + 1)};
tohost = (uintptr_t)payload;
void write_tohost(char *string) {
volatile uint64_t payload[4] = {64, 0, (uintptr_t)string,
(strlen(string) + 1)};
tohost = (uintptr_t)payload;
}
int main() {