Subversion Repositories HelenOS-historic

Rev

Rev 1187 | Rev 1203 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1187 Rev 1201
Line 54... Line 54...
54
 
54
 
55
#define DPL_KERNEL  (PL_KERNEL<<5)
55
#define DPL_KERNEL  (PL_KERNEL<<5)
56
#define DPL_USER    (PL_USER<<5)
56
#define DPL_USER    (PL_USER<<5)
57
 
57
 
58
#define TSS_BASIC_SIZE  104
58
#define TSS_BASIC_SIZE  104
-
 
59
#define TSS_IOMAP_SIZE  (16*1024+1) /* 16K for bitmap + 1 terminating byte for convenience */
59
 
60
 
60
#ifndef __ASM__
61
#ifndef __ASM__
61
 
62
 
62
#include <arch/types.h>
63
#include <arch/types.h>
63
#include <typedefs.h>
64
#include <typedefs.h>
Line 129... Line 130...
129
    unsigned : 16;
130
    unsigned : 16;
130
    __u16 ldtr;
131
    __u16 ldtr;
131
    unsigned : 16;
132
    unsigned : 16;
132
    unsigned : 16;
133
    unsigned : 16;
133
    __u16 iomap_base;
134
    __u16 iomap_base;
134
    __u8 iomap[0x10000+1];  /* 64K + 1 terminating byte */
135
    __u8 iomap[TSS_IOMAP_SIZE];
135
} __attribute__ ((packed));
136
} __attribute__ ((packed));
136
typedef struct tss tss_t;
137
typedef struct tss tss_t;
137
 
138
 
138
extern ptr_16_32_t gdtr;
139
extern ptr_16_32_t gdtr;
139
extern ptr_16_32_t bootstrap_gdtr;
140
extern ptr_16_32_t bootstrap_gdtr;