we need to explicitly include <sys/proc.h>
This commit is contained in:
parent
0151933d3c
commit
cec6157680
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-common_monitor_c,v 1.1.1.1 2008/01/19 23:55:19 todd Exp $
|
||||
$OpenBSD: patch-common_monitor_c,v 1.2 2010/04/30 14:39:13 naddy Exp $
|
||||
--- common/monitor.c.orig Tue Feb 6 22:02:00 2007
|
||||
+++ common/monitor.c Mon Nov 12 23:59:17 2007
|
||||
@@ -990,7 +990,8 @@ static void *map_vaddr(struct kqemu_stat
|
||||
+++ common/monitor.c Fri Apr 30 16:28:43 2010
|
||||
@@ -990,7 +990,8 @@ static void *map_vaddr(struct kqemu_state *s, unsigned
|
||||
e = &s->soft_tlb[(addr >> PAGE_SHIFT) & (SOFT_TLB_SIZE - 1)];
|
||||
redo:
|
||||
if (e->vaddr[(is_user << 1) + is_write] != (addr & PAGE_MASK)) {
|
||||
@ -11,7 +11,7 @@ $OpenBSD: patch-common_monitor_c,v 1.1.1.1 2008/01/19 23:55:19 todd Exp $
|
||||
goto redo;
|
||||
} else {
|
||||
taddr = e->addend + addr;
|
||||
@@ -1802,6 +1803,11 @@ static void update_dt_cache(struct kqemu
|
||||
@@ -1802,6 +1803,11 @@ static void update_dt_cache(struct kqemu_state *s, int
|
||||
page_end = dt_end;
|
||||
sel2 = sel + (page_end - dt_ptr);
|
||||
ptr = map_vaddr(s, dt_ptr, 0, 0);
|
||||
@ -23,7 +23,7 @@ $OpenBSD: patch-common_monitor_c,v 1.1.1.1 2008/01/19 23:55:19 todd Exp $
|
||||
ram_addr = ram_ptr_to_ram_addr(s, ptr);
|
||||
if (dt_changed ||
|
||||
s->dt_ram_addr[dt_type][pindex] != ram_addr ||
|
||||
@@ -1818,7 +1824,7 @@ static void update_dt_cache(struct kqemu
|
||||
@@ -1818,7 +1824,7 @@ static void update_dt_cache(struct kqemu_state *s, int
|
||||
sel_end = (s->dt_limit[dt_type] + 1) & ~7;
|
||||
if (sel < sel_end)
|
||||
reset_dt_entries(s, dt_type, sel, sel_end);
|
||||
|
11
emulators/kqemu/patches/patch-kqemu-openbsd-mp_c
Normal file
11
emulators/kqemu/patches/patch-kqemu-openbsd-mp_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-kqemu-openbsd-mp_c,v 1.1 2010/04/30 14:39:13 naddy Exp $
|
||||
--- kqemu-openbsd-mp.c.orig Fri Apr 30 16:30:47 2010
|
||||
+++ kqemu-openbsd-mp.c Fri Apr 30 16:31:00 2010
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sys/ioccom.h>
|
||||
#include <sys/lkm.h>
|
||||
#include <sys/malloc.h>
|
||||
+#include <sys/proc.h>
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/namei.h>
|
||||
#include <sys/vnode.h>
|
11
emulators/kqemu/patches/patch-kqemu-openbsd_c
Normal file
11
emulators/kqemu/patches/patch-kqemu-openbsd_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-kqemu-openbsd_c,v 1.1 2010/04/30 14:39:13 naddy Exp $
|
||||
--- kqemu-openbsd.c.orig Fri Apr 30 16:30:08 2010
|
||||
+++ kqemu-openbsd.c Fri Apr 30 16:30:30 2010
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <sys/ioccom.h>
|
||||
#include <sys/lkm.h>
|
||||
#include <sys/malloc.h>
|
||||
+#include <sys/proc.h>
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/namei.h>
|
||||
#include <sys/vnode.h>
|
Loading…
Reference in New Issue
Block a user