repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
arch/m68k-all/exec: Add Exec/Supervisor
[AROS.git]
/
arch
/
x86_64-pc
/
exec
/
x86_64.h
blob
e549b49f793a4116b9eee483f664e17f8ee8e7a8
1
#ifndef X86_64_H_
2
#define X86_64_H_
3
4
#define IN_USER_MODE \
5
({ short __val; \
6
__asm__ __volatile__(
"mov %%cs,%0"
:
"=r"
(__val)); \
7
(__val & 0x03); })
8
9
#endif
/*X86_64_H_*/