18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/arch/arm/boot/compressed/big-endian.S 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Switch CPU into big endian mode. 68c2ecf20Sopenharmony_ci * Author: Nicolas Pitre 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci .section ".start", "ax" 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci mrc p15, 0, r0, c1, c0, 0 @ read control reg 128c2ecf20Sopenharmony_ci orr r0, r0, #(1 << 7) @ enable big endian mode 138c2ecf20Sopenharmony_ci mcr p15, 0, r0, c1, c0, 0 @ write control reg 148c2ecf20Sopenharmony_ci 15