Commit 233eb921 authored by Michal Simek's avatar Michal Simek

microblaze: Remove show_tmem function

show_tmem function do nothing that's why I removed it.
There is also cleaning of commented ancient code.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 2ee2ff87
...@@ -144,7 +144,6 @@ int map_page(unsigned long va, phys_addr_t pa, int flags) ...@@ -144,7 +144,6 @@ int map_page(unsigned long va, phys_addr_t pa, int flags)
pmd_t *pd; pmd_t *pd;
pte_t *pg; pte_t *pg;
int err = -ENOMEM; int err = -ENOMEM;
/* spin_lock(&init_mm.page_table_lock); */
/* Use upper 10 bits of VA to index the first level map */ /* Use upper 10 bits of VA to index the first level map */
pd = pmd_offset(pgd_offset_k(va), va); pd = pmd_offset(pgd_offset_k(va), va);
/* Use middle 10 bits of VA to index the second-level map */ /* Use middle 10 bits of VA to index the second-level map */
...@@ -158,9 +157,7 @@ int map_page(unsigned long va, phys_addr_t pa, int flags) ...@@ -158,9 +157,7 @@ int map_page(unsigned long va, phys_addr_t pa, int flags)
if (mem_init_done) if (mem_init_done)
flush_HPTE(0, va, pmd_val(*pd)); flush_HPTE(0, va, pmd_val(*pd));
/* flush_HPTE(0, va, pg); */ /* flush_HPTE(0, va, pg); */
} }
/* spin_unlock(&init_mm.page_table_lock); */
return err; return err;
} }
...@@ -182,12 +179,6 @@ void __init adjust_total_lowmem(void) ...@@ -182,12 +179,6 @@ void __init adjust_total_lowmem(void)
#endif #endif
} }
static void show_tmem(unsigned long tmem)
{
volatile unsigned long a;
a = a + tmem;
}
/* /*
* Map in all of physical memory starting at CONFIG_KERNEL_START. * Map in all of physical memory starting at CONFIG_KERNEL_START.
*/ */
...@@ -197,7 +188,6 @@ void __init mapin_ram(void) ...@@ -197,7 +188,6 @@ void __init mapin_ram(void)
v = CONFIG_KERNEL_START; v = CONFIG_KERNEL_START;
p = memory_start; p = memory_start;
show_tmem(memory_size);
for (s = 0; s < memory_size; s += PAGE_SIZE) { for (s = 0; s < memory_size; s += PAGE_SIZE) {
f = _PAGE_PRESENT | _PAGE_ACCESSED | f = _PAGE_PRESENT | _PAGE_ACCESSED |
_PAGE_SHARED | _PAGE_HWEXEC; _PAGE_SHARED | _PAGE_HWEXEC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment