소스 검색

Use internal 16-bit stack for added safety.

tags/v0.9.3
Michael Brown 16 년 전
부모
커밋
f8a0b5f682
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      src/arch/i386/prefix/pxeprefix.S

+ 4
- 0
src/arch/i386/prefix/pxeprefix.S 파일 보기

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

Loading…
취소
저장