vmxassist: Include terminating 0xff byte in TSS I/O bitmap.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
Keir Fraser committed 2007-05-20 19:05:10 +01:00
1 parent 9ae5c53e34
commit cbf6afa30d
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ struct tss {
#ifdef ENABLE_VME
unsigned long int_redir[8];
#endif
unsigned char iomap[8192];
unsigned char iomap[8193];
};
static inline void
+1
View File
@@ -127,6 +127,7 @@ setup_gdt(void)
tss.ss0 = DATA_SELECTOR;
tss.esp0 = (unsigned) stack_top;
tss.iomap_base = offsetof(struct tss, iomap);
tss.iomap[sizeof(tss.iomap)-1] = 0xff;
/* initialize gdt's tss selector */
gdt[TSS_SELECTOR / sizeof(gdt[0])] |=
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.