Hi......

On Sun, Sep 2, 2012 at 10:52 PM, Xin Tong <xerox.time.t...@gmail.com> wrote:
> Ok, i do not know this. but it seems tracking CR3 is no good. any ideas ?

from the Linux kernel source:
http://lxr.free-electrons.com/source/kernel/sched/core.c#L3456:

/*
2042  * context_switch - switch to the new MM and the new
2043  * thread's register state.
2044  */
2045 static inline void
2046 context_switch(struct rq *rq, struct task_struct *prev,
2047                struct task_struct *next)


i am not so good on arch detail...perhaps you have ideas what
"thread's register state" is?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

Reply via email to