SMAP AMD64: added stac() and clac() to cpufunc.h

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: added CR4_SMAP to sys/x86/include/specialreg.h

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: updated PSL_AC's comment in sys/x86/include/psl.h

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: disable SMAP when running in hypervisor (like SMEP)

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: postpone enabling of SMAP, same like in SMEP case

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: added related trap handler

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: enable SMAP at boot time

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: clear SMAP state in PUSH_FRAME asmacro

PUSH_FRAME used in function are in sys/amd64/amd64/apic_vector.S
These function called on external interrupt.

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: clear SMAP state on exceptions

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
AMD64 SMAP: clear SMAP state on exceptions in ia32 case

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: trim whitespaces in amd64/support.S

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: added stac and clac to funtions which live in support.S and interacted with user-space

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: clear SMAP state in NMI handler, as soon as possible

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP i386: added stac and clac to i386/i386/db_disasm.c

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP i386: added related trap handler

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP i386: updated trap handler

Panic when illegally access user-space memory from kernel.
There are mostly two origin of this problem:
 * wrong API usage
 * malicious code
Both of them are not acceptable, we _must_ panic.

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: updated trap handler

Panic when illegally access user-space memory from kernel.
There are mostly two origin of this problem:
 * wrong API usage
 * malicious code
Both of them are not acceptable, we _must_ panic.

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP i386: clear SMAP state on exception

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP i386: identify SMAP on boot

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
SMAP AMD64: typo fix in amd64/amd64/trap.c

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>