summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/pc98/i386/machdep.c1
-rw-r--r--sys/pc98/pc98/machdep.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index da93a65f6d62..a9ad6dd34c1c 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -2076,6 +2076,7 @@ init386(first)
pcpu_init(pc, 0, sizeof(struct pcpu));
PCPU_SET(prvspace, pc);
PCPU_SET(curthread, &thread0);
+ PCPU_SET(curpcb, thread0.td_pcb);
/*
* Initialize mutexes.
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index da93a65f6d62..a9ad6dd34c1c 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -2076,6 +2076,7 @@ init386(first)
pcpu_init(pc, 0, sizeof(struct pcpu));
PCPU_SET(prvspace, pc);
PCPU_SET(curthread, &thread0);
+ PCPU_SET(curpcb, thread0.td_pcb);
/*
* Initialize mutexes.