Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/support.S
Show First 20 Lines • Show All 1,484 Lines • ▼ Show 20 Lines | 1: | ||||
movl %eax,%fs /* Beware, use wrmsr to set 64 bit base */ | movl %eax,%fs /* Beware, use wrmsr to set 64 bit base */ | ||||
movl %eax,%gs | movl %eax,%gs | ||||
movl %eax,%ss | movl %eax,%ss | ||||
/* reload code selector by turning return into intersegmental return */ | /* reload code selector by turning return into intersegmental return */ | ||||
popq %rax | popq %rax | ||||
pushq $KCSEL | pushq $KCSEL | ||||
pushq %rax | pushq %rax | ||||
MEXITCOUNT | |||||
lretq | lretq | ||||
END(lgdt) | END(lgdt) | ||||
/*****************************************************************************/ | /*****************************************************************************/ | ||||
/* setjump, longjump */ | /* setjump, longjump */ | ||||
/*****************************************************************************/ | /*****************************************************************************/ | ||||
ENTRY(setjmp) | ENTRY(setjmp) | ||||
▲ Show 20 Lines • Show All 473 Lines • Show Last 20 Lines |