1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Add a fake memory descriptor for the I/O port space.

This commit is contained in:
Doug Rabson 2001-09-15 18:29:42 +00:00
parent 56f6eed759
commit c5620b0763
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83521
2 changed files with 14 additions and 2 deletions

View File

@ -325,7 +325,7 @@ bi_load(struct bootinfo *bi, struct preloaded_file *fp, char *args)
/* Describe the SKI memory map. */
bi->bi_memmap = (u_int64_t)(bi + 1);
bi->bi_memmap_size = 1 * sizeof(EFI_MEMORY_DESCRIPTOR);
bi->bi_memmap_size = 2 * sizeof(EFI_MEMORY_DESCRIPTOR);
bi->bi_memdesc_size = sizeof(EFI_MEMORY_DESCRIPTOR);
bi->bi_memdesc_version = 1;
@ -337,5 +337,11 @@ bi_load(struct bootinfo *bi, struct preloaded_file *fp, char *args)
memp[0].NumberOfPages = (64L*1024*1024)>>12;
memp[0].Attribute = EFI_MEMORY_WB;
memp[1].Type = EfiMemoryMappedIOPortSpace;
memp[1].PhysicalStart = 0xffffc000000;
memp[1].VirtualStart = 0;
memp[1].NumberOfPages = (64L*1024*1024)>>12;
memp[1].Attribute = EFI_MEMORY_UC;
return(0);
}

View File

@ -325,7 +325,7 @@ bi_load(struct bootinfo *bi, struct preloaded_file *fp, char *args)
/* Describe the SKI memory map. */
bi->bi_memmap = (u_int64_t)(bi + 1);
bi->bi_memmap_size = 1 * sizeof(EFI_MEMORY_DESCRIPTOR);
bi->bi_memmap_size = 2 * sizeof(EFI_MEMORY_DESCRIPTOR);
bi->bi_memdesc_size = sizeof(EFI_MEMORY_DESCRIPTOR);
bi->bi_memdesc_version = 1;
@ -337,5 +337,11 @@ bi_load(struct bootinfo *bi, struct preloaded_file *fp, char *args)
memp[0].NumberOfPages = (64L*1024*1024)>>12;
memp[0].Attribute = EFI_MEMORY_WB;
memp[1].Type = EfiMemoryMappedIOPortSpace;
memp[1].PhysicalStart = 0xffffc000000;
memp[1].VirtualStart = 0;
memp[1].NumberOfPages = (64L*1024*1024)>>12;
memp[1].Attribute = EFI_MEMORY_UC;
return(0);
}