vm_offset_t -> vaddr_t

This commit is contained in:
tsutsui 2001-09-05 13:31:36 +00:00
parent a02361c8d9
commit fb91456ba6
3 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pte.h,v 1.16 1998/02/05 04:56:59 gwr Exp $ */ /* $NetBSD: pte.h,v 1.17 2001/09/05 13:31:36 tsutsui Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -44,8 +44,8 @@
#endif /* SUN3X */ #endif /* SUN3X */
#if defined(_KERNEL) || defined(_STANDALONE) #if defined(_KERNEL) || defined(_STANDALONE)
u_int get_pte __P((vm_offset_t va)); u_int get_pte __P((vaddr_t va));
void set_pte __P((vm_offset_t va, u_int pte)); void set_pte __P((vaddr_t va, u_int pte));
#endif /* _KERNEL */ #endif /* _KERNEL */
#endif /* _MACHINE_PTE_H */ #endif /* _MACHINE_PTE_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sun3.c,v 1.3 1999/03/04 07:56:41 gwr Exp $ */ /* $NetBSD: sun3.c,v 1.4 2001/09/05 13:34:54 tsutsui Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -227,7 +227,7 @@ dvma3_free(char *dvma, int len)
u_int u_int
get_pte(va) get_pte(va)
vm_offset_t va; vaddr_t va;
{ {
va = CONTROL_ADDR_BUILD(PGMAP_BASE, va); va = CONTROL_ADDR_BUILD(PGMAP_BASE, va);
return (get_control_word(va)); return (get_control_word(va));
@ -235,7 +235,7 @@ get_pte(va)
void void
set_pte(va, pte) set_pte(va, pte)
vm_offset_t va; vaddr_t va;
u_int pte; u_int pte;
{ {
va = CONTROL_ADDR_BUILD(PGMAP_BASE, va); va = CONTROL_ADDR_BUILD(PGMAP_BASE, va);
@ -244,7 +244,7 @@ set_pte(va, pte)
int int
get_segmap(va) get_segmap(va)
vm_offset_t va; vaddr_t va;
{ {
va = CONTROL_ADDR_BUILD(SEGMAP_BASE, va); va = CONTROL_ADDR_BUILD(SEGMAP_BASE, va);
return (get_control_byte(va)); return (get_control_byte(va));
@ -252,7 +252,7 @@ get_segmap(va)
void void
set_segmap(va, sme) set_segmap(va, sme)
vm_offset_t va; vaddr_t va;
int sme; int sme;
{ {
va = CONTROL_ADDR_BUILD(SEGMAP_BASE, va); va = CONTROL_ADDR_BUILD(SEGMAP_BASE, va);
@ -266,7 +266,7 @@ set_segmap(va, sme)
void void
sun3_getidprom(u_char *dst) sun3_getidprom(u_char *dst)
{ {
vm_offset_t src; /* control space address */ vaddr_t src; /* control space address */
int len, x; int len, x;
src = IDPROM_BASE; src = IDPROM_BASE;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sun3x.c,v 1.3 1998/06/29 20:06:34 gwr Exp $ */ /* $NetBSD: sun3x.c,v 1.4 2001/09/05 13:34:54 tsutsui Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -223,7 +223,7 @@ dvma3x_free(char *dvma, int len)
u_int u_int
get_pte(va) get_pte(va)
vm_offset_t va; /* virt. address */ vaddr_t va; /* virt. address */
{ {
u_int pn; u_int pn;
mmu_short_pte_t *tbl; mmu_short_pte_t *tbl;
@ -248,7 +248,7 @@ get_pte(va)
void void
set_pte(va, pa) set_pte(va, pa)
vm_offset_t va; /* virt. address */ vvaddr_t va; /* virt. address */
u_int pa; /* phys. address */ u_int pa; /* phys. address */
{ {
u_int pn; u_int pn;