All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yabo Ding <bobfree@bonbon.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] a small problem
Date: Fri, 27 Jun 2003 11:47:54 +0800	[thread overview]
Message-ID: <3EFBBE6A.6000200@bonbon.net> (raw)
In-Reply-To: 20030626223134.35AA5C592A@atlas.denx.de

In post/memory.c file


int memory_post_test (int flags)
{
	int ret = 0;
	DECLARE_GLOBAL_DATA_PTR;
	bd_t *bd = gd->bd;
	unsigned long memsize = (bd->bi_memsize >= 256 << 20 ?
				 256 << 20 : bd->bi_memsize) - (1 << 20);


	if (flags & POST_POWERFAIL) {
		ret = memory_post_tests (CFG_SDRAM_BASE, memsize);
	} else {			/* POST_POWERNORMAL */

		unsigned long i;

		for (i = 0; i < (memsize >> 20) && ret == 0; i++) {
			if (ret == 0)
				ret = memory_post_tests (i << 20, 0x800);
			if (ret == 0)
				ret = memory_post_tests ((i << 20) + 0xff800, 0x800);
		}
	}

	return ret;
}


I think the line should be:

	unsigned long memsize = (bd->bi_memsize >= 257 << 20 ?
				 256 << 20 : bd->bi_memsize) - (1 << 20);





Yabo Ding
bobfree@bonbon.net

  parent reply	other threads:[~2003-06-27  3:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-20  1:45 [U-Boot-Users] FADS and ICU862 Environment problems Nye Liu
2003-06-21  0:21 ` Wolfgang Denk
2003-06-21  0:28   ` Nye Liu
2003-06-22 16:22     ` Wolfgang Denk
2003-06-23 21:25       ` Nye Liu
2003-06-23 21:35         ` Wolfgang Denk
2003-06-23 21:42           ` Nye Liu
2003-06-24 18:24             ` Wolfgang Denk
2003-06-24 20:28               ` Nye Liu
2003-06-24 20:38                 ` Wolfgang Denk
2003-06-24 23:59                   ` Nye Liu
2003-06-26  6:50                     ` Wolfgang Denk
2003-06-26 21:40                       ` Nye Liu
2003-06-26 22:03                         ` Wolfgang Denk
2003-06-26 22:10                           ` Nye Liu
2003-06-26 22:31                             ` Wolfgang Denk
2003-06-26 22:41                               ` Nye Liu
2003-06-26 23:10                                 ` Wolfgang Denk
2003-06-27 21:27                                   ` Nye Liu
2003-06-27  3:47                               ` Yabo Ding [this message]
2003-06-27  6:51                                 ` [U-Boot-Users] Re: a small problem Wolfgang Denk
2003-06-27  7:56                                   ` Yabo Ding
2003-06-25  0:27       ` [U-Boot-Users] FADS and ICU862 Environment problems Nye Liu
2003-06-26  6:53         ` Wolfgang Denk

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=3EFBBE6A.6000200@bonbon.net \
    --to=bobfree@bonbon.net \
    --cc=u-boot@lists.denx.de \
    /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.