xref: /qemu/common-user/safe-syscall.S (revision bbf15aaf7c7506c88062288b3ae122b882f65e69)
14d330ceeSTimothy E Baldwin/*
24d330ceeSTimothy E Baldwin * safe-syscall.S : include the host-specific assembly fragment
34d330ceeSTimothy E Baldwin * to handle signals occurring at the same time as system calls.
44d330ceeSTimothy E Baldwin *
54d330ceeSTimothy E Baldwin * Written by Peter Maydell <peter.maydell@linaro.org>
64d330ceeSTimothy E Baldwin *
74d330ceeSTimothy E Baldwin * Copyright (C) 2016 Linaro Limited
84d330ceeSTimothy E Baldwin *
94d330ceeSTimothy E Baldwin * This work is licensed under the terms of the GNU GPL, version 2 or later.
104d330ceeSTimothy E Baldwin * See the COPYING file in the top-level directory.
114d330ceeSTimothy E Baldwin */
124d330ceeSTimothy E Baldwin
13*5da4063fSRichard Henderson#include "special-errno.h"
144d330ceeSTimothy E Baldwin
154d330ceeSTimothy E Baldwin/* We have the correct host directory on our include path
164d330ceeSTimothy E Baldwin * so that this will pull in the right fragment for the architecture.
174d330ceeSTimothy E Baldwin */
184d330ceeSTimothy E Baldwin#include "safe-syscall.inc.S"
194d330ceeSTimothy E Baldwin
204d330ceeSTimothy E Baldwin/* We must specifically say that we're happy for the stack to not be
214d330ceeSTimothy E Baldwin * executable, otherwise the toolchain will default to assuming our
224d330ceeSTimothy E Baldwin * assembly needs an executable stack and the whole QEMU binary will
234d330ceeSTimothy E Baldwin * needlessly end up with one. This should be the last thing in this file.
244d330ceeSTimothy E Baldwin */
254d330ceeSTimothy E Baldwin#if defined(__linux__) && defined(__ELF__)
264d330ceeSTimothy E Baldwin.section        .note.GNU-stack, "", %progbits
274d330ceeSTimothy E Baldwin#endif
28