MXC needs the same change as IOP. See [ARM] 4494/1
or commit
df78faaadd6a40e5454b981d74c7fcfba9b26198
An undefined reference to elf_hwcap prevents linkage, due
to changes made by
81979a01b5f4b9574ab1f232fbd4b7f6852342da
and
b9716e532648857ceb8fcea5ae36ff17ce1d2ce0
Removing processor.h removes the extern definition of
elf_hwcap, which fixes the link issue, but forgets cpu_relax().
So, instead, we'll call barrier() directly.
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Ross Wille <wille@freescale.com>
Signed-off-by: Quinn Jensen <quinn.jensen@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
#define __MXC_BOOT_UNCOMPRESS
#include <asm/hardware.h>
-#include <asm/processor.h>
#define UART(x) (*(volatile unsigned long *)(serial_port + (x)))
}
while (!(UART(USR2) & USR2_TXFE))
- cpu_relax();
+ barrier();
UART(TXR) = ch;
}