arch/arm: Add the macro definitions for CFI instructions for greenhills compiler

Add the macro definitions for CFI instructions for greenhills compiler

Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
This commit is contained in:
pangzhen1
2025-02-20 21:07:41 +08:00
committed by GUIDINGLI
parent 9159f6e353
commit 7acb0df84f
2 changed files with 49 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@
#include "chip.h"
#include "exc_return.h"
#include "ghs_compat.S"
/****************************************************************************
* Pre-processor Definitions
+48
View File
@@ -0,0 +1,48 @@
/****************************************************************************
* arch/arm/src/armv7-m/ghs_compat.S
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifdef __ghs__
.macro .cfi_sections section
.endm
.macro .cfi_startproc
.endm
.macro .cfi_def_cfa val1 val2
.endm
.macro .cfi_def_cfa_offset val
.endm
.macro .cfi_offset val1 val2
.endm
.macro .cfi_restore val
.endm
.macro .cfi_restore_state
.endm
.macro .cfi_endproc
.endm
.macro .cfi_remember_state
.endm
#endif