diff options
author | marcel <marcel@FreeBSD.org> | 2003-07-31 01:05:34 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-07-31 01:05:34 +0000 |
commit | 12712482f7eaaa20ff60842f40eccbddc3a084c1 (patch) | |
tree | 0bd29a17031884b8a116589866af6da2cfaa84b8 /sys | |
parent | 176657958f74c39e03c298b3a92ee1148a2f73d9 (diff) | |
download | FreeBSD-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.c | 3 |
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; } |