Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173379
b: refs/heads/master
c: 8bd642b
h: refs/heads/master
i:
  173377: b7816a6
  173375: c7e6df7
v: v3
  • Loading branch information
Matt Fleming authored and Paul Mundt committed Oct 10, 2009
1 parent 865cbaf commit 97f126f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 067784f6239e08a084b4d8d597e14435331eae51
refs/heads/master: 8bd642b17bea31f8361b61c16c8d154638414df4
2 changes: 1 addition & 1 deletion trunk/arch/sh/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void decompress_kernel(void)
#ifdef CONFIG_SUPERH64
output_addr = (CONFIG_MEMORY_START + 0x2000);
#else
output_addr = PHYSADDR((unsigned long)&_text+PAGE_SIZE);
output_addr = __pa((unsigned long)&_text+PAGE_SIZE);
#ifdef CONFIG_29BIT
output_addr |= P2SEG;
#endif
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/sh/include/asm/addrspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
/* Returns the privileged segment base of a given address */
#define PXSEG(a) (((unsigned long)(a)) & 0xe0000000)

/* Returns the physical address of a PnSEG (n=1,2) address */
#define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffff)

#if defined(CONFIG_29BIT) || defined(CONFIG_PMB_FIXED)
/*
* Map an address to a certain privileged segment
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int machine_kexec_prepare(struct kimage *image)
/* older versions of kexec-tools are passing
* the zImage entry point as a virtual address.
*/
if (image->start != PHYSADDR(image->start))
if (image->start != __pa(image->start))
return -EINVAL; /* upgrade your kexec-tools */

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/mm/cache-sh4.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static inline void flush_cache_4096(unsigned long start,

local_irq_save(flags);
__flush_cache_4096(start | SH_CACHE_ASSOC,
P1SEGADDR(phys), exec_offset);
virt_to_phys(phys), exec_offset);
local_irq_restore(flags);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/mm/cache-sh7705.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static void sh7705_flush_dcache_page(void *arg)
if (mapping && !mapping_mapped(mapping))
set_bit(PG_dcache_dirty, &page->flags);
else
__flush_dcache_page(PHYSADDR(page_address(page)));
__flush_dcache_page(__pa(page_address(page)));
}

static void __uses_jump_to_uncached sh7705_flush_cache_all(void *args)
Expand Down

0 comments on commit 97f126f

Please sign in to comment.