Deleted Added
full compact
pmap.c (255028) pmap.c (255426)
1/*-
2 * Copyright (c) 1991 Regents of the University of California.
3 * All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
38 */
39
40#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991 Regents of the University of California.
3 * All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
38 */
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/sys/sparc64/sparc64/pmap.c 255028 2013-08-29 15:49:05Z alc $");
41__FBSDID("$FreeBSD: head/sys/sparc64/sparc64/pmap.c 255426 2013-09-09 18:11:59Z jhb $");
42
43/*
44 * Manages physical address maps.
45 *
46 * Since the information managed by this module is also stored by the
47 * logical address mapping module, this module may throw away valid virtual
48 * to physical mappings at almost any time. However, invalidations of
49 * mappings must be done as requested.

--- 731 unchanged lines hidden (view full) ---

781
782 for (i = 0; i < translations_size; i++) {
783 addr = translations[i].om_start;
784 size = translations[i].om_size;
785 if ((translations[i].om_tte & TD_V) == 0)
786 continue;
787 if (addr < VM_MIN_PROM_ADDRESS || addr > VM_MAX_PROM_ADDRESS)
788 continue;
42
43/*
44 * Manages physical address maps.
45 *
46 * Since the information managed by this module is also stored by the
47 * logical address mapping module, this module may throw away valid virtual
48 * to physical mappings at almost any time. However, invalidations of
49 * mappings must be done as requested.

--- 731 unchanged lines hidden (view full) ---

781
782 for (i = 0; i < translations_size; i++) {
783 addr = translations[i].om_start;
784 size = translations[i].om_size;
785 if ((translations[i].om_tte & TD_V) == 0)
786 continue;
787 if (addr < VM_MIN_PROM_ADDRESS || addr > VM_MAX_PROM_ADDRESS)
788 continue;
789 result = vm_map_find(kernel_map, NULL, 0, &addr, size,
789 result = vm_map_find(kernel_map, NULL, 0, &addr, size, 0,
790 VMFS_NO_SPACE, VM_PROT_ALL, VM_PROT_ALL, MAP_NOFAULT);
791 if (result != KERN_SUCCESS || addr != translations[i].om_start)
792 panic("pmap_init: vm_map_find");
793 }
794}
795
796/*
797 * Extract the physical page address associated with the given

--- 1482 unchanged lines hidden ---
790 VMFS_NO_SPACE, VM_PROT_ALL, VM_PROT_ALL, MAP_NOFAULT);
791 if (result != KERN_SUCCESS || addr != translations[i].om_start)
792 panic("pmap_init: vm_map_find");
793 }
794}
795
796/*
797 * Extract the physical page address associated with the given

--- 1482 unchanged lines hidden ---