<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px"
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Arial size=2>Hello </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am trying to find the cpuid when the functions
that handle return from context switch and interrupts are called, based on the
cpu the return code is executing on, I want to take some specific actions.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have been trying to use the following code
segments :</FONT></DIV>
<DIV><FONT face=Arial size=2>
LOAD_REG_IMMEDIATE(r13, paca) /* Get base vaddr of paca array
*/<BR> lhz
r6,PACAHWCPUID(r13) /* Load HW procid from
paca
*/<BR> cmpwi
0,r6,7
/* Compare to our
id
*/<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My kernel is 2.6.16.21</FONT></DIV>
<DIV><FONT face=Arial size=2>and I am inserting the above code segments in the
file entry_64.S in the following functions: </FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>_switch</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>return from system calls, and
</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>_ret_from_except</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>I can give line #s and the modified file
itself. </FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>The problem is my kernel does not boot and
halts at the point where it reads the command line boot parameters. Any help
would be appreciated . </FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Thanks, </FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>Mitesh </FONT><FONT></DIV></FONT></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>