cdboot, pxeldr: make use of bootargs.h instead of redefining flag constants

Reviewed by:	jhb
MFC after:	1 month
This commit is contained in:
Andriy Gapon 2012-05-10 09:47:04 +00:00
parent fa782a2611
commit 3b135bc51c
4 changed files with 8 additions and 11 deletions

View File

@ -4,7 +4,9 @@ PROG= cdboot
STRIP=
BINMODE=${NOBINMODE}
NO_MAN=
SRCS= ${PROG}.s
SRCS= ${PROG}.S
CFLAGS+=-I${.CURDIR}/../common
ORG= 0x7c00

View File

@ -40,6 +40,8 @@
# off of.
#
#include <bootargs.h>
#
# Memory locations.
#
@ -62,11 +64,6 @@
.set AOUT_ENTRY,0x14 # entry point
.set AOUT_HEADER,MEM_PAGE_SIZE # size of the a.out header
#
# Flags for kargs->bootflags
#
.set KARGS_FLAGS_CD,0x1 # flag to indicate booting from
# CD loader
#
# Segment selectors.
#
.set SEL_SDATA,0x8 # Supervisor data

View File

@ -23,6 +23,8 @@ CFLAGS+=-DPROBE_KEYBOARD
CFLAGS+=-DALWAYS_SERIAL
.endif
CFLAGS+=-I${.CURDIR}/../common
LOADERBIN= ${.OBJDIR}/../loader/loader.bin
CLEANFILES+= ${BOOT}.tmp

View File

@ -26,6 +26,7 @@
*/
#include <sys/reboot.h>
#include <bootargs.h>
/*
* Memory locations.
@ -49,11 +50,6 @@
.set AOUT_SYMBOLS,0x10 # symbol table
.set AOUT_ENTRY,0x14 # entry point
.set AOUT_HEADER,MEM_PAGE_SIZE # size of the a.out header
/*
* Flags for kargs->bootflags
*/
.set KARGS_FLAGS_PXE,0x2 # flag to indicate booting from
# PXE loader
/*
* Segment selectors.
*/