mv_machdep.c (228201) | mv_machdep.c (232295) |
---|---|
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 228201 2011-12-02 15:24:39Z jchandra $"); | 42__FBSDID("$FreeBSD: head/sys/arm/mv/mv_machdep.c 232295 2012-02-29 12:44:34Z cognet $"); |
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> --- 231 unchanged lines hidden (view full) --- 282 debugf("fill in phys_avail:\n"); 283 for (i = 0, j = 0; i < availmem_regions_sz; i++, j += 2) { 284 285 debugf(" region: 0x%08x - 0x%08x (0x%08x)\n", 286 availmem_regions[i].mr_start, 287 availmem_regions[i].mr_start + availmem_regions[i].mr_size, 288 availmem_regions[i].mr_size); 289 | 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> --- 231 unchanged lines hidden (view full) --- 282 debugf("fill in phys_avail:\n"); 283 for (i = 0, j = 0; i < availmem_regions_sz; i++, j += 2) { 284 285 debugf(" region: 0x%08x - 0x%08x (0x%08x)\n", 286 availmem_regions[i].mr_start, 287 availmem_regions[i].mr_start + availmem_regions[i].mr_size, 288 availmem_regions[i].mr_size); 289 |
290 phys_avail[j] = availmem_regions[i].mr_start; 291 phys_avail[j + 1] = availmem_regions[i].mr_start + 292 availmem_regions[i].mr_size; | 290 /* 291 * We should not map the page at PA 0x0000000, the VM can't 292 * handle it, as pmap_extract() == 0 means failure. 293 */ 294 if (availmem_regions[i].mr_start > 0 || 295 availmem_regions[i].mr_size > PAGE_SIZE) { 296 phys_avail[j] = availmem_regions[i].mr_start; 297 if (phys_avail[j] == 0) 298 phys_avail[j] += PAGE_SIZE; 299 phys_avail[j + 1] = availmem_regions[i].mr_start + 300 availmem_regions[i].mr_size; 301 } else 302 j -= 2; |
293 } 294 phys_avail[j] = 0; 295 phys_avail[j + 1] = 0; 296} 297 298void * 299initarm(void *mdp, void *unused __unused) 300{ --- 519 unchanged lines hidden --- | 303 } 304 phys_avail[j] = 0; 305 phys_avail[j + 1] = 0; 306} 307 308void * 309initarm(void *mdp, void *unused __unused) 310{ --- 519 unchanged lines hidden --- |