summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-07-31 01:05:34 +0000
committermarcel <marcel@FreeBSD.org>2003-07-31 01:05:34 +0000
commit12712482f7eaaa20ff60842f40eccbddc3a084c1 (patch)
tree0bd29a17031884b8a116589866af6da2cfaa84b8 /sys
parent176657958f74c39e03c298b3a92ee1148a2f73d9 (diff)
downloadFreeBSD-src-12712482f7eaaa20ff60842f40eccbddc3a084c1.zip
FreeBSD-src-12712482f7eaaa20ff60842f40eccbddc3a084c1.tar.gz
In cpu_thread_setup(), set md_pcbpaddr to the physical address of
the pcb. We use the physical address for context switching. While here, fix a nearby style(9) bug.
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/vm_machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c
index b0ed146..cd0a1b7 100644
--- a/sys/alpha/alpha/vm_machdep.c
+++ b/sys/alpha/alpha/vm_machdep.c
@@ -260,7 +260,8 @@ cpu_thread_setup(struct thread *td)
{
td->td_pcb =
- (struct pcb *)(td->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
+ (struct pcb *)(td->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
+ td->td_md.md_pcbpaddr = (void*)vtophys((vm_offset_t)td->td_pcb);
td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb) - 1;
}
OpenPOWER on IntegriCloud