mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 15:39:36 +00:00
15 lines
346 B
C
15 lines
346 B
C
/* This Hello World simply print out "Hello World" */
|
|
|
|
#include "pal.h"
|
|
#include "pal_debug.h"
|
|
|
|
void* private = &private;
|
|
|
|
int main(int argc, char** argv, char** envp) {
|
|
DkSegmentRegister(PAL_SEGMENT_FS, private);
|
|
void* ptr;
|
|
__asm__ volatile("mov %%fs:0, %0" : "=r"(ptr)::"memory");
|
|
pal_printf("TLS = %p\n", ptr);
|
|
return 0;
|
|
}
|