<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/arch/microblaze/lib/bootm.c, branch v2013.07-rc2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/arch/microblaze/lib/bootm.c?h=v2013.07-rc2</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/arch/microblaze/lib/bootm.c?h=v2013.07-rc2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2013-06-26T14:16:41Z</updated>
<entry>
<title>Clarify bootm OS arguments</title>
<updated>2013-06-26T14:16:41Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2013-06-11T18:14:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=983c72f479173bced296f7292b4a9fbef9d17688'/>
<id>urn:sha1:983c72f479173bced296f7292b4a9fbef9d17688</id>
<content type='text'>
At present the arguments to bootm are processed in a somewhat confusing
way. Sub-functions must know how many arguments their calling functions
have processed, and the OS boot function must also have this information.
Also it isn't obvious that 'bootm' and 'bootm start' provide arguments in
the same way.

Adjust the code so that arguments are removed from the list before calling
a sub-function. This means that all functions can know that argv[0] is the
first argument of which they need to take notice.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>microblaze: bootm: Add support for loading initrd</title>
<updated>2013-05-09T09:13:44Z</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@xilinx.com</email>
</author>
<published>2013-05-02T10:49:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a8425d52885de047fc00019cdf3e697b4d32b67a'/>
<id>urn:sha1:a8425d52885de047fc00019cdf3e697b4d32b67a</id>
<content type='text'>
fdt_initrd add additional information to DTB about initrd
addresses which are later used by kernel.

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>microblaze: bootm: Fix coding style issues</title>
<updated>2013-05-09T09:11:57Z</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@xilinx.com</email>
</author>
<published>2013-05-02T10:51:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1e71fa4369b4aad058396b4f38b1a275bc9eb180'/>
<id>urn:sha1:1e71fa4369b4aad058396b4f38b1a275bc9eb180</id>
<content type='text'>
Prepare place for new patch.

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>microblaze: Flush caches before enabling them</title>
<updated>2012-11-07T16:11:14Z</updated>
<author>
<name>Michal Simek</name>
<email>monstr@monstr.eu</email>
</author>
<published>2012-09-25T08:13:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5811830fae92cf0a3bb11ead54ef1267464a1280'/>
<id>urn:sha1:5811830fae92cf0a3bb11ead54ef1267464a1280</id>
<content type='text'>
Flushing caches is necessary because of soft reset
which doesn't clear caches.

Signed-off-by: Michal Simek &lt;monstr@monstr.eu&gt;
Reviewed-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>bootstage: Replace show_boot_progress/error() with bootstage_...()</title>
<updated>2012-03-18T20:41:39Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2012-02-13T13:51:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=770605e4f9874230728f5a592820c619b1565ebc'/>
<id>urn:sha1:770605e4f9874230728f5a592820c619b1565ebc</id>
<content type='text'>
These calls should not be made directly any more, since bootstage
will call the show_boot_...() functions as needed.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>bootstage: Make use of BOOTSTAGE_ID_RUN_OS in show_boot_progress()</title>
<updated>2012-03-18T19:45:57Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2011-12-10T11:07:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=578ac1e9ba4c79175e69becb28e7157a84eff241'/>
<id>urn:sha1:578ac1e9ba4c79175e69becb28e7157a84eff241</id>
<content type='text'>
This changes the number 15 as used in boot_stage_progress() to use the
new name provided for it. This is a separate patch because it touches
so many files.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
<entry>
<title>FDT: only call boot_get_fdt from generic code</title>
<updated>2010-10-18T20:52:10Z</updated>
<author>
<name>John Rigby</name>
<email>john.rigby@linaro.org</email>
</author>
<published>2010-10-13T19:57:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5a75e121075a63f312ae07409477b6f686840a93'/>
<id>urn:sha1:5a75e121075a63f312ae07409477b6f686840a93</id>
<content type='text'>
All arches except nios2 and microblaze call boot_get_fdt
from bootm_start in common/cmd_bootm.c.

Having nios2 and microblaze do so as well removes code from
their respective do_bootm_linux routines and allows removal of
a nasty ifdef from bootm_start.

In the case where boot_get_fdt returns an error bootm_start
returns and the platform specific do_bootm_linux routines
will never get called.

Also only check argv[3] for an fdt addr if argc &gt; 3 first.
This is already the case for nios2.

Signed-off-by: John Rigby &lt;john.rigby@linaro.org&gt;
CC: Scott McNutt &lt;smcnutt@psyent.com&gt;
CC: Michal Simek &lt;monstr@monstr.eu&gt;
CC: Thomas Chou &lt;thomas@wytron.com.tw&gt;
Acked-by: Wolfgang Denk &lt;wd@denx.de&gt;
Acked-by: Michal Simek &lt;monstr@monstr.eu&gt;
Tested-by: Thomas Chou &lt;thomas@wytron.com.tw&gt;
</content>
</entry>
<entry>
<title>Make sure that argv[] argument pointers are not modified.</title>
<updated>2010-07-04T21:55:42Z</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2010-06-28T20:00:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=54841ab50c20d6fa6c9cc3eb826989da3a22d934'/>
<id>urn:sha1:54841ab50c20d6fa6c9cc3eb826989da3a22d934</id>
<content type='text'>
The hush shell dynamically allocates (and re-allocates) memory for the
argument strings in the "char *argv[]" argument vector passed to
commands.  Any code that modifies these pointers will cause serious
corruption of the malloc data structures and crash U-Boot, so make
sure the compiler can check that no such modifications are being done
by changing the code into "char * const argv[]".

This modification is the result of debugging a strange crash caused
after adding a new command, which used the following argument
processing code which has been working perfectly fine in all Unix
systems since version 6 - but not so in U-Boot:

int main (int argc, char **argv)
{
	while (--argc &gt; 0 &amp;&amp; **++argv == '-') {
/* ====&gt; */	while (*++*argv) {
			switch (**argv) {
			case 'd':
				debug++;
				break;
			...
			default:
				usage ();
			}
		}
	}
	...
}

The line marked "====&gt;" will corrupt the malloc data structures and
usually cause U-Boot to crash when the next command gets executed by
the shell.  With the modification, the compiler will prevent this with
an
	error: increment of read-only location '*argv'

N.B.: The code above can be trivially rewritten like this:

	while (--argc &gt; 0 &amp;&amp; **++argv == '-') {
		char *arg = *argv;
		while (*++arg) {
			switch (*arg) {
			...

Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
<entry>
<title>microblaze: Flush cache before jumping to kernel</title>
<updated>2010-04-16T10:16:04Z</updated>
<author>
<name>Michal Simek</name>
<email>monstr@monstr.eu</email>
</author>
<published>2010-04-16T10:01:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9b4d90569028604bc491ea419187c31e4467bdca'/>
<id>urn:sha1:9b4d90569028604bc491ea419187c31e4467bdca</id>
<content type='text'>
There is used max cache size on system which doesn't define
cache size.

Signed-off-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>microblaze: Add FDT support</title>
<updated>2010-04-16T10:15:13Z</updated>
<author>
<name>Arun Bhanu</name>
<email>arun@bhanu.net</email>
</author>
<published>2010-04-15T10:27:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=398b1d57a6a56aada1f77198746a7dd1b038cd5d'/>
<id>urn:sha1:398b1d57a6a56aada1f77198746a7dd1b038cd5d</id>
<content type='text'>
This patch adds FDT (flattened device tree) support to microblaze arch.

Tested with Linux arch/microblaze kernels with and without compiled in
FDT on Xilinx ML506 board.

Signed-off-by: Arun Bhanu &lt;arun@bhanu.net&gt;
Signed-off-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
</feed>
