<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/arch/microblaze/kernel/head.S, branch v4.5</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.5</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2014-06-05T11:02:02Z</updated>
<entry>
<title>microblaze: Fix typo in head.S s/substract/subtract/</title>
<updated>2014-06-05T11:02:02Z</updated>
<author>
<name>Antonio Ospite</name>
<email>ao2@ao2.it</email>
</author>
<published>2014-06-04T12:03:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=225fba216261b0e24273f5f4eee504e3c7bd0255'/>
<id>urn:sha1:225fba216261b0e24273f5f4eee504e3c7bd0255</id>
<content type='text'>
Signed-off-by: Antonio Ospite &lt;ao2@ao2.it&gt;
Cc: Michal Simek &lt;monstr@monstr.eu&gt;
Cc: "Edgar E. Iglesias" &lt;edgar.iglesias@gmail.com&gt;
Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>microblaze: Fix a typo when disabling stack protection</title>
<updated>2014-02-10T06:44:11Z</updated>
<author>
<name>Edgar E. Iglesias</name>
<email>edgar.iglesias@gmail.com</email>
</author>
<published>2014-02-08T02:31:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a49f56eec54d864ba0fda838e4c8bf5c72f3eb08'/>
<id>urn:sha1:a49f56eec54d864ba0fda838e4c8bf5c72f3eb08</id>
<content type='text'>
Correct a typo causing the stack protector to be left enabled.
0xFFFFFFF -&gt; 0xFFFFFFFF

Signed-off-by: Edgar E. Iglesias &lt;edgar.iglesias@xilinx.com&gt;
Tested-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>microblaze: Disable stack protection from bootloader</title>
<updated>2014-01-27T10:26:32Z</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@xilinx.com</email>
</author>
<published>2013-08-23T05:16:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=34b9c07a3b644760159571ee99d0f7fc67b83a8d'/>
<id>urn:sha1:34b9c07a3b644760159571ee99d0f7fc67b83a8d</id>
<content type='text'>
Microblaze without MMU can use stack protection in bootloader
and kernel should clear this setting ASAP.

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>microblaze: Calculate kernel pad automatically</title>
<updated>2013-11-07T08:22:40Z</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@xilinx.com</email>
</author>
<published>2013-11-06T15:36:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7f15a256b556bf26780d7a0bd03c88914a852022'/>
<id>urn:sha1:7f15a256b556bf26780d7a0bd03c88914a852022</id>
<content type='text'>
The kernel needs to setup the first two tlbs with pad
which is used for early page allocation which is used
by mapin_ram() to allocate tables for lowmem memory
before memory initialisation is done.
Calculate pad directly from lowmem size.

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>microblaze: Do not use r6 in head.S</title>
<updated>2013-05-09T07:01:21Z</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@xilinx.com</email>
</author>
<published>2013-05-02T10:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4323cd48a13a3dfef0e3674e7c0165c9b1a37b55'/>
<id>urn:sha1:4323cd48a13a3dfef0e3674e7c0165c9b1a37b55</id>
<content type='text'>
r6 stores pointer to ramdisk and shouldn't
be used before it is passed to machine_early_init.

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
</content>
</entry>
<entry>
<title>microblaze: Fix bug with passing command line</title>
<updated>2012-10-04T12:59:19Z</updated>
<author>
<name>Michal Simek</name>
<email>monstr@monstr.eu</email>
</author>
<published>2012-08-16T13:53:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=fcc1c0ff2506cab8c3a019374550f68b3cbadcbe'/>
<id>urn:sha1:fcc1c0ff2506cab8c3a019374550f68b3cbadcbe</id>
<content type='text'>
When u-boot passes control over to Linux it places the Linux command
line between to the end of __init_end. When space between
__init_end and __bss_start is not COMMAND_LINE_SIZE then
the part of cmdline can be lost.
In extreme case if __init_end == __bss_start u-boot can't pass
any cmdline to Linux kernel.

This patch fix this issue by copying cmd line directly to
cmd_line char array which is placed in data section.

Reported-by: David Mc Andrew &lt;david.mcandrew@xilinx.com&gt;
Signed-off-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>microblaze: Handle TLB skip size dynamically</title>
<updated>2012-03-23T08:28:19Z</updated>
<author>
<name>Michal Simek</name>
<email>monstr@monstr.eu</email>
</author>
<published>2010-02-08T15:41:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e02db0aa3e1976ae4e23a66077d252a2f3ba74c7'/>
<id>urn:sha1:e02db0aa3e1976ae4e23a66077d252a2f3ba74c7</id>
<content type='text'>
This patch fix the problem with rootfs on JFFS2 with early printk
console turned on.

The origin version used TLB63 for temporary early printk mapping.
The code expect that kernel is not able to use all 64 TLB entries
till early printk console is remapped by ioremap. After that
temporary mapping on TLB63 is silently lost.
This expectation give the opportunity to have early console pretty
early.

Microblaze systems with JFFS2 rootfs with early printk console turned on
used more than 64 TLB entries before kernel can remap early console.
Based on that kernel does access to bad area because early printk mapping
is rewritten.

This patch introduces tlb_skip variable which dynamically stores number
of skipped TLB entries from the TLB0. skip_tlb=2 means that TLB0 and TLB1
should be skipped.

MICROBLAZE_TLB_SKIP defines how many TLB is skipped at the kernel start.
They can be used for user purpose.

TLB 63 is used for temporary LMB mapping (MICROBLAZE_LMB_TLB_ID).

Also clean TLBLO when kernel starts.

For specific kernel sizes kernel can use just one TLB. Detect this case
and use the second TLB for general purpose.

Change _tlbia function to flush TLB entries from tlb_skip to TLB_SIZE.

Export tlb_skip size through debugfs.

Signed-off-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>microblaze: Improve TLB calculation for small systems</title>
<updated>2012-03-23T08:28:18Z</updated>
<author>
<name>Michal Simek</name>
<email>monstr@monstr.eu</email>
</author>
<published>2010-02-08T15:41:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=95b0f9ea66661681f6ae081ea28416744d622c07'/>
<id>urn:sha1:95b0f9ea66661681f6ae081ea28416744d622c07</id>
<content type='text'>
Systems with small amount of memory need to be handled
differently. Linux can't allocate the whole 32MB with two TLBs
because then there is no MMU protection.

Signed-off-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>microblaze: Extend space for compiled-in FDT to 32kB</title>
<updated>2012-03-23T08:28:17Z</updated>
<author>
<name>Michal Simek</name>
<email>monstr@monstr.eu</email>
</author>
<published>2011-07-13T13:26:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3a1d26769f61fe8a1f517a66dfcee935a76fd61c'/>
<id>urn:sha1:3a1d26769f61fe8a1f517a66dfcee935a76fd61c</id>
<content type='text'>
Signed-off-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>microblaze: Clear all MSR flags on the first kernel instruction</title>
<updated>2012-03-23T08:28:16Z</updated>
<author>
<name>Michal Simek</name>
<email>monstr@monstr.eu</email>
</author>
<published>2011-11-09T14:39:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=173701d7745d07888a929bf08d77d29996ca13dc'/>
<id>urn:sha1:173701d7745d07888a929bf08d77d29996ca13dc</id>
<content type='text'>
The main reason is bug because of dynamic TLB allocation.
U-BOOT didn't disable dcache and then writing to physical address
from ASM wan't visible for reading through MMU.
Disabling caches and clearing all flags from previous code
is good to do so.

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