mv_machdep.c (236828) | mv_machdep.c (236990) |
---|---|
1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * 35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45 36 */ 37 38#include "opt_ddb.h" 39#include "opt_platform.h" 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * 35 * from: FreeBSD: //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c, rev 45 36 */ 37 38#include "opt_ddb.h" 39#include "opt_platform.h" 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/sys/arm/mv/mv_machdep.c 236828 2012-06-10 01:13:04Z andrew $"); | 42__FBSDID("$FreeBSD: head/sys/arm/mv/mv_machdep.c 236990 2012-06-13 04:59:00Z imp $"); |
43 44#define _ARM32_BUS_DMA_PRIVATE 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> 48#include <sys/signalvar.h> 49#include <sys/imgact.h> 50#include <sys/kernel.h> --- 229 unchanged lines hidden (view full) --- 280 debugf("fill in phys_avail:\n"); 281 for (i = 0, j = 0; i < availmem_regions_sz; i++, j += 2) { 282 283 debugf(" region: 0x%08x - 0x%08x (0x%08x)\n", 284 availmem_regions[i].mr_start, 285 availmem_regions[i].mr_start + availmem_regions[i].mr_size, 286 availmem_regions[i].mr_size); 287 | 43 44#define _ARM32_BUS_DMA_PRIVATE 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/sysproto.h> 48#include <sys/signalvar.h> 49#include <sys/imgact.h> 50#include <sys/kernel.h> --- 229 unchanged lines hidden (view full) --- 280 debugf("fill in phys_avail:\n"); 281 for (i = 0, j = 0; i < availmem_regions_sz; i++, j += 2) { 282 283 debugf(" region: 0x%08x - 0x%08x (0x%08x)\n", 284 availmem_regions[i].mr_start, 285 availmem_regions[i].mr_start + availmem_regions[i].mr_size, 286 availmem_regions[i].mr_size); 287 |
288 /* | 288 /* |
289 * We should not map the page at PA 0x0000000, the VM can't 290 * handle it, as pmap_extract() == 0 means failure. 291 */ 292 if (availmem_regions[i].mr_start > 0 || 293 availmem_regions[i].mr_size > PAGE_SIZE) { 294 phys_avail[j] = availmem_regions[i].mr_start; 295 if (phys_avail[j] == 0) 296 phys_avail[j] += PAGE_SIZE; --- 559 unchanged lines hidden --- | 289 * We should not map the page at PA 0x0000000, the VM can't 290 * handle it, as pmap_extract() == 0 means failure. 291 */ 292 if (availmem_regions[i].mr_start > 0 || 293 availmem_regions[i].mr_size > PAGE_SIZE) { 294 phys_avail[j] = availmem_regions[i].mr_start; 295 if (phys_avail[j] == 0) 296 phys_avail[j] += PAGE_SIZE; --- 559 unchanged lines hidden --- |