|
@@ -558,14 +558,11 @@ alloc_basemem:
|
558
|
558
|
shlw $6, %ax
|
559
|
559
|
|
560
|
560
|
/* Calculate .data16 segment address */
|
561
|
|
- subw $_data16_memsz_pgh, %ax
|
|
561
|
+ subw $_data16_memsz_ppgh, %ax
|
562
|
562
|
pushw %ax
|
563
|
563
|
|
564
|
|
- /* Calculate .text16 segment address. Round down to ensure
|
565
|
|
- * low bits are zero, to speed up mode transitions under KVM.
|
566
|
|
- */
|
567
|
|
- subw $_text16_memsz_pgh, %ax
|
568
|
|
- andb $~0x03, %al
|
|
564
|
+ /* Calculate .text16 segment address */
|
|
565
|
+ subw $_text16_memsz_ppgh, %ax
|
569
|
566
|
pushw %ax
|
570
|
567
|
|
571
|
568
|
/* Update FBMS */
|
|
@@ -616,8 +613,8 @@ free_basemem:
|
616
|
613
|
|
617
|
614
|
/* OK to free memory */
|
618
|
615
|
movw %cs, %ax
|
619
|
|
- addw $_text16_memsz_pgh, %ax
|
620
|
|
- addw $_data16_memsz_pgh, %ax
|
|
616
|
+ addw $_text16_memsz_ppgh, %ax
|
|
617
|
+ addw $_data16_memsz_ppgh, %ax
|
621
|
618
|
shrw $6, %ax
|
622
|
619
|
movw %ax, %fs:0x13
|
623
|
620
|
xorw %ax, %ax
|