linux.h (9b44bfc5560bf0cf1da18eaadb3a9da279a76efa) linux.h (0eef2f8a4e5f42f98983e352732b9d883d96c53a)
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

--- 752 unchanged lines hidden (view full) ---

761
762struct l_desc_struct {
763 unsigned long a,b;
764};
765
766
767#define LINUX_LOWERWORD 0x0000ffff
768
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

--- 752 unchanged lines hidden (view full) ---

761
762struct l_desc_struct {
763 unsigned long a,b;
764};
765
766
767#define LINUX_LOWERWORD 0x0000ffff
768
769/* macros which does the same thing as those in linux include/asm-um/ldt-i386.h
769/*
770 * macros which does the same thing as those in linux include/asm-um/ldt-i386.h
770 * these convert linux user-space descriptor to machine one
771 */
772#define LDT_entry_a(info) \
773 ((((info)->base_addr & LINUX_LOWERWORD) << 16) | ((info)->limit & LINUX_LOWERWORD))
774
775#define ENTRY_B_READ_EXEC_ONLY 9
776#define ENTRY_B_CONTENTS 10
777#define ENTRY_B_SEG_NOT_PRESENT 15

--- 68 unchanged lines hidden ---
771 * these convert linux user-space descriptor to machine one
772 */
773#define LDT_entry_a(info) \
774 ((((info)->base_addr & LINUX_LOWERWORD) << 16) | ((info)->limit & LINUX_LOWERWORD))
775
776#define ENTRY_B_READ_EXEC_ONLY 9
777#define ENTRY_B_CONTENTS 10
778#define ENTRY_B_SEG_NOT_PRESENT 15

--- 68 unchanged lines hidden ---