aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/x86_64/target_arch.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-08-03 17:17:17 -0600
committerWarner Losh <imp@bsdimp.com>2021-09-10 14:13:06 -0600
commite2a74729181c51a0c9dff03bb7a99fc267bec996 (patch)
tree27c763a4ccfde547b31c508a45e6baaabce84ac9 /bsd-user/x86_64/target_arch.h
parent01a298a57ed3cd1fefbe70c691d74247c8f84906 (diff)
downloadqemu-e2a74729181c51a0c9dff03bb7a99fc267bec996.zip
qemu-e2a74729181c51a0c9dff03bb7a99fc267bec996.tar.gz
qemu-e2a74729181c51a0c9dff03bb7a99fc267bec996.tar.bz2
bsd-user: start to move target CPU functions to target_arch*
Move the CPU functions into target_arch_cpu.c that are unique to each CPU. These are defined in target_arch.h. Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/x86_64/target_arch.h')
-rw-r--r--bsd-user/x86_64/target_arch.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/bsd-user/x86_64/target_arch.h b/bsd-user/x86_64/target_arch.h
new file mode 100644
index 0000000..e558e1b
--- /dev/null
+++ b/bsd-user/x86_64/target_arch.h
@@ -0,0 +1,31 @@
+/*
+ * Intel x86_64 specific prototypes for bsd-user
+ *
+ * Copyright (c) 2013 Stacey D. Son
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _TARGET_ARCH_H_
+#define _TARGET_ARCH_H_
+
+/* target_arch_cpu.c */
+void bsd_x86_64_write_dt(void *ptr, unsigned long addr, unsigned long limit,
+ int flags);
+void bsd_x86_64_set_idt(int n, unsigned int dpl);
+void bsd_x86_64_set_idt_base(uint64_t base);
+
+#define target_cpu_set_tls(env, newtls)
+
+#endif /* !_TARGET_ARCH_H_ */