Add a new compile-time tweak to BTX. If you set the make(1) variable
BOOT_BTX_NOHANG, then BTX will be compiled with the appropriate flags so that it reboots after a fault instead of hanging forever. Requested by: ps Approved by: rnordier
This commit is contained in:
parent
540bc8d6e1
commit
6bd9abd49a
@ -6,6 +6,14 @@ M4?= m4
|
||||
M4FLAGS+= -DPAGING
|
||||
.endif
|
||||
|
||||
.if defined(BOOT_BTX_NOHANG)
|
||||
BOOT_BTX_FLAGS=0x1
|
||||
.else
|
||||
BOOT_BTX_FLAGS=0x0
|
||||
.endif
|
||||
|
||||
AFLAGS+= --defsym BTX_FLAGS=${BOOT_BTX_FLAGS}
|
||||
|
||||
ORG= 0x9000
|
||||
|
||||
all: btx
|
||||
|
@ -104,7 +104,7 @@ btx_hdr: .byte 0xeb # Machine ID
|
||||
.ascii "BTX" # Magic
|
||||
.byte 0x1 # Major version
|
||||
.byte 0x1 # Minor version
|
||||
.byte 0x0 # Flags
|
||||
.byte BTX_FLAGS # Flags
|
||||
.word PAG_CNT-MEM_ORG>>0xc # Paging control
|
||||
.word break-start # Text size
|
||||
.long 0x0 # Entry address
|
||||
|
@ -104,7 +104,7 @@ btx_hdr: .byte 0xeb # Machine ID
|
||||
.ascii "BTX" # Magic
|
||||
.byte 0x1 # Major version
|
||||
.byte 0x1 # Minor version
|
||||
.byte 0x0 # Flags
|
||||
.byte BTX_FLAGS # Flags
|
||||
.word PAG_CNT-MEM_ORG>>0xc # Paging control
|
||||
.word break-start # Text size
|
||||
.long 0x0 # Entry address
|
||||
|
Loading…
x
Reference in New Issue
Block a user