From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: wang lianwei <lianwei.wang@gmail.com>, jdike@addtoit.com
Subject: Re: [uml-devel] The init_maps bug which cause mem map error
Date: Wed, 11 Jan 2006 00:39:59 +0100 [thread overview]
Message-ID: <200601110040.02121.blaisorblade@yahoo.it> (raw)
In-Reply-To: <39134b110601100614o14112d19r@mail.gmail.com>
On Tuesday 10 January 2006 15:14, wang lianwei wrote:
> There is a bug In file
> linux/arch/um/kernel/physmem.c init_mem() functions:
Yep, right...
> *int* *init_maps*(*unsigned* *long* physmem, *unsigned* *long* iomem,
> *unsigned* *long* highmem)
> {
> *struct* page *p, *map;
> *unsigned* *long* phys_len, phys_pages, highmem_len, highmem_pages;
> *unsigned* *long* iomem_len, iomem_pages, total_len, total_pages;
> *int* i;
(What happened to these bad "*" guys ;-) ? )
> phys_pages = physmem >> PAGE_SHIFT;
> phys_len = phys_pages * *sizeof*(*struct* page);
> iomem_pages = iomem >> PAGE_SHIFT;
> iomem_len = iomem_pages * *sizeof*(*struct* page);
> highmem_pages = highmem >> PAGE_SHIFT;
> highmem_len = highmem_pages * *sizeof*(*struct* page);
> total_pages = phys_pages + iomem_pages + highmem_pages;
> total_len = phys_len + iomem_pages + highmem_len;
> this line should be
That line should be the below one, right (it wasn't clear the line you were
correcting, I later grasped it)? I think you're fully right (and I've never
seen iomem working very well, so I tend to agree).
> total_len = phys_len + iomem_len + highmem_len;
Remember people: never compare apples with bananas (or whatever). Thanks for
the note. It's the first patch on my queue.
> <http://cvs.sourceforge.net/viewcvs.py/user-mode-linux/linux/#dirlist>
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2006-01-10 23:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-10 14:14 [uml-devel] The init_maps bug which cause mem map error wang lianwei
2006-01-10 23:39 ` Blaisorblade [this message]
2006-01-11 16:21 ` Jeff Dike
2006-01-11 15:52 ` Blaisorblade
2006-01-12 7:57 ` Jeff Dike
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=200601110040.02121.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=lianwei.wang@gmail.com \
--cc=user-mode-linux-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.