1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17/* 18 * This file replaces "external/arm-trusted-firmware/include/common/asm_macros_common.S" for 19 * building "external/arm-trusted-firmware/lib/aarch64/cache_helper.S". It defines the "func" 20 * macro for declaring assembly function. However the original file uses assembly directives 21 * such as ".size" for debug information which are not recogized by LLVM when building for 22 * windows/msvc target. Thus we use our custom definition to workaround. 23 */ 24 25/* 26 * This macro marks the begin of a function. It simply creates a label. 27 */ 28.macro func _name 29\_name: 30.endm 31 32/* 33 * This macro is used to mark the end of a function. For our usage, it's simply a noop. 34 */ 35.macro endfunc _name 36.endm 37