xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Lele MA <lelema.zh@gmail.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [Help] How to build mini-OS with libc support, like Newlib?
Date: Sat, 6 Sep 2014 11:54:42 +0200	[thread overview]
Message-ID: <20140906095442.GE2919@type.youpi.perso.aquilenet.fr> (raw)
In-Reply-To: <48dbe837.a449.14844f8887f.Coremail.lelema.zh@gmail.com>

Lele MA, le Fri 05 Sep 2014 16:40:11 +0800, a écrit :
> Does the stubdomain allow only one app_main to run?

Well, yes, sure, just like you can't have several main function in a C
program. This is apparently a spurious change, I have submitted a patch
removing it, thanks for the report.

> Another question confuses me a lot. The c-stub domain exit immediately after prints the "Hello world" defined in /stubdom/c/main.c.

Yes, that's just a hello world example.

> And the console functions defined in /extras/mini-os/console/console.c has no effect at all. So, how can I enable the console functions? 

Which function, precisely?

The C stubdom is supposed to provide you with a C environment, so you
should just use printf.

Samuel

      reply	other threads:[~2014-09-06  9:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02  7:20 [Help] How to build mini-OS with libc support, like Newlib? Lele MA
2014-09-02  7:47 ` Samuel Thibault
2014-09-02  9:36   ` Lele Ma
2014-09-02 10:55     ` Samuel Thibault
2014-09-05  8:40       ` Lele MA
2014-09-06  9:54         ` Samuel Thibault [this message]

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=20140906095442.GE2919@type.youpi.perso.aquilenet.fr \
    --to=samuel.thibault@ens-lyon.org \
    --cc=lelema.zh@gmail.com \
    --cc=xen-devel@lists.xen.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).