Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1647
b: refs/heads/master
c: 8e21683
h: refs/heads/master
i:
  1645: 43c696d
  1643: 936f10c
  1639: ab6b62d
  1631: ebd34a5
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed May 28, 2005
1 parent 31a6764 commit 1550b49
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 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: f767b02f35a3db5c1b1c6454992c070510cef07f
refs/heads/master: 8e21683bb458c73c6fe87844202a64eac730995e
8 changes: 1 addition & 7 deletions trunk/arch/um/kernel/tt/process_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ void *switch_to_tt(void *prev, void *next, void *last)
unsigned long flags;
int err, vtalrm, alrm, prof, cpu;
char c;
/* jailing and SMP are incompatible, so this doesn't need to be
* made per-cpu
*/
static int reading;

from = prev;
to = next;
Expand All @@ -59,13 +55,11 @@ void *switch_to_tt(void *prev, void *next, void *last)
c = 0;
set_current(to);

reading = 0;
err = os_write_file(to->thread.mode.tt.switch_pipe[1], &c, sizeof(c));
if(err != sizeof(c))
panic("write of switch_pipe failed, err = %d", -err);

reading = 1;
if(from->thread.mode.tt.switch_pipe[0] == -1)
if(from->thread.mode.tt.switch_pipe[0] == -1)
os_kill_process(os_getpid(), 0);

err = os_read_file(from->thread.mode.tt.switch_pipe[0], &c, sizeof(c));
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/um/kernel/um_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ struct seq_operations cpuinfo_op = {
.show = show_cpuinfo,
};

pte_t * __bad_pagetable(void)
{
panic("Someone should implement __bad_pagetable");
return(NULL);
}

/* Set in linux_main */
unsigned long host_task_size;
unsigned long task_size;
Expand Down
8 changes: 0 additions & 8 deletions trunk/include/asm-um/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,9 @@ extern unsigned long end_iomem;
extern unsigned long pg0[1024];

/*
* BAD_PAGETABLE is used when we need a bogus page-table, while
* BAD_PAGE is used for a bogus page.
*
* ZERO_PAGE is a global shared page that is always zero: used
* for zero-mapped memory areas etc..
*/
extern pte_t __bad_page(void);
extern pte_t * __bad_pagetable(void);

#define BAD_PAGETABLE __bad_pagetable()
#define BAD_PAGE __bad_page()

#define ZERO_PAGE(vaddr) virt_to_page(empty_zero_page)

Expand Down

0 comments on commit 1550b49

Please sign in to comment.