xref: /openbmc/linux/arch/x86/um/asm/desc.h (revision b2441318)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2c5cc32feSAl Viro #ifndef __UM_DESC_H
3c5cc32feSAl Viro #define __UM_DESC_H
4c5cc32feSAl Viro 
5c5cc32feSAl Viro /* Taken from asm-i386/desc.h, it's the only thing we need. The rest wouldn't
6c5cc32feSAl Viro  * compile, and has never been used. */
7c5cc32feSAl Viro #define LDT_empty(info) (\
8c5cc32feSAl Viro 	(info)->base_addr	== 0	&& \
9c5cc32feSAl Viro 	(info)->limit		== 0	&& \
10c5cc32feSAl Viro 	(info)->contents	== 0	&& \
11c5cc32feSAl Viro 	(info)->read_exec_only	== 1	&& \
12c5cc32feSAl Viro 	(info)->seg_32bit	== 0	&& \
13c5cc32feSAl Viro 	(info)->limit_in_pages	== 0	&& \
14c5cc32feSAl Viro 	(info)->seg_not_present	== 1	&& \
15c5cc32feSAl Viro 	(info)->useable		== 0	)
16c5cc32feSAl Viro 
17c5cc32feSAl Viro #endif
18