Home | History | Annotate | Download | only in arm
      1 /*
      2  * Copyright (C) 2013 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 #ifndef ART_RUNTIME_ARCH_X86_ASM_SUPPORT_X86_S_
     18 #define ART_RUNTIME_ARCH_X86_ASM_SUPPORT_X86_S_
     19 
     20 #include "asm_support_arm.h"
     21 
     22 .cfi_sections   .debug_frame
     23 .syntax unified
     24 .arch armv7-a
     25 .thumb
     26 
     27 .macro ENTRY name
     28     .thumb_func
     29     .type \name, #function
     30     .global \name
     31     /* Cache alignment for function entry */
     32     .balign 16
     33 \name:
     34     .cfi_startproc
     35     .fnstart
     36 .endm
     37 
     38 .macro ARM_ENTRY name
     39     .arm
     40     .type \name, #function
     41     .global \name
     42     /* Cache alignment for function entry */
     43     .balign 16
     44 \name:
     45     .cfi_startproc
     46     .fnstart
     47 .endm
     48 
     49 .macro END name
     50     .fnend
     51     .cfi_endproc
     52     .size \name, .-\name
     53 .endm
     54 
     55 .macro UNIMPLEMENTED name
     56     ENTRY \name
     57     bkpt
     58     bkpt
     59     END \name
     60 .endm
     61 
     62 #endif  // ART_RUNTIME_ARCH_X86_ASM_SUPPORT_X86_S_
     63