exynos5_machdep.c (252391) | exynos5_machdep.c (254495) |
---|---|
1/*- 2 * Copyright (c) 2013 Ruslan Bukin <br@bsdpad.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include "opt_ddb.h" 28#include "opt_platform.h" 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2013 Ruslan Bukin <br@bsdpad.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include "opt_ddb.h" 28#include "opt_platform.h" 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/arm/samsung/exynos/exynos5_machdep.c 252391 2013-06-29 23:39:05Z ray $"); | 31__FBSDID("$FreeBSD: head/sys/arm/samsung/exynos/exynos5_machdep.c 254495 2013-08-18 18:08:12Z cognet $"); |
32 33#define _ARM32_BUS_DMA_PRIVATE 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/bus.h> 37 38#include <vm/vm.h> 39#include <vm/pmap.h> 40 41#include <machine/bus.h> 42#include <machine/frame.h> /* For trapframe_t, used in <machine/machdep.h> */ 43#include <machine/machdep.h> 44#include <machine/pmap.h> 45 46#include <dev/fdt/fdt_common.h> 47 | 32 33#define _ARM32_BUS_DMA_PRIVATE 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/bus.h> 37 38#include <vm/vm.h> 39#include <vm/pmap.h> 40 41#include <machine/bus.h> 42#include <machine/frame.h> /* For trapframe_t, used in <machine/machdep.h> */ 43#include <machine/machdep.h> 44#include <machine/pmap.h> 45 46#include <dev/fdt/fdt_common.h> 47 |
48#define DEVMAP_BOOTSTRAP_MAP_START 0xE0000000 | 48#define DEVMAP_BOOTSTRAP_MAP_START 0xF0000000 |
49 50extern int unmapped_buf_allowed; 51 52vm_offset_t 53initarm_lastaddr(void) 54{ 55 56 return (DEVMAP_BOOTSTRAP_MAP_START - ARM_NOCACHE_KVA_SIZE); --- 21 unchanged lines hidden (view full) --- 78 * Construct pmap_devmap[] with DT-derived config data. 79 */ 80int 81platform_devmap_init(void) 82{ 83 int i; 84 85 i = 0; | 49 50extern int unmapped_buf_allowed; 51 52vm_offset_t 53initarm_lastaddr(void) 54{ 55 56 return (DEVMAP_BOOTSTRAP_MAP_START - ARM_NOCACHE_KVA_SIZE); --- 21 unchanged lines hidden (view full) --- 78 * Construct pmap_devmap[] with DT-derived config data. 79 */ 80int 81platform_devmap_init(void) 82{ 83 int i; 84 85 i = 0; |
86 fdt_devmap[i].pd_va = 0xe2C00000; | 86 fdt_devmap[i].pd_va = 0xf2C00000; |
87 fdt_devmap[i].pd_pa = 0x12C00000; 88 fdt_devmap[i].pd_size = 0x100000; 89 fdt_devmap[i].pd_prot = VM_PROT_READ | VM_PROT_WRITE; 90 fdt_devmap[i].pd_cache = PTE_NOCACHE; 91 i++; 92 93 pmap_devmap_bootstrap_table = &fdt_devmap[0]; 94 return (0); --- 15 unchanged lines hidden --- | 87 fdt_devmap[i].pd_pa = 0x12C00000; 88 fdt_devmap[i].pd_size = 0x100000; 89 fdt_devmap[i].pd_prot = VM_PROT_READ | VM_PROT_WRITE; 90 fdt_devmap[i].pd_cache = PTE_NOCACHE; 91 i++; 92 93 pmap_devmap_bootstrap_table = &fdt_devmap[0]; 94 return (0); --- 15 unchanged lines hidden --- |