Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/bootxx pass errno through switch to prot...
details: https://anonhg.NetBSD.org/src/rev/ba43bde95a79
branches: trunk
changeset: 363365:ba43bde95a79
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Mar 06 18:35:43 2022 +0000
description:
pass errno through switch to protected mode.
diffstat:
sys/arch/i386/stand/bootxx/bootxx.S | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r cd339f453401 -r ba43bde95a79 sys/arch/i386/stand/bootxx/bootxx.S
--- a/sys/arch/i386/stand/bootxx/bootxx.S Sun Mar 06 17:54:52 2022 +0000
+++ b/sys/arch/i386/stand/bootxx/bootxx.S Sun Mar 06 18:35:43 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootxx.S,v 1.11 2019/07/11 03:49:51 msaitoh Exp $ */
+/* $NetBSD: bootxx.S,v 1.12 2022/03/06 18:35:43 mlelstv Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -79,6 +79,7 @@
push %edx
call _C_LABEL(boot1) /* C code to load /boot */
add $8, %esp
+ movw errno, %dx
call prot_to_real
.code16
@@ -94,7 +95,7 @@
boot_fail:
push %ax /* error string from boot1 */
- movw errno, %ax
+ movw %dx, %ax
aam /* largest errno is < 100 */
addw $('0' << 8) | '0', %ax /* to ascii */
rorw $8, %ax
Home |
Main Index |
Thread Index |
Old Index