From: Gerd Hoffmann <kraxel@redhat.com>
To: Xen Development Mailing List <xen-devel@lists.xensource.com>
Subject: Re: mini-os: sbrk() doesn't allocate pages?
Date: Thu, 14 Aug 2008 10:42:04 +0200 [thread overview]
Message-ID: <48A3EFDC.5090403@redhat.com> (raw)
In-Reply-To: <48A3E70F.90100@redhat.com>
Gerd Hoffmann wrote:
> Hi,
>
> I'm wondering how the mini-os heap allocater work. The sbrk() function
> in mm.c seems to *not* allocate pages for the heap. Instead it uses the
> zero page and maps it into the heap space when a new page is needed ...
>
> I can't believe is is supposed to work that way. Is that a bug? Did I
> miss some logic somewhere in the code?
Oh, cow in the pagefault handler, that is the missing bit ...
cheers,
Gerd
--
http://kraxel.fedorapeople.org/xenner/
next prev parent reply other threads:[~2008-08-14 8:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-14 8:04 mini-os: sbrk() doesn't allocate pages? Gerd Hoffmann
2008-08-14 8:42 ` Gerd Hoffmann [this message]
2008-08-14 9:43 ` Samuel Thibault
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=48A3EFDC.5090403@redhat.com \
--to=kraxel@redhat.com \
--cc=xen-devel@lists.xensource.com \
/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.