浏览代码

Use internal 16-bit stack for added safety.

tags/v0.9.3
Michael Brown 17 年前
父节点
当前提交
f8a0b5f682
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/arch/i386/prefix/pxeprefix.S

+ 4
- 0
src/arch/i386/prefix/pxeprefix.S 查看文件

700
 	/* Install Etherboot */
700
 	/* Install Etherboot */
701
 	call	install
701
 	call	install
702
 
702
 
703
+	/* Set up real-mode stack */
704
+	movw	%bx, %ss
705
+	movw	$_estack16, %sp
706
+
703
 #ifdef PXELOADER_KEEP_UNDI
707
 #ifdef PXELOADER_KEEP_UNDI
704
 	/* Copy our undi_device structure to the preloaded_undi variable */
708
 	/* Copy our undi_device structure to the preloaded_undi variable */
705
 	movw	%bx, %es
709
 	movw	%bx, %es

正在加载...
取消
保存