|
@@ -288,7 +288,8 @@ int start_userspace(unsigned long stub_stack)
|
|
void userspace(union uml_pt_regs *regs)
|
|
void userspace(union uml_pt_regs *regs)
|
|
{
|
|
{
|
|
int err, status, op, pid = userspace_pid[0];
|
|
int err, status, op, pid = userspace_pid[0];
|
|
- int local_using_sysemu; /*To prevent races if using_sysemu changes under us.*/
|
|
|
|
|
|
+ /* To prevent races if using_sysemu changes under us.*/
|
|
|
|
+ int local_using_sysemu;
|
|
|
|
|
|
while(1){
|
|
while(1){
|
|
restore_registers(pid, regs);
|
|
restore_registers(pid, regs);
|
|
@@ -296,7 +297,8 @@ void userspace(union uml_pt_regs *regs)
|
|
/* Now we set local_using_sysemu to be used for one loop */
|
|
/* Now we set local_using_sysemu to be used for one loop */
|
|
local_using_sysemu = get_using_sysemu();
|
|
local_using_sysemu = get_using_sysemu();
|
|
|
|
|
|
- op = SELECT_PTRACE_OPERATION(local_using_sysemu, singlestepping(NULL));
|
|
|
|
|
|
+ op = SELECT_PTRACE_OPERATION(local_using_sysemu,
|
|
|
|
+ singlestepping(NULL));
|
|
|
|
|
|
err = ptrace(op, pid, 0, 0);
|
|
err = ptrace(op, pid, 0, 0);
|
|
if(err)
|
|
if(err)
|