asm_support_mips.S revision ee043fc5b2459d221ff020e2b096e2d492311d11
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_MIPS_ASM_SUPPORT_MIPS_S_
18#define ART_RUNTIME_ARCH_MIPS_ASM_SUPPORT_MIPS_S_
19
20#include "asm_support_mips.h"
21
22    /* Cache alignment for function entry */
23.macro ENTRY name
24    .type \name, %function
25    .global \name
26    .balign 16
27\name:
28    .cfi_startproc simple
29.endm
30
31.macro END name
32    .cfi_endproc
33    .size \name, .-\name
34.endm
35
36    /* Generates $gp for function calls */
37.macro GENERATE_GLOBAL_POINTER
38    .cpload $t9
39.endm
40
41.macro UNIMPLEMENTED name
42    ENTRY \name
43    break
44    break
45    END \name
46.endm
47
48
49#endif  // ART_RUNTIME_ARCH_MIPS_ASM_SUPPORT_MIPS_S_
50