diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-11-17 15:46:05 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-12-19 20:47:33 -0800 |
commit | 5da4063f647348b1a607f39a9ae1adeec39419c9 (patch) | |
tree | 8ba15aba48f59323ef7e00908ab63b7011277e6b /linux-user/generic | |
parent | 57a0c9384c12b7cc13d168fe5bff1db244c72151 (diff) | |
download | qemu-5da4063f647348b1a607f39a9ae1adeec39419c9.zip qemu-5da4063f647348b1a607f39a9ae1adeec39419c9.tar.gz qemu-5da4063f647348b1a607f39a9ae1adeec39419c9.tar.bz2 |
linux-user: Create special-errno.h
Pull the two internal errno used by qemu internally into their own
header file. This includes the one define required by safe-syscall.S.
Reviewed-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/generic')
-rw-r--r-- | linux-user/generic/target_errno_defs.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/linux-user/generic/target_errno_defs.h b/linux-user/generic/target_errno_defs.h index bb37d88..c2f9d40 100644 --- a/linux-user/generic/target_errno_defs.h +++ b/linux-user/generic/target_errno_defs.h @@ -147,21 +147,4 @@ #define TARGET_ERFKILL 132 /* Operation not possible due to RF-kill */ #define TARGET_EHWPOISON 133 /* Memory page has hardware error */ -/* QEMU internal, not visible to the guest. This is returned when a - * system call should be restarted, to tell the main loop that it - * should wind the guest PC backwards so it will re-execute the syscall - * after handling any pending signals. They match with the ones the guest - * kernel uses for the same purpose. - */ -#define QEMU_ERESTARTSYS 512 /* Restart system call (if SA_RESTART) */ - -/* QEMU internal, not visible to the guest. This is returned by the - * do_sigreturn() code after a successful sigreturn syscall, to indicate - * that it has correctly set the guest registers and so the main loop - * should not touch them. We use the value the guest would use for - * ERESTART_NOINTR (which is kernel internal) to guarantee that we won't - * clash with a valid guest errno now or in the future. - */ -#define QEMU_ESIGRETURN 513 /* Return from signal */ - #endif |