Skip to contentSkip to conversation

Alpha - how to fill the PC

DISCUSSION Aneesh Kumar K.V 2 participants 2 messages Dec 16, 2001 – Dec 28, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to do process migration between nodes using alpha
architecture. For explaining what is happening I will take the process getting migrated from node1 to node2. I am using struct pt_regs for rebuilding the process on node2.I am getting the same value of struct pt_regs on node1 and on node2 ( I print is using dik_show_regs) Now I want to set the value of registers including the program counter with the value i got from node1. Right now I am doing ret_from_sys_call(&regs). But then i am getting a Oops . The Oops message contain all the register values same as that I got from node1 except pc and ra

Any idea where I went wrong ?

-aneesh

#1 lore raw
Quoted 1 line · Aneesh Kumar K.V

Right now I am doing ret_from_sys_call(&regs).

Err, ret_from_sys_call is not a function that can be called in any normal method. Supposing that you get there, the stack must be set up properly, and the stack is whence the register values are fetched.

r~