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