From owner-svn-soc-all@FreeBSD.ORG Mon Jun 15 12:09:51 2015 Return-Path: Delivered-To: svn-soc-all@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90B22D05 for ; Mon, 15 Jun 2015 12:09:51 +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 7E831D0D for ; Mon, 15 Jun 2015 12:09:51 +0000 (UTC) (envelope-from mihai@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5FC9pHx069009 for ; Mon, 15 Jun 2015 12:09:51 GMT (envelope-from mihai@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id t5FC9oct068067 for svn-soc-all@FreeBSD.org; Mon, 15 Jun 2015 12:09:50 GMT (envelope-from mihai@FreeBSD.org) Date: Mon, 15 Jun 2015 12:09:50 GMT Message-Id: <201506151209.t5FC9oct068067@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: r287115 - soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress 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: Mon, 15 Jun 2015 12:09:51 -0000 Author: mihai Date: Mon Jun 15 12:09:49 2015 New Revision: 287115 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287115 Log: sys: arm: vexpress: add semihosting feature for EARLY printfs using special syscall 0x1234 Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.S soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.h Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.S ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.S Mon Jun 15 12:09:49 2015 (r287115) @@ -0,0 +1,8 @@ + @ + @ Function for C code to make semihosting calls: + @ + .globl __semi_call +__semi_call: + svc 0x123456 + mov pc, lr + Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.h Mon Jun 15 12:09:49 2015 (r287115) @@ -0,0 +1,9 @@ +#ifndef SEMIHOSTING_H +#define SEMIHOSTING_H + +#define SYS_WRITE0 4 +#define SEMIHOSTING_SVC 0x123456 /* SVC comment field for semihosting */ + +int __semi_call(int id, ...); + +#endif /* ! SEMIHOSTING_H */