Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/arch/arm64/include/asm/     Datei vom 24.10.2025 mit Größe 537 B image not shown  

Quelle  semihost.h   Sprache: C

 

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2012 ARM Ltd.
 * Author: Marc Zyngier <marc.zyngier@arm.com>
 *
 * Adapted for ARM and earlycon:
 * Copyright (C) 2014 Linaro Ltd.
 * Author: Rob Herring <robh@kernel.org>
 */


#ifndef _ARM64_SEMIHOST_H_
#define _ARM64_SEMIHOST_H_

struct uart_port;

static inline void smh_putc(struct uart_port *port, unsigned char c)
{
 asm volatile("mov  x1, %0\n"
       "mov  x0, #3\n"
       "hlt  0xf000\n"
       : : "r" (&c) : "x0", "x1", "memory");
}

#endif /* _ARM64_SEMIHOST_H_ */

Messung
CHZG
100899695

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland