Changed the paging link management
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1506
This commit is contained in:
parent
de536dfae0
commit
5573af89f6
3 changed files with 43 additions and 46 deletions
|
@ -162,6 +162,7 @@ static Bit8u EMM_MapPage(Bitu phys_page,Bit16u handle,Bit16u log_page) {
|
|||
PAGING_MapPage(EMM_PAGEFRAME4K+phys_page*4+i,memh);
|
||||
memh=MEM_NextHandle(memh);
|
||||
}
|
||||
PAGING_ClearTLB();
|
||||
return EMM_NO_ERROR;
|
||||
} else if (log_page==NULL_PAGE) {
|
||||
/* Unmapping it is */
|
||||
|
@ -169,6 +170,7 @@ static Bit8u EMM_MapPage(Bitu phys_page,Bit16u handle,Bit16u log_page) {
|
|||
emm_mappings[phys_page].page=NULL_PAGE;
|
||||
for (Bitu i=0;i<4;i++)
|
||||
PAGING_MapPage(EMM_PAGEFRAME4K+phys_page*4+i,EMM_PAGEFRAME4K+phys_page*4+i);
|
||||
PAGING_ClearTLB();
|
||||
return EMM_NO_ERROR;
|
||||
} else {
|
||||
/* Illegal logical page it is */
|
||||
|
@ -442,6 +444,7 @@ static Bit8u MemoryRegion(void) {
|
|||
return EMM_NO_ERROR;
|
||||
}
|
||||
|
||||
|
||||
static Bitu INT67_Handler(void) {
|
||||
Bitu i;
|
||||
switch (reg_ah) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue