Context::fill_user_state()
{}
-PUBLIC inline
-Utcb *
-Context::access_utcb() const
-{ return utcb(); }
-
-PUBLIC inline
-Vcpu_state *
-Context::access_vcpu(bool = false) const
-{ return vcpu_state(); }
-
/** Thread context switchin. Called on every re-activation of a thread
(switch_exec()). This method is public only because it is called from
from assembly code in switch_cpu().
// load new segment selectors
load_segments();
-
- // update the global UTCB pointer to make the thread find its UTCB
- // using gs:[0]
- Mem_layout::user_utcb_ptr(current_cpu()) = local_id();
}
//---------------------------------------------------------------------------
_fs = Cpu::get_fs();
_gs = Cpu::get_gs();
}
-
-
-//---------------------------------------------------------------------------
-IMPLEMENTATION [amd64]:
-
-PROTECTED inline
-void
-Context::load_segments()
-{}
-
-PROTECTED inline
-void
-Context::store_segments()
-{}
-
-PROTECTED inline
-void
-Context::switch_gdt_user_entries(Context *)
-{}