| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
- Make setting machine type and getting geom conditional for future.
- Remove unused RAWBOOT and CDBOOT supports.
- Remove unneeded include.
- Fix warnings.
MFC after: 1 week
|
|
|
|
|
|
|
| |
Improve the algorithm the loader uses to choose a memory range for its
heap when using a range above 1MB.
MFC after: 1 week
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
| |
Various small whitespace and style fixes.
|
|
|
|
|
|
| |
too late (early?) to figure out what exactly.
Reported by: TAKAHASHI Yoshihiro
|
|
|
|
|
|
|
|
| |
video console which doesn't take any input from keyboard and hides
all output replacing it with ``spinning'' character (useful for
embedded products and custom installations).
Sponsored by: Sippy Software, Inc.
|
|
|
|
|
|
|
| |
Move the loader's entry point to 0x200000. This change is also needed
for pc98.
MFC after: 3 days
|
|
|
|
|
|
|
| |
uses the generic struct dirent, which happens to look identical to UFS's
struct direct. If BSD ever changes dirent then this will be a problem.
Submitted by: matthew dot fleming at isilon dot com
|
| |
|
|
|
|
|
| |
Teach the BIOS CD driver to use bounce buffers when the destination
address is > 1 MB.
|
|
|
|
| |
Teach the loader about the FAT partitions.
|
| |
|
| |
|
| |
|
|
|
|
| |
Submitted by: Jeremie Le Hen
|