PERFORCE change 133440 for review
Kip Macy
kmacy at FreeBSD.org
Wed Jan 16 15:23:26 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133440
Change 133440 by kmacy at pandemonium:kmacy:xen31 on 2008/01/16 23:22:25
increase the segment sizes so that we'll be able to access the machine to physical table on
machines with up to 16GB of RAM
Affected files ...
.. //depot/projects/xen31/sys/i386/i386/machdep.c#12 edit
Differences ...
==== //depot/projects/xen31/sys/i386/i386/machdep.c#12 (text+ko) ====
@@ -2159,6 +2159,10 @@
#ifdef XEN
extern vm_paddr_t *pdir_shadow;
+
+#define MTOPSIZE (1<<(12 + PAGE_SHIFT))
+
+
void
init386(int first)
{
@@ -2200,14 +2204,14 @@
* to physical page frames - hence we need to be able to
* access 4GB - (64MB - 4MB + 64k)
*/
- gdt_segs[GPRIV_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
- gdt_segs[GUFS_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
- gdt_segs[GUGS_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
- gdt_segs[GCODE_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
- gdt_segs[GDATA_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
- gdt_segs[GUCODE_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
- gdt_segs[GUDATA_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
- gdt_segs[GBIOSLOWMEM_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + 256*PAGE_SIZE);
+ gdt_segs[GPRIV_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
+ gdt_segs[GUFS_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
+ gdt_segs[GUGS_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
+ gdt_segs[GCODE_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
+ gdt_segs[GDATA_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
+ gdt_segs[GUCODE_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
+ gdt_segs[GUDATA_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
+ gdt_segs[GBIOSLOWMEM_SEL].ssd_limit = atop(HYPERVISOR_VIRT_START + MTOPSIZE);
pc = &__pcpu[0];
gdt_segs[GPRIV_SEL].ssd_base = (int) pc;
More information about the p4-projects
mailing list