linux.h (293522) | linux.h (293527) |
---|---|
1/*- 2 * Copyright (c) 1994-1996 S��ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1994-1996 S��ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: stable/10/sys/i386/linux/linux.h 293522 2016-01-09 15:56:01Z dchagin $ | 28 * $FreeBSD: stable/10/sys/i386/linux/linux.h 293527 2016-01-09 16:08:22Z dchagin $ |
29 */ 30 31#ifndef _I386_LINUX_H_ 32#define _I386_LINUX_H_ 33 34#include <sys/signal.h> /* for sigval union */ 35 36#include <i386/linux/linux_syscall.h> --- 4 unchanged lines hidden (view full) --- 41extern u_char linux_debug_map[]; 42#define ldebug(name) isclr(linux_debug_map, LINUX_SYS_linux_ ## name) 43#define ARGS(nm, fmt) "linux(%ld/%ld): "#nm"("fmt")\n", \ 44 (long)td->td_proc->p_pid, (long)td->td_tid 45#define LMSG(fmt) "linux(%ld/%ld): "fmt"\n", \ 46 (long)td->td_proc->p_pid, (long)td->td_tid 47#define LINUX_DTRACE linuxulator 48 | 29 */ 30 31#ifndef _I386_LINUX_H_ 32#define _I386_LINUX_H_ 33 34#include <sys/signal.h> /* for sigval union */ 35 36#include <i386/linux/linux_syscall.h> --- 4 unchanged lines hidden (view full) --- 41extern u_char linux_debug_map[]; 42#define ldebug(name) isclr(linux_debug_map, LINUX_SYS_linux_ ## name) 43#define ARGS(nm, fmt) "linux(%ld/%ld): "#nm"("fmt")\n", \ 44 (long)td->td_proc->p_pid, (long)td->td_tid 45#define LMSG(fmt) "linux(%ld/%ld): "fmt"\n", \ 46 (long)td->td_proc->p_pid, (long)td->td_tid 47#define LINUX_DTRACE linuxulator 48 |
49#ifdef MALLOC_DECLARE 50MALLOC_DECLARE(M_LINUX); 51#endif 52 | |
53#define LINUX_SHAREDPAGE (VM_MAXUSER_ADDRESS - PAGE_SIZE) 54#define LINUX_USRSTACK LINUX_SHAREDPAGE 55 56#define PTRIN(v) (void *)(v) 57#define PTROUT(v) (l_uintptr_t)(v) 58 59#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0) 60#define CP2(src,dst,sfld,dfld) do { (dst).dfld = (src).sfld; } while (0) --- 706 unchanged lines hidden --- | 49#define LINUX_SHAREDPAGE (VM_MAXUSER_ADDRESS - PAGE_SIZE) 50#define LINUX_USRSTACK LINUX_SHAREDPAGE 51 52#define PTRIN(v) (void *)(v) 53#define PTROUT(v) (l_uintptr_t)(v) 54 55#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0) 56#define CP2(src,dst,sfld,dfld) do { (dst).dfld = (src).sfld; } while (0) --- 706 unchanged lines hidden --- |