| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
i386 comconsole: don't loop forever if hardware doesn't respond
- clear capability flags when hw timeouts
- retire comc_started status variable and directly use c_flags to see
if comconsole is selected for use
|
|
|
|
| |
add detection of serial console presence to btx and boot2-like blocks
|
|
|
|
| |
boot: use -march=i386 for both i386 and amd64 builds
|
|
|
|
|
|
|
|
|
|
|
|
| |
default compiler. This has two parts:
- Make sys/boot/pc98/boot2 always build with gcc for now, until we can
figure out a way to shrink it enough when building with clang.
- Since sys/boot/p98/cdboot uses .code16 directives, which are not yet
supported by clang's integrated assembler, use -no-integrated-as,
similar to sys/boot/i386/cdboot.
Reviewed by: nyan
MFC after: 1 week
|
|
|
|
| |
Approved by: adrian (co-mentor) (implicit)
|
|
|
|
| |
loader/i386: replace ugly inb/outb re-implementations with cpufunc.h
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- bunch of variables are turned into uint8_t.
- Remove unnecessary initializations.
|
|
|
|
|
|
| |
unnecessary 64-bit math on 32-bit machines.
Sponsored by: Google Summer of Code 2011
|
|
|
|
|
| |
Pointyhat to: avg
MFC after: 1 month
|
|
|
|
|
|
|
| |
use related definitions in i386 bootargs.h
Reviewed by: nyan, jhb
MFC after: 1 month
|
|
|
|
| |
MFC after: 1 month
|
|
|
|
|
| |
Fix boot2 to handle boot config files that only contain a custom path to
a loader or kernel.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.
Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang (disables -Werror)
- NO_WCAST_ALIGN.clang (disables -Wcast-align)
- NO_WFORMAT.clang (disables -Wformat and friends)
- CLANG_NO_IAS (disables integrated assembler)
- CLANG_OPT_SMALL (adds flags for extra small size optimizations)
As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf! For clang, use the following:
CC=clang
CXX=clang++
CPP=clang-cpp
MFC after: 2 weeks
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
| |
Add special loader environment variables 'comconsole_port' and
'comconsole_pcidev'.
MFC after: 2 weeks
|
|
|
|
|
| |
Submitted by: Kaho Toshikazu
MFC after: 1 week
|
|
|
|
|
| |
the carry and zero flags being set, respectively, in <btxv86.h> and use
them throughout the x86 boot code.
|
|
|
|
|
|
| |
precedence over the latter if it exists.
MFC after: 3 weeks
|
|
|
|
|
|
|
|
| |
Discussed on hackers and recommended for inclusion into 9.0 at the devsummit.
All support email to devin dteske at vicor dot ignoreme dot com .
Submitted by: dteske at vicor dot ignoreme dot com
Reviewed by: me and many others
|
|
|
|
|
|
| |
- Mark getc() as inline, this has no effect on gcc but helps clang.
- Move getc() body before xgetc() so gcc does not emit a warning about
function having no body.
|
|
|
|
| |
Build boot2 with -mregparm=3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. arch_loadaddr - used by platform code to adjust the address at which
the object gets loaded. Implement PC98 using this new interface instead
of using conditional compilation. For ELF objects the ELF header is
passed as the data pointer. For raw files it's the filename. Note that
ELF objects are first considered as raw files.
2. arch_loadseg - used by platform code to keep track of actual segments,
so that (instruction) caches can be flushed or translations can be
created. Both the ELF header as well as the program header are passed
to allow platform code to treat the kernel proper differently from any
additional modules and to have all the relevant details of the loaded
segment (e.g. protection).
|
|
|
|
|
|
| |
- bunch of variables are turned into uint8_t.
- the setting and reading of "fmt" in load() is removed.
- buf in printf() is made static to save space.
|
|
|
|
|
|
|
|
|
| |
This patch shrinks boot2 a little.
o It switches kname to be just a pointer instead of an array.
o It changes ioctl to unsigned from uint8_t.
o It changes the second keyhit limit to 3 seconds from 5.
o It removes bi_basemem/bi_extmem/bi_memsizes_valid setting.
|
|
|
|
|
| |
Suggested by: Rob Farmer <rfarmer at predatorlabs.net>
MFC after: 3 days
|
|
|
|
|
| |
PR: 121490
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
from uint16_t back to uint32_t. The actual option bitmasks (RB_* and
RBX_*) assume at least a 32 bit variable.
Submitted by: rdivacky
|
|
|
|
|
| |
This contains many improvements, primarily better C++ support, an
integrated assembler for x86 and support for -pg.
|
|
|
|
| |
Remove reading of symbols from a.out loaded files.
|
|
|
|
|
| |
Apply a few small optimizations to boot2's code, to make it shrink a
little further.
|
| |
|
|
|
|
| |
It's required by the gpart to write bootcode.
|
|
|
|
|
|
| |
want to avoid using any "advanced" CPU features:
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
|
|
|
|
|
|
|
| |
under sys/boot/{i386,pc98}, since these are already added via
sys/boot/{i386,pc98}/Makefile.inc.
Submitted by: arundel
|
|
|
|
| |
So use i386 version.
|
|
|
|
|
| |
Avoid using memcpy() for copying 32bit chunks. This shrinks
the resulting code a little.
|
|
|
|
|
|
|
|
|
|
|
|
| |
and sys/boot/pc98/boot2, do not simply assign 'gcc' to CC, since compile
flags are sometimes passed via this variable, for example during the
build32 stage on amd64. This caused the 32-bit libobjc build on amd64
to fail.
Instead, only replace the first instance of clang (if any, including
optional path) with gcc, and leave the arguments alone.
Approved-by: rpaulo (mentor)
|
|
|
|
|
|
|
|
| |
which also avoids NULL pointer arithmetic, as suggested by jhb. The
available space goes from 11 bytes to 7.
Reviewed by: nyan
Approved by: rpaulo (mentor)
|
|
|
|
|
|
|
| |
undefined behaviour) in sys/boot/pc98/boot2/boot2.c.
Reviewed by: nyan
Approved by: rpaulo (mentor)
|
|
|
|
|
|
|
| |
boot2. Unfortunately both still are too big when compiled with clang.
Reviewed by: nyan
Approved by: rpaulo (mentor)
|
|
|
|
| |
Correctly setup LDADD with regards to libstand.
|
|
|
|
|
|
|
| |
GCC forwards the -N flag directly to ld. This flag is not documented and
not supported by (for example) Clang. Just use -Wl,-N.
Submitted by: Pawel Worach
|
|
|
|
|
| |
Submitted by: Marc Balmer <marc@msys.ch>
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's based on the newest i386's one and has the advantage of:
- ELF binary support.
- UFS2 filesystem support.
- Many FreeBSD slices support on a disk.
Tested by: SATOU Tomokazu ( tomo1770 _ maple _ ocn _ ne _ jp ),
WATANABE Kazuhiro ( CQG00620 _ nifty _ ne _ jp ) and
nyan
MFC after: 2 week
Happy New Year in Japan!!
|
|
|
|
| |
MFC after: 2 week
|
|
|
|
| |
MFC after: 2 week
|