operating system - OS routine on an interrupt -


i'm reading on how mode switch performed in process image , i'm confused on why process image has kernel stack , not user stack? done when interrupt has occurred. doesn't user stack , kernel stack same things?

it's security. process has 1 stack each processor mode. there either system-wide or process interrupt stack additional kernel mode stack.

the kernel stack restricted kernel mode access. prevents user mode code mucking kernel stack case bad things happen in kernel mode (e.g., changing return address procedure).


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -