1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2012 ARM Ltd.
4 * Author: Marc Zyngier <marc.zyngier@arm.com>
6 * Adapted for ARM and earlycon:
7 * Copyright (C) 2014 Linaro Ltd.
8 * Author: Rob Herring <robh@kernel.org>
11 #ifndef _ARM64_SEMIHOST_H_
12 #define _ARM64_SEMIHOST_H_
16 static inline void smh_putc(struct uart_port
*port
, unsigned char c
)
18 asm volatile("mov x1, %0\n"
21 : : "r" (&c
) : "x0", "x1", "memory");
24 #endif /* _ARM64_SEMIHOST_H_ */