Protect uvm_physseg_set_avail_{start,end} by UVM_PHYSSEG_LEGACY.

All the ports other than acorn26 do not use them any longer.
Ok cherry
This commit is contained in:
rin 2016-12-29 12:58:38 +00:00
parent 653055d5bf
commit c7ed8c6fc4
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_physseg.c,v 1.5 2016/12/25 06:30:58 cherry Exp $ */
/* $NetBSD: uvm_physseg.c,v 1.6 2016/12/29 12:58:38 rin Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -1004,7 +1004,7 @@ uvm_physseg_get_avail_start(uvm_physseg_t upm)
return HANDLE_TO_PHYSSEG_NODE(upm)->avail_start;
}
#if defined(PMAP_STEAL_MEMORY)
#if defined(UVM_PHYSSEG_LEGACY)
void
uvm_physseg_set_avail_start(uvm_physseg_t upm, paddr_t avail_start)
{
@ -1033,7 +1033,7 @@ void uvm_physseg_set_avail_end(uvm_physseg_t upm, paddr_t avail_end)
ps->avail_end = avail_end;
}
#endif /* PMAP_STEAL_MEMORY */
#endif /* UVM_PHYSSEG_LEGACY */
paddr_t
uvm_physseg_get_avail_end(uvm_physseg_t upm)

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_physseg.h,v 1.6 2016/12/26 18:47:00 cherry Exp $ */
/* $NetBSD: uvm_physseg.h,v 1.7 2016/12/29 12:58:38 rin Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -135,14 +135,14 @@ uvm_physseg_t uvm_physseg_find(paddr_t, psize_t *);
bool uvm_physseg_plug(paddr_t, size_t, uvm_physseg_t *);
bool uvm_physseg_unplug(paddr_t, size_t);
#if defined(PMAP_STEAL_MEMORY)
#if defined(UVM_PHYSSEG_LEGACY)
/*
* XXX: Legacy: This needs to be upgraded to a full pa management
* layer.
*/
void uvm_physseg_set_avail_start(uvm_physseg_t, paddr_t);
void uvm_physseg_set_avail_end(uvm_physseg_t, paddr_t);
#endif /* PMAP_STEAL_MEMORY */
#endif /* UVM_PHYSSEG_LEGACY */
#endif /* _KERNEL */