Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __UM_DESC_H
0003 #define __UM_DESC_H
0004 
0005 /* Taken from asm-i386/desc.h, it's the only thing we need. The rest wouldn't
0006  * compile, and has never been used. */
0007 #define LDT_empty(info) (\
0008     (info)->base_addr   == 0    && \
0009     (info)->limit       == 0    && \
0010     (info)->contents    == 0    && \
0011     (info)->read_exec_only  == 1    && \
0012     (info)->seg_32bit   == 0    && \
0013     (info)->limit_in_pages  == 0    && \
0014     (info)->seg_not_present == 1    && \
0015     (info)->useable     == 0    )
0016 
0017 #endif