mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
![Tom Rini](/assets/img/avatar_default.png)
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
179 lines
2.3 KiB
ArmAsm
179 lines
2.3 KiB
ArmAsm
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Miscellaneous assembly functions.
|
|
*
|
|
* Copyright (C) 2001 - 2007 Tensilica Inc.
|
|
* Copyright (C) 2014 - 2016 Cadence Design Systems Inc.
|
|
*
|
|
* Chris Zankel <chris@zankel.net>
|
|
*/
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
#include <asm/asmmacro.h>
|
|
#include <asm/cacheasm.h>
|
|
|
|
/*
|
|
* void __invalidate_icache_page(ulong start)
|
|
*/
|
|
|
|
ENTRY(__invalidate_icache_page)
|
|
|
|
abi_entry
|
|
|
|
___invalidate_icache_page a2 a3
|
|
isync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__invalidate_icache_page)
|
|
|
|
/*
|
|
* void __invalidate_dcache_page(ulong start)
|
|
*/
|
|
|
|
ENTRY(__invalidate_dcache_page)
|
|
|
|
abi_entry
|
|
|
|
___invalidate_dcache_page a2 a3
|
|
dsync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__invalidate_dcache_page)
|
|
|
|
/*
|
|
* void __flush_invalidate_dcache_page(ulong start)
|
|
*/
|
|
|
|
ENTRY(__flush_invalidate_dcache_page)
|
|
|
|
abi_entry
|
|
|
|
___flush_invalidate_dcache_page a2 a3
|
|
|
|
dsync
|
|
abi_ret
|
|
|
|
ENDPROC(__flush_invalidate_dcache_page)
|
|
|
|
/*
|
|
* void __flush_dcache_page(ulong start)
|
|
*/
|
|
|
|
ENTRY(__flush_dcache_page)
|
|
|
|
abi_entry
|
|
|
|
___flush_dcache_page a2 a3
|
|
|
|
dsync
|
|
abi_ret
|
|
|
|
ENDPROC(__flush_dcache_page)
|
|
|
|
/*
|
|
* void __invalidate_icache_range(ulong start, ulong size)
|
|
*/
|
|
|
|
ENTRY(__invalidate_icache_range)
|
|
|
|
abi_entry
|
|
|
|
___invalidate_icache_range a2 a3 a4
|
|
isync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__invalidate_icache_range)
|
|
|
|
/*
|
|
* void __flush_invalidate_dcache_range(ulong start, ulong size)
|
|
*/
|
|
|
|
ENTRY(__flush_invalidate_dcache_range)
|
|
|
|
abi_entry
|
|
|
|
___flush_invalidate_dcache_range a2 a3 a4
|
|
dsync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__flush_invalidate_dcache_range)
|
|
|
|
/*
|
|
* void _flush_dcache_range(ulong start, ulong size)
|
|
*/
|
|
|
|
ENTRY(__flush_dcache_range)
|
|
|
|
abi_entry
|
|
|
|
___flush_dcache_range a2 a3 a4
|
|
dsync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__flush_dcache_range)
|
|
|
|
/*
|
|
* void _invalidate_dcache_range(ulong start, ulong size)
|
|
*/
|
|
|
|
ENTRY(__invalidate_dcache_range)
|
|
|
|
abi_entry
|
|
|
|
___invalidate_dcache_range a2 a3 a4
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__invalidate_dcache_range)
|
|
|
|
/*
|
|
* void _invalidate_icache_all(void)
|
|
*/
|
|
|
|
ENTRY(__invalidate_icache_all)
|
|
|
|
abi_entry
|
|
|
|
___invalidate_icache_all a2 a3
|
|
isync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__invalidate_icache_all)
|
|
|
|
/*
|
|
* void _flush_invalidate_dcache_all(void)
|
|
*/
|
|
|
|
ENTRY(__flush_invalidate_dcache_all)
|
|
|
|
abi_entry
|
|
|
|
___flush_invalidate_dcache_all a2 a3
|
|
dsync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__flush_invalidate_dcache_all)
|
|
|
|
/*
|
|
* void _invalidate_dcache_all(void)
|
|
*/
|
|
|
|
ENTRY(__invalidate_dcache_all)
|
|
|
|
abi_entry
|
|
|
|
___invalidate_dcache_all a2 a3
|
|
dsync
|
|
|
|
abi_ret
|
|
|
|
ENDPROC(__invalidate_dcache_all)
|