projects
/
akaros.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
user/vmm: add and use a load_elf function
[akaros.git]
/
tests
/
old
/
tlstest.c
1
#include <assert.h>
2
#include <stdio.h>
3
4
#define BAR0 0xdeadbeef
5
volatile __thread int foo;
6
volatile __thread int bar = BAR0;
7
8
int main()
9
{
10
printf("&foo = %p, &bar = %p\n",&foo,&bar);
11
assert(bar == BAR0);
12
bar = 0xcafebabe;
13
printf("bar = %p\n",bar);
14
return 0;
15
}