diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-05-18 13:12:57 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-05-18 13:12:57 +0000 |
commit | 9aeab194c243007b888c2d3a3b9c6ac7bcf35f91 (patch) | |
tree | 812bfdfab3d8f273c7e43900ab1a91f49a98f962 /netbsd-2.0-xen-sparse | |
parent | 0e3449b666f66159411bb7f668450ef47116e0a1 (diff) | |
download | xen-9aeab194c243007b888c2d3a3b9c6ac7bcf35f91.tar.gz xen-9aeab194c243007b888c2d3a3b9c6ac7bcf35f91.tar.bz2 xen-9aeab194c243007b888c2d3a3b9c6ac7bcf35f91.zip |
bitkeeper revision 1.1443 (428b3f59xxbCVcbUBrHu1R1TkWcYhg)
Cleaner GDT interface. Xen now reserves the last 2 pages of a full-size
(16 page) GDT. A guest can register a GDT with up to 7k entries. Xen
automatically makes the GDT up to max size with empty page mappings,
and turns page faults in that area to #GP(selector).
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'netbsd-2.0-xen-sparse')
-rw-r--r-- | netbsd-2.0-xen-sparse/sys/arch/xen/i386/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netbsd-2.0-xen-sparse/sys/arch/xen/i386/machdep.c b/netbsd-2.0-xen-sparse/sys/arch/xen/i386/machdep.c index 54752025b6..54cf3fa619 100644 --- a/netbsd-2.0-xen-sparse/sys/arch/xen/i386/machdep.c +++ b/netbsd-2.0-xen-sparse/sys/arch/xen/i386/machdep.c @@ -1430,8 +1430,8 @@ initgdt() pmap_kenter_pa((vaddr_t)gdt, (uint32_t)gdt - KERNBASE, VM_PROT_READ); XENPRINTK(("loading gdt %lx, %d entries\n", frames[0] << PAGE_SHIFT, - LAST_RESERVED_GDT_ENTRY + 1)); - if (HYPERVISOR_set_gdt(frames, LAST_RESERVED_GDT_ENTRY + 1)) + NGDT); + if (HYPERVISOR_set_gdt(frames, NGDT)) panic("HYPERVISOR_set_gdt failed!\n"); lgdt_finish(); #endif |