CVSROOT: /home/pub/cvs
Module name: linux
Changes by: kanoj@oss.sgi.com 00/04/25 09:04:51
Modified files:
include/asm-mips64: current.h stackframe.h
arch/mips64/kernel: head.S r4k_switch.S
Log message:
We use the ST0_CU0 bit to determine whether we are coming into
kernel mode for the first time from user mode (on intr/exception/
syscall etc). If so, we need to set the sp to point to the kernel
stack. On UP kernels, the kernel stack pointer is stored in
the global variable "kernelsp". For SMP kernel, the physical
address of the current task structure is stuffed into the
watchlo/watchhi registers, so on first entry into the kernel,
we need to munge this value properly to setup the sp register.
|