> + PageTableBufferSize = 0; > + PageTable = 0; > + Buffer = NULL; > + MapAttribute.Uint64 = 0; > + MapAttribute.Bits.Present = 1; > + MapMask.Uint64 = 0; > + MapMask.Bits.Present = 1; > + // > + // Create Page table to cover [0, 2G]. All fields of MapMask should be set. > + // > + Status = PageTableMap (&PageTable, PagingMode, Buffer, > &PageTableBufferSize, 0, SIZE_2GB, &MapAttribute, &MapMask); > + UT_ASSERT_EQUAL (Status, RETURN_INVALID_PARAMETER); > + MapMask.Uint64 = MAX_UINT64; > + Status = PageTableMap (&PageTable, PagingMode, Buffer, > &PageTableBufferSize, 0, SIZE_2GB, &MapAttribute, &MapMask); > + UT_ASSERT_EQUAL (Status, RETURN_BUFFER_TOO_SMALL); > + Buffer = AllocatePages (EFI_SIZE_TO_PAGES (PageTableBufferSize)); > + Status = PageTableMap (&PageTable, PagingMode, Buffer, > &PageTableBufferSize, 0, SIZE_2GB, &MapAttribute, &MapMask); > + UT_ASSERT_EQUAL (Status, RETURN_SUCCESS); > + > + // > + // Update Page table to set [2G - 8K, 2G] from present to non-present. All > fields of MapMask except present should be set.
"should not be set"? > + > + // > + // Update Page table to set [2G - 8K, 2G] as present and RW. All fields of > MapMask should not be set. "should be set"? -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#101676): https://edk2.groups.io/g/devel/message/101676 Mute This Topic: https://groups.io/mt/97796385/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-