xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: "Ivan Pavić2" <Ivan.Pavic2@fer.hr>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: ARM bare metal application test
Date: Mon, 9 May 2016 10:16:30 +0100	[thread overview]
Message-ID: <5730556E.2030001@arm.com> (raw)
In-Reply-To: <65387702CB408A468385A8FFC6F5807C33AA35@POSTAR.fer.hr>



On 09/05/2016 09:34, Ivan Pavić2 wrote:
> Hello,

Hello Ivan,

> I'm trying to build simple bare metal application on ARM Cortex A7.
> I reached the phase in which I successfully created domain. Now,
> I would like to check if application is really running (it runs according
> xl list). But i need some simple interaction or at least console output.
>
> So far this is my code:
>
>      .section ".start", "x"
>      .align
>      .globl    _start
>
> _start:
>      @ zImage header
> .rept   8
>      mov     r0, r0
> .endr
>      b       work
>      .word   0x016f2818      @ Magic numbers to help the loader
>      .word   _start          @ absolute load/run zImage address
>      .word   _end - _start   @ zImage size
>      @ end of zImage header
>
> work:  b work
>
> I've made linker script so that entry point is at address _start and
> it is initial value of PC (it is 0x80008000). So is there any quick
> way to check registers from dom0 so I can be sure that "work" is
> being done? I'm testing this on Odroid XU3 platform...

You can dump the registers of a vCPU with xenctx.

$PREFIX/lib/xen/bin/xenctx domid

$PREFIX is the path where xen tools have been installed (i.e --prefix on 
the configure). The default path is /usr/local/

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-05-09  9:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-09  8:34 ARM bare metal application test Ivan Pavić2
2016-05-09  9:16 ` Julien Grall [this message]
2016-05-09 10:29   ` Ivan Pavić2
2016-05-09 15:50     ` Konrad Rzeszutek Wilk
2016-05-09 16:21       ` Odgovor: " Ivan Pavić2
2016-05-09 16:31     ` Julien Grall
2016-05-09 16:43       ` Ivan Pavić2
2016-05-09 16:47         ` Julien Grall
2016-05-09 16:55           ` Odgovor: " Ivan Pavić2
2016-05-09 17:39           ` Wei Liu
2016-05-09 17:57             ` Julien Grall
2016-05-10  9:49               ` Wei Liu
2016-05-09 17:59             ` Ivan Pavić2
2016-05-10  9:49               ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5730556E.2030001@arm.com \
    --to=julien.grall@arm.com \
    --cc=Ivan.Pavic2@fer.hr \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).