1/*- 2 * Copyright (c) 2004 Tim J. Robbins 3 * Copyright (c) 2001 Doug Rabson 4 * Copyright (c) 1994-1996 S��ren Schmidt 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/amd64/linux32/linux.h 283421 2015-05-24 15:51:18Z dchagin $ |
31 */ 32 33#ifndef _AMD64_LINUX_H_ 34#define _AMD64_LINUX_H_ 35 36#include <amd64/linux32/linux32_syscall.h> 37 38/* 39 * debugging support 40 */ 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 linuxulator32 48 |
49#define LINUX32_MAXUSER ((1ul << 32) - PAGE_SIZE) 50#define LINUX32_SHAREDPAGE (LINUX32_MAXUSER - PAGE_SIZE) 51#define LINUX32_USRSTACK LINUX32_SHAREDPAGE 52 53/* XXX 16 = sizeof(linux32_ps_strings) */ 54#define LINUX32_PS_STRINGS (LINUX32_USRSTACK - 16) 55#define LINUX32_MAXDSIZ (512 * 1024 * 1024) /* 512MB */ 56#define LINUX32_MAXSSIZ (64 * 1024 * 1024) /* 64MB */ --- 744 unchanged lines hidden --- |