Add BOOT_PXELDR_ALWAYS_SERIAL option which forces serial console.
This commit is contained in:
parent
0204ca844f
commit
27cb47196a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119714
@ -17,6 +17,11 @@ M4?= m4
|
||||
M4FLAGS+= -DPROBE_KEYBOARD
|
||||
.endif
|
||||
|
||||
.if defined(BOOT_PXELDR_ALWAYS_SERIAL)
|
||||
M4FLAGS+= -DALWAYS_SERIAL
|
||||
.endif
|
||||
|
||||
|
||||
.if exists(${.OBJDIR}/../loader)
|
||||
LOADERBIN= ${.OBJDIR}/../loader/loader.bin
|
||||
.else
|
||||
|
@ -110,6 +110,11 @@ start: cld # string ops inc
|
||||
orb $KARGS_FLAGS_PXE, 0x8(%bx) # kargs->bootflags |=
|
||||
# KARGS_FLAGS_PXE
|
||||
popl 0xc(%bx) # kargs->pxeinfo = *PXENV+
|
||||
ifdef(`ALWAYS_SERIAL',`
|
||||
#
|
||||
# set the RBX_SERIAL bit in the howto byte.
|
||||
orl $RB_SERIAL, (%bx) # enable serial console
|
||||
')
|
||||
ifdef(`PROBE_KEYBOARD',`
|
||||
#
|
||||
# Look at the BIOS data area to see if we have an enhanced keyboard. If not,
|
||||
|
@ -110,6 +110,11 @@ start: cld # string ops inc
|
||||
orb $KARGS_FLAGS_PXE, 0x8(%bx) # kargs->bootflags |=
|
||||
# KARGS_FLAGS_PXE
|
||||
popl 0xc(%bx) # kargs->pxeinfo = *PXENV+
|
||||
ifdef(`ALWAYS_SERIAL',`
|
||||
#
|
||||
# set the RBX_SERIAL bit in the howto byte.
|
||||
orl $RB_SERIAL, (%bx) # enable serial console
|
||||
')
|
||||
ifdef(`PROBE_KEYBOARD',`
|
||||
#
|
||||
# Look at the BIOS data area to see if we have an enhanced keyboard. If not,
|
||||
|
Loading…
Reference in New Issue
Block a user