mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Get rid if pcb_uva, like we did on hppa a while ago since it creates evil
non-equivalent aliases.
This commit is contained in:
parent
ff2d14b1f1
commit
4da97e7394
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: genassym.cf,v 1.8 2011/04/13 18:45:33 kettenis Exp $
|
||||
# $OpenBSD: genassym.cf,v 1.9 2011/04/14 19:34:55 kettenis Exp $
|
||||
|
||||
#
|
||||
# Copyright (c) 1982, 1990, 1993
|
||||
@ -123,7 +123,6 @@ member u_pcb
|
||||
struct pcb
|
||||
member pcb_fpregs
|
||||
member pcb_onfault
|
||||
member pcb_uva
|
||||
member pcb_ksp
|
||||
member pcb_space
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: locore.S,v 1.21 2011/04/14 14:06:06 jsing Exp $ */
|
||||
/* $OpenBSD: locore.S,v 1.22 2011/04/14 19:34:55 kettenis Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 Michael Shalayeff
|
||||
@ -204,7 +204,6 @@ $start_zero_tf
|
||||
mtctl %arg3, %cr30
|
||||
std %r0, U_PCB+PCB_ONFAULT(%arg3)
|
||||
std %r0, U_PCB+PCB_SPACE(%arg3)
|
||||
std %arg3, U_PCB+PCB_UVA(%arg3)
|
||||
|
||||
ldil L%proc0, %r1
|
||||
ldo R%proc0(%r1), %r1
|
||||
@ -796,16 +795,16 @@ ENTRY(TLABEL(all),0)
|
||||
depi 0, PSL_I_POS, 1, %r9 /* Leave interrupts disabled. */
|
||||
mtctl %r9, %ipsw
|
||||
|
||||
mfctl %cr30, %r9
|
||||
|
||||
mfsp %sr0, %r8
|
||||
extrd,u,*<> %r24, 63, 2, %r0 /* still pcoq head */
|
||||
cmpb,*= %r0, %r8, TLABEL(all_kern)
|
||||
copy %sp, %r17
|
||||
|
||||
mfctl %cr24, %r9
|
||||
ldd CI_CURPROC(%r9), %r9
|
||||
depdi 1, T_USER_POS, 1, %r1
|
||||
depdi 1, TFF_LAST_POS, 1, %r1
|
||||
ldd U_PCB+PCB_UVA(%r9), %sp
|
||||
ldd P_ADDR(%r9), %sp
|
||||
ldo PAGE_SIZE-TRAPFRAME_SIZEOF(%sp), %sp
|
||||
|
||||
TLABEL(all_kern)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: pmap.c,v 1.14 2011/04/14 13:24:04 jsing Exp $ */
|
||||
/* $OpenBSD: pmap.c,v 1.15 2011/04/14 19:34:55 kettenis Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 Michael Shalayeff
|
||||
@ -1063,7 +1063,6 @@ pmap_activate(struct proc *p)
|
||||
struct pcb *pcb = &p->p_addr->u_pcb;
|
||||
|
||||
pcb->pcb_space = pmap->pm_space;
|
||||
pcb->pcb_uva = (vaddr_t)p->p_addr;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: vm_machdep.c,v 1.10 2009/03/26 17:24:33 oga Exp $ */
|
||||
/* $OpenBSD: vm_machdep.c,v 1.11 2011/04/14 19:34:55 kettenis Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 Michael Shalayeff
|
||||
@ -112,7 +112,6 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
|
||||
bcopy(&p1->p_addr->u_pcb, pcbp, sizeof(*pcbp));
|
||||
/* space is cached for the copy{in,out}'s pleasure */
|
||||
pcbp->pcb_space = p2->p_vmspace->vm_map.pmap->pm_space;
|
||||
pcbp->pcb_uva = (vaddr_t)p2->p_addr;
|
||||
/* reset any of the pending FPU exceptions from parent */
|
||||
pcbp->pcb_fpregs[0] = HPPA_FPU_FORK(pcbp->pcb_fpregs[0]);
|
||||
pcbp->pcb_fpregs[1] = 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: pcb.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
|
||||
/* $OpenBSD: pcb.h,v 1.2 2011/04/14 19:34:55 kettenis Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 Michael Shalayeff
|
||||
@ -25,7 +25,6 @@
|
||||
struct pcb {
|
||||
u_int64_t pcb_fpregs[HPPA_NFPREGS+1]; /* not in the trapframe */
|
||||
u_int64_t pcb_onfault; /* SW copy fault handler */
|
||||
vaddr_t pcb_uva; /* KVA for U-area */
|
||||
u_int64_t pcb_ksp; /* kernel sp for ctxsw */
|
||||
pa_space_t pcb_space; /* copy pmap_space, for asm's sake */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user