xref: /openbmc/qemu/bsd-user/i386/target_arch.h (revision 9c092804)
1e2a74729SWarner Losh /*
2e2a74729SWarner Losh  * Intel x86 specific prototypes for bsd-user
3e2a74729SWarner Losh  *
4e2a74729SWarner Losh  *  Copyright (c) 2013 Stacey D. Son
5e2a74729SWarner Losh  *
6e2a74729SWarner Losh  *  This program is free software; you can redistribute it and/or modify
7e2a74729SWarner Losh  *  it under the terms of the GNU General Public License as published by
8e2a74729SWarner Losh  *  the Free Software Foundation; either version 2 of the License, or
9e2a74729SWarner Losh  *  (at your option) any later version.
10e2a74729SWarner Losh  *
11e2a74729SWarner Losh  *  This program is distributed in the hope that it will be useful,
12e2a74729SWarner Losh  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13e2a74729SWarner Losh  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14e2a74729SWarner Losh  *  GNU General Public License for more details.
15e2a74729SWarner Losh  *
16e2a74729SWarner Losh  *  You should have received a copy of the GNU General Public License
17e2a74729SWarner Losh  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
18e2a74729SWarner Losh  */
19e2a74729SWarner Losh 
20*9c092804SMarkus Armbruster #ifndef TARGET_ARCH_H
21*9c092804SMarkus Armbruster #define TARGET_ARCH_H
22e2a74729SWarner Losh 
23e2a74729SWarner Losh /* target_arch_cpu.c */
24e2a74729SWarner Losh void bsd_i386_write_dt(void *ptr, unsigned long addr, unsigned long limit,
25e2a74729SWarner Losh                 int flags);
26e2a74729SWarner Losh void bsd_i386_set_idt(int n, unsigned int dpl);
27e2a74729SWarner Losh void bsd_i386_set_idt_base(uint64_t base);
28e2a74729SWarner Losh 
29e2a74729SWarner Losh #define target_cpu_set_tls(env, newtls)
30e2a74729SWarner Losh 
31*9c092804SMarkus Armbruster #endif /* TARGET_ARCH_H */
32