|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] mini-os: sbrk() doesn't allocate pages?
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/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|