162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __UM_DESC_H
362306a36Sopenharmony_ci#define __UM_DESC_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci/* Taken from asm-i386/desc.h, it's the only thing we need. The rest wouldn't
662306a36Sopenharmony_ci * compile, and has never been used. */
762306a36Sopenharmony_ci#define LDT_empty(info) (\
862306a36Sopenharmony_ci	(info)->base_addr	== 0	&& \
962306a36Sopenharmony_ci	(info)->limit		== 0	&& \
1062306a36Sopenharmony_ci	(info)->contents	== 0	&& \
1162306a36Sopenharmony_ci	(info)->read_exec_only	== 1	&& \
1262306a36Sopenharmony_ci	(info)->seg_32bit	== 0	&& \
1362306a36Sopenharmony_ci	(info)->limit_in_pages	== 0	&& \
1462306a36Sopenharmony_ci	(info)->seg_not_present	== 1	&& \
1562306a36Sopenharmony_ci	(info)->useable		== 0	)
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#endif
18