/* SPDX-License-Identifier: GPL-2.0+ *//* * semihosting.S - the trap instruction itself. qemu answers this when * it is started with -semihosting, and nothing happens without it, so * every caller has to cope with the no-debugger case. * * Copyright (C) 2026 Bradley Morgan <brads@mainlining.org> */#include <asm/linkage.h>.pushsection.text.smh_trap,"ax"/* long smh_trap(unsigned int sysnum, void *addr); */ENTRY(smh_trap)hlt#0xf000retENDPROC(smh_trap).popsection