Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55895
b: refs/heads/master
c: 2ea5bc5
h: refs/heads/master
i:
  55893: 110f9d6
  55891: 9c50ea3
  55887: e0d4949
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 11, 2007
1 parent b7c4f52 commit 9ee3c5a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1a79c400a86f2f6a6735480e31f6ee159e76fa2
refs/heads/master: 2ea5bc5e5bb51492f189bba44045e0de7decf4a0
11 changes: 0 additions & 11 deletions trunk/arch/um/kernel/init_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,3 @@ void unprotect_stack(unsigned long stack)
{
os_protect_memory((void *) stack, THREAD_SIZE, 1, 1, 0);
}

/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
* adjust the settings for this buffer only. This must remain at the end
* of the file.
* ---------------------------------------------------------------------------
* Local variables:
* c-file-style: "linux"
* End:
*/
4 changes: 2 additions & 2 deletions trunk/arch/um/kernel/irq.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
* Licensed under the GPL
* Derived (i.e. mostly copied) from arch/i386/kernel/irq.c:
Expand Down Expand Up @@ -53,7 +53,7 @@ int show_interrupts(struct seq_file *p, void *v)
if (i < NR_IRQS) {
spin_lock_irqsave(&irq_desc[i].lock, flags);
action = irq_desc[i].action;
if (!action)
if (!action)
goto skip;
seq_printf(p, "%3d: ",i);
#ifndef CONFIG_SMP
Expand Down
10 changes: 7 additions & 3 deletions trunk/arch/um/os-Linux/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,19 @@ void sig_handler(int sig, struct sigcontext *sc)

static void real_alarm_handler(int sig, struct sigcontext *sc)
{
union uml_pt_regs regs;

if(sig == SIGALRM)
switch_timers(0);

CHOOSE_MODE_PROC(sig_handler_common_tt, sig_handler_common_skas,
sig, sc);
if(sc != NULL)
copy_sc(&regs, sc);
regs.skas.is_user = 0;
unblock_signals();
timer_handler(sig, &regs);

if(sig == SIGALRM)
switch_timers(1);

}

void alarm_handler(int sig, struct sigcontext *sc)
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/um/os-Linux/skas/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,17 @@ int start_userspace(unsigned long stub_stack)
void userspace(union uml_pt_regs *regs)
{
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){
restore_registers(pid, regs);

/* Now we set local_using_sysemu to be used for one loop */
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);
if(err)
Expand Down

0 comments on commit 9ee3c5a

Please sign in to comment.