sysarch.h revision 124296
11817Sdg/*-
21817Sdg * Copyright (c) 1993 The Regents of the University of California.
31817Sdg * All rights reserved.
41817Sdg *
51817Sdg * Redistribution and use in source and binary forms, with or without
61817Sdg * modification, are permitted provided that the following conditions
71817Sdg * are met:
81817Sdg * 1. Redistributions of source code must retain the above copyright
91817Sdg *    notice, this list of conditions and the following disclaimer.
101817Sdg * 2. Redistributions in binary form must reproduce the above copyright
111817Sdg *    notice, this list of conditions and the following disclaimer in the
121817Sdg *    documentation and/or other materials provided with the distribution.
131817Sdg * 3. All advertising materials mentioning features or use of this software
141817Sdg *    must display the following acknowledgement:
151817Sdg *	This product includes software developed by the University of
161817Sdg *	California, Berkeley and its contributors.
171817Sdg * 4. Neither the name of the University nor the names of its contributors
181817Sdg *    may be used to endorse or promote products derived from this software
191817Sdg *    without specific prior written permission.
201817Sdg *
211817Sdg * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
221817Sdg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231817Sdg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241817Sdg * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
251817Sdg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
261817Sdg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
271817Sdg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
281817Sdg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
291817Sdg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
301817Sdg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
311817Sdg * SUCH DAMAGE.
321817Sdg *
3350477Speter * $FreeBSD: head/sys/amd64/include/sysarch.h 124296 2004-01-09 16:52:09Z nectar $
341817Sdg */
351817Sdg
36550Srgrimes/*
37114928Speter * Architecture specific syscalls (AMD64)
38550Srgrimes */
39719Swollman#ifndef _MACHINE_SYSARCH_H_
4033049Sbde#define _MACHINE_SYSARCH_H_
41719Swollman
42121398Speter/* Leave space for 0-127 for to avoid translating syscalls */
43121398Speter#define	AMD64_GET_FSBASE	128
44121398Speter#define	AMD64_SET_FSBASE	129
45121398Speter#define	AMD64_GET_GSBASE	130
46121398Speter#define	AMD64_SET_GSBASE	131
47114928Speter
48114928Speter#ifndef _KERNEL
49114928Speter#include <sys/cdefs.h>
50114928Speter
51114928Speter__BEGIN_DECLS
52121405Speterint amd64_get_fsbase(void **);
53124296Snectarint amd64_get_gsbase(void **);
54121405Speterint amd64_set_fsbase(void *);
55121405Speterint amd64_set_gsbase(void *);
56124296Snectarint sysarch(int, void *);
57114928Speter__END_DECLS
58114928Speter#endif
59114928Speter
6033049Sbde#endif /* !_MACHINE_SYSARCH_H_ */
61