From: Rick <judicator3@gmail.com>
To: xen-devel@lists.sourceforge.net
Subject: Re: mini-os for Xen2
Date: Sat, 12 Feb 2005 06:01:03 -0500 [thread overview]
Message-ID: <a146ff9b05021203011cd3896d@mail.gmail.com> (raw)
In-Reply-To: <a146ff9b050211155622b51ca4@mail.gmail.com>
Hi,
I am trying to get a program to load and run directly on XEN. I've
been looking at mini-os but I have not been able to compile it.
Anyhow, right now I am just trying to get a program to load and print
"Hello World". So I've modified mini-os and removed everything from
the compilation except for the files head.S and the function
start_kernel() in kernel.c.
my start_kernel() function looks like this:
===========================================================
void start_kernel(start_info_t *si)
{
HYPERVISOR_console_io (CONSOLEIO_write, 11, "Hello World");
HYPERVISOR_shutdown();
}
===========================================================
my head.S file looks like this:
===========================================================
#include <os.h>
.globl _start, shared_info
_start:
cld
lss stack_start,%esp
push $shared_info
call start_kernel
stack_start:
.long stack_start+8192, __KERNEL_DS
/* Unpleasant -- the PTE that maps this page is actually overwritten */
/* to map the real shared-info page! :-) */
.org 0x1000
shared_info:
.org 0x2000
===========================================================
In head.S I changed
=================================
stack_start:
.long stack+8192, __KERNEL_DS
=================================
to
=================================
stack_start:
.long stack_start+8192, __KERNEL_DS
=================================
because there were no symbols called "stack"
When I try to load this program with XEN using "xm create" I get the
following error:
Error: Error creating domain: (0, 'Error')
Is there something wrong with the Makefile and linking process that
comes with mini-os ?
Any help will be much appreciated.
Thanks
Rick
On Fri, 11 Feb 2005 18:56:19 -0500, Rick <judicator3@gmail.com> wrote:
> Hello,
>
> I am trying to compile the mini-os under xen2
> I am getting lot's of errors and I guess mini-os was written for a
> much earlier version of xen. Is there an updated version of mini-os
> somewhere ? Do you stop supporting mini-os ?
>
> Rick
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next prev parent reply other threads:[~2005-02-12 11:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-11 23:56 mini-os for Xen2 Rick
2005-02-12 11:01 ` Rick [this message]
2005-02-12 12:56 ` Keir Fraser
2005-02-13 2:39 ` Jacob Gorm Hansen
2005-02-14 1:37 ` Rick
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=a146ff9b05021203011cd3896d@mail.gmail.com \
--to=judicator3@gmail.com \
--cc=xen-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.