|  | @@ -97,18 +97,18 @@ init_librm:
 | 
		
	
		
			
			| 97 | 97 |  	pushl	%eax
 | 
		
	
		
			
			| 98 | 98 |  	pushl	%ebx
 | 
		
	
		
			
			| 99 | 99 |  
 | 
		
	
		
			
			| 100 |  | -	/* Store _virt_offset and set up virtual_cs and virtual_ds segments */
 | 
		
	
		
			
			|  | 100 | +	/* Store virt_offset and set up virtual_cs and virtual_ds segments */
 | 
		
	
		
			
			| 101 | 101 |  	movl	%edi, %eax
 | 
		
	
		
			
			| 102 | 102 |  	movw	$virtual_cs, %bx
 | 
		
	
		
			
			| 103 | 103 |  	call	set_seg_base
 | 
		
	
		
			
			| 104 | 104 |  	movw	$virtual_ds, %bx
 | 
		
	
		
			
			| 105 | 105 |  	call	set_seg_base	
 | 
		
	
		
			
			| 106 |  | -	movl	%edi, _virt_offset
 | 
		
	
		
			
			|  | 106 | +	movl	%edi, rm_virt_offset
 | 
		
	
		
			
			| 107 | 107 |  
 | 
		
	
		
			
			| 108 | 108 |  	/* Negate virt_offset */
 | 
		
	
		
			
			| 109 | 109 |  	negl	%edi
 | 
		
	
		
			
			| 110 | 110 |  		
 | 
		
	
		
			
			| 111 |  | -	/* Store rm_cs and _text16, set up real_cs segment */
 | 
		
	
		
			
			|  | 111 | +	/* Store rm_cs and text16, set up real_cs segment */
 | 
		
	
		
			
			| 112 | 112 |  	xorl	%eax, %eax
 | 
		
	
		
			
			| 113 | 113 |  	movw	%cs, %ax
 | 
		
	
		
			
			| 114 | 114 |  	movw	%ax, rm_cs
 | 
		
	
	
		
			
			|  | @@ -116,9 +116,9 @@ init_librm:
 | 
		
	
		
			
			| 116 | 116 |  	movw	$real_cs, %bx
 | 
		
	
		
			
			| 117 | 117 |  	call	set_seg_base
 | 
		
	
		
			
			| 118 | 118 |  	addr32 leal	(%eax, %edi), %ebx
 | 
		
	
		
			
			| 119 |  | -	movl	%ebx, _text16
 | 
		
	
		
			
			|  | 119 | +	movl	%ebx, rm_text16
 | 
		
	
		
			
			| 120 | 120 |  
 | 
		
	
		
			
			| 121 |  | -	/* Store rm_ds and _data16, set up real_ds segment */
 | 
		
	
		
			
			|  | 121 | +	/* Store rm_ds and data16, set up real_ds segment */
 | 
		
	
		
			
			| 122 | 122 |  	xorl	%eax, %eax
 | 
		
	
		
			
			| 123 | 123 |  	movw	%ds, %ax
 | 
		
	
		
			
			| 124 | 124 |  	movw	%ax, %cs:rm_ds
 | 
		
	
	
		
			
			|  | @@ -126,7 +126,7 @@ init_librm:
 | 
		
	
		
			
			| 126 | 126 |  	movw	$real_ds, %bx
 | 
		
	
		
			
			| 127 | 127 |  	call	set_seg_base
 | 
		
	
		
			
			| 128 | 128 |  	addr32 leal	(%eax, %edi), %ebx
 | 
		
	
		
			
			| 129 |  | -	movl	%ebx, _data16
 | 
		
	
		
			
			|  | 129 | +	movl	%ebx, rm_data16
 | 
		
	
		
			
			| 130 | 130 |  
 | 
		
	
		
			
			| 131 | 131 |  	/* Set GDT and IDT base */
 | 
		
	
		
			
			| 132 | 132 |  	movl	%eax, gdt_base
 | 
		
	
	
		
			
			|  | @@ -182,12 +182,12 @@ real_to_prot:
 | 
		
	
		
			
			| 182 | 182 |  	movw	%cs:rm_ds, %ax
 | 
		
	
		
			
			| 183 | 183 |  	movw	%ax, %ds
 | 
		
	
		
			
			| 184 | 184 |  
 | 
		
	
		
			
			| 185 |  | -	/* Add _virt_offset, _text16 and _data16 to stack to be
 | 
		
	
		
			
			|  | 185 | +	/* Add virt_offset, text16 and data16 to stack to be
 | 
		
	
		
			
			| 186 | 186 |  	 * copied, and also copy the return address.
 | 
		
	
		
			
			| 187 | 187 |  	 */
 | 
		
	
		
			
			| 188 |  | -	pushl	_virt_offset
 | 
		
	
		
			
			| 189 |  | -	pushl	_text16
 | 
		
	
		
			
			| 190 |  | -	pushl	_data16
 | 
		
	
		
			
			|  | 188 | +	pushl	rm_virt_offset
 | 
		
	
		
			
			|  | 189 | +	pushl	rm_text16
 | 
		
	
		
			
			|  | 190 | +	pushl	rm_data16
 | 
		
	
		
			
			| 191 | 191 |  	addw	$16, %cx /* %ecx must be less than 64kB anyway */
 | 
		
	
		
			
			| 192 | 192 |  
 | 
		
	
		
			
			| 193 | 193 |  	/* Real-mode %ss:%sp => %ebp:%edx and virtual address => %esi */
 | 
		
	
	
		
			
			|  | @@ -197,7 +197,7 @@ real_to_prot:
 | 
		
	
		
			
			| 197 | 197 |  	movl	%ebp, %eax
 | 
		
	
		
			
			| 198 | 198 |  	shll	$4, %eax
 | 
		
	
		
			
			| 199 | 199 |  	addr32 leal (%eax,%edx), %esi
 | 
		
	
		
			
			| 200 |  | -	subl	_virt_offset, %esi
 | 
		
	
		
			
			|  | 200 | +	subl	rm_virt_offset, %esi
 | 
		
	
		
			
			| 201 | 201 |  
 | 
		
	
		
			
			| 202 | 202 |  	/* Switch to protected mode */
 | 
		
	
		
			
			| 203 | 203 |  	cli
 | 
		
	
	
		
			
			|  | @@ -557,9 +557,9 @@ pm_esp:	.long _estack
 | 
		
	
		
			
			| 557 | 557 |   */
 | 
		
	
		
			
			| 558 | 558 |  	/* Internal copies, created by init_librm (which runs in real mode) */
 | 
		
	
		
			
			| 559 | 559 |  	.section ".data16", "aw", @progbits
 | 
		
	
		
			
			| 560 |  | -_virt_offset:	.long 0
 | 
		
	
		
			
			| 561 |  | -_text16:	.long 0
 | 
		
	
		
			
			| 562 |  | -_data16:	.long 0
 | 
		
	
		
			
			|  | 560 | +rm_virt_offset:	.long 0
 | 
		
	
		
			
			|  | 561 | +rm_text16:	.long 0
 | 
		
	
		
			
			|  | 562 | +rm_data16:	.long 0
 | 
		
	
		
			
			| 563 | 563 |  
 | 
		
	
		
			
			| 564 | 564 |  	/* Externally-visible copies, created by real_to_prot */
 | 
		
	
		
			
			| 565 | 565 |  	.section ".data", "aw", @progbits
 |