1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Atheros AR71XX/AR724X/AR913X specific kernel entry setup
5 * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
7 #ifndef __ASM_MACH_ATH79_KERNEL_ENTRY_H
8 #define __ASM_MACH_ATH79_KERNEL_ENTRY_H
11 * Some bootloaders set the 'Kseg0 coherency algorithm' to
12 * 'Cacheable, noncoherent, write-through, no write allocate'
13 * and this cause performance issues. Let's go and change it to
14 * 'Cacheable, noncoherent, write-back, write allocate'
16 .macro kernel_entry_setup
20 ori t0
, CONF_CM_CACHABLE_NONCOHERENT
25 .macro smp_slave_setup
28 #endif /* __ASM_MACH_ATH79_KERNEL_ENTRY_H */