From owner-svn-soc-all@freebsd.org Thu Jul 23 18:08:11 2015 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AC069A9FC9 for ; Thu, 23 Jul 2015 18:08:11 +0000 (UTC) (envelope-from mihai@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7EABF1CFC for ; Thu, 23 Jul 2015 18:08:11 +0000 (UTC) (envelope-from mihai@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id t6NI8Bt1071607 for ; Thu, 23 Jul 2015 18:08:11 GMT (envelope-from mihai@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id t6NI8Awr070389 for svn-soc-all@FreeBSD.org; Thu, 23 Jul 2015 18:08:10 GMT (envelope-from mihai@FreeBSD.org) Date: Thu, 23 Jul 2015 18:08:10 GMT Message-Id: <201507231808.t6NI8Awr070389@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to mihai@FreeBSD.org using -f From: mihai@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r288703 - in soc2015/mihai/bhyve-on-arm-head/sys/arm: conf fvp_ve-cortex_a15x1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 18:08:11 -0000 Author: mihai Date: Thu Jul 23 18:08:09 2015 New Revision: 288703 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=288703 Log: soc2015: mihai: bhyve: sys: arm: conf: created special config for a GUEST which is using the bvmconsole Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/conf/FVP_VE_CORTEX_A15x1_GUEST soc2015/mihai/bhyve-on-arm-head/sys/arm/fvp_ve-cortex_a15x1/files.fvp_ve-cortex_a15x1_guest soc2015/mihai/bhyve-on-arm-head/sys/arm/fvp_ve-cortex_a15x1/fvp_ve-cortex_a15x1_machdep_guest.c Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/conf/FVP_VE_CORTEX_A15x1_GUEST ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/mihai/bhyve-on-arm-head/sys/arm/conf/FVP_VE_CORTEX_A15x1_GUEST Thu Jul 23 18:08:09 2015 (r288703) @@ -0,0 +1,76 @@ +# +# FVP_VE_CORTEX_A15x1 - custom configuration +# + +ident FVP_VE_CORTEX_A15x1 + +makeoption ARM_LITTLE_ENDIAN + +cpu CPU_CORTEXA +machine arm armv6 +makeoptions CONF_CFLAGS="-mcpu=cortex-a15" + +include "std.armv6" + +files "../fvp_ve-cortex_a15x1/files.fvp_ve-cortex_a15x1_guest" + +options KERNVIRTADDR=0xc0200000 +makeoptions KERNVIRTADDR=0xc0200000 +options KERNPHYSADDR=0xc0200000 +makeoptions KERNPHYSADDR=0xc0200000 +options PHYSADDR=0xc0000000 + +options HZ=100 +options SCHED_ULE # ULE scheduler +#options PLATFORM +#options SMP # Enable multiple cores + +nooptions FREEBSD_BOOT_LOADER + +# Debugging for use in -current +makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols +options BREAK_TO_DEBUGGER +options DEBUG +options EARLY_PRINTF +#options VERBOSE_SYSINIT # Enable verbose sysinit messages +options KDB # Enable kernel debugger support +# For minimum debugger support (stable branch) use: +options KDB_TRACE # Print a stack trace for a panic +# For full debugger support use this instead: +options DDB # Enable the kernel debugger +options INVARIANTS # Enable calls of extra sanity checking +options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS +#options WITNESS # Enable checks to detect deadlocks and cycles +#options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed +#options DIAGNOSTIC + +#options ROOTDEVNAME=\"ufs:/dev/da0\" +options MD_ROOT +options MD_ROOT_SIZE=12288 +makeoptions MFS_IMAGE=/root/soc2015/mihai/ramdisk/ramdisk.img +options ROOTDEVNAME=\"ffs:/dev/md0\" + +# Pseudo devices + +device loop +device ether +device random +device pty +device md +device bpf + +# Serial ports +device bvmconsole + +# GIC +device gic + + +# GPIO +device gpio + + +# Flattened Device Tree +options FDT # Configure using FDT/DTB data +options FDT_DTB_STATIC +makeoptions FDT_DTS_FILE=fvp_ve-cortex_a15x1.dts Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/fvp_ve-cortex_a15x1/files.fvp_ve-cortex_a15x1_guest ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/mihai/bhyve-on-arm-head/sys/arm/fvp_ve-cortex_a15x1/files.fvp_ve-cortex_a15x1_guest Thu Jul 23 18:08:09 2015 (r288703) @@ -0,0 +1,9 @@ +kern/kern_clocksource.c standard + +arm/arm/bus_space_base.c standard +arm/arm/bus_space_generic.c standard +arm/arm/bus_space_asm_generic.S standard + +arm/arm/generic_timer.c standard +arm/fvp_ve-cortex_a15x1/fvp_ve-cortex_a15x1_common.c standard +arm/fvp_ve-cortex_a15x1/fvp_ve-cortex_a15x1_machdep_guest.c standard Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/fvp_ve-cortex_a15x1/fvp_ve-cortex_a15x1_machdep_guest.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/mihai/bhyve-on-arm-head/sys/arm/fvp_ve-cortex_a15x1/fvp_ve-cortex_a15x1_machdep_guest.c Thu Jul 23 18:08:09 2015 (r288703) @@ -0,0 +1,73 @@ +#include "opt_ddb.h" +#include "opt_platform.h" + +#include + +#define _ARM32_BUS_DMA_PRIVATE +#include +#include +#include + +#include +#include + +#include +#include +#include +#include + +#include + +vm_offset_t +platform_lastaddr(void) +{ + + return (arm_devmap_lastaddr()); +} + +void +platform_probe_and_attach(void) +{ + +} + +void +platform_gpio_init(void) +{ + +} + +void +platform_late_init(void) +{ + +} + +int +platform_devmap_init(void) +{ + return (0); +} + + + +struct arm32_dma_range * +bus_dma_get_range(void) +{ + return (NULL); +} + +int +bus_dma_get_range_nb(void) +{ + + return (0); +} + +void +cpu_reset() +{ + printf("cpu_reset\n"); + while (1); +} +