sh: Make 29/32-bit mode check helper generally available.
Presently __in_29bit_mode() is only defined for the PMB case, but it's also easily derived from the CONFIG_29BIT and CONFIG_32BIT && CONFIG_PMB=n cases. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@ -338,10 +338,3 @@ EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_MEMORY_HOTPLUG */
|
||||
|
||||
#ifdef CONFIG_PMB
|
||||
int __in_29bit_mode(void)
|
||||
{
|
||||
return !(ctrl_inl(PMB_PASCR) & PASCR_SE);
|
||||
}
|
||||
#endif /* CONFIG_PMB */
|
||||
|
Reference in New Issue
Block a user