File: tlsdesc_rel_a64.S

package info (click to toggle)
optee-os 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,560 kB
  • sloc: ansic: 441,914; asm: 12,903; python: 3,719; makefile: 1,676; sh: 238
file content (21 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2020, Huawei Technologies Co. Ltd.
 */

#include <asm.S>

/*
 * long tlsdesc_resolve(struct tlsdesc *);
 *
 * Must preserve all registers except x0, x1 and the processor flags.
 * See https://www.fsfla.org/~lxoliva/writeups/TLS/RFC-TLSDESC-ARM.txt section
 * "Resolvers' Calling Convention". The document applies to 32-bit Arm but other
 * sources mention similar constraints for other architectures.
 */
FUNC tlsdesc_resolve , :
	ldr	x0, [x0, #8]
	ret
END_FUNC tlsdesc_resolve

BTI(emit_aarch64_feature_1_and     GNU_PROPERTY_AARCH64_FEATURE_1_BTI)