|Subject:||Réf. : does the linux kernel use k0, k1 regs?|
|From:||Florian DELIZY <firstname.lastname@example.org>|
|Date:||Mon, 16 Jan 2006 08:24:27 +0100|
k0, k1 registers are used in SAVE_ALL and RESTORE_ALL macros mainly, to save all registers on the kernel stack,
once all registered are properly saved, you can use them, and restore them after, that's why kernel interrupt code does not
uise k0,k1, and let them for critical interruption code (save/restore context)
Have a look in include/asm-mips/stackframe.h (grep is your friend)
-- Florian Delizy
i have to handle a NMI interrupt in bootloader(0xBFC00000),
and i want to return to linux after the NMI interrupt, i think other
regs maybe be useing by linux-kernel, i think the NMI handle only can
use K0, K1.
and i do not find the use of K0, K1 in linux-kernel interrupt or
so i think if the NMI interrupt a linux interrupt handle, there is
still no conflict.
i am not sure my thinking is right, anyone can give some hints?
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||Arcload Ext2FS patch, Shuveb Hussain|
|Next by Date:||Can I use this kind of performance counters to implement oProfile?, colin|
|Previous by Thread:||Arcload Ext2FS patch, Shuveb Hussain|
|Next by Thread:||Re: Réf. : does the linux kernel use k0, k1 regs?, zhuzhenhua|
|Indexes:||[Date] [Thread] [Top] [All Lists]|