Commit Graph

987 Commits

Author SHA1 Message Date
christos
035ebb230e one default is better than two 2015-12-13 21:03:31 +00:00
christos
317883ba5f better than returning random errors. 2015-12-13 19:51:53 +00:00
mlelstv
75a9f56358 PR 50516 bad switch statement.
Adding some comments.
2015-12-11 08:04:20 +00:00
uebayasi
ea72de740f Order library object build. 2015-09-07 03:44:19 +00:00
uebayasi
9068ec741b Sprinkle more done messages. 2015-09-07 03:20:18 +00:00
uebayasi
dd204a345e In kernel lib build, print message when things not only start bug also end. 2015-09-06 15:34:55 +00:00
uebayasi
0b2ec30cdb ${PROG} depends on ${LDSCRIPT}. 2015-08-20 11:38:27 +00:00
khorben
64a1eb60ad Also document the "splash" command in boot(8) 2015-06-11 15:56:53 +00:00
mrg
f0a309f213 remove HAVE_GCC=45 fragment. 2015-04-16 08:38:36 +00:00
martin
3f4cb665b2 Compile the bootblocks for i386 CPUs, even when the main target architecture
is amd64.
Fixes PR port-i386/49725.
2015-03-08 19:47:17 +00:00
jakllsch
026c5d5a6d While the old gpt.S mbr code looks at both primary and alternate GPT
partition tables, mbrgpt.S and DKWEDGE_METHOD_GPT only look in the
primary.  Align the bootxx/boot2 biosdisk code with this so as to avoid
situations where the disk becomes unbootable when it has an undestroyed
secondary GPT.
2015-01-18 20:18:07 +00:00
christos
2975c78d57 Restore previous behavior: "boot -s" == "boot netbsd -s"
Instead of ignoring the flags and doing the default boot. Merge some
extraneous code.
XXX: Find the PR for this, close it and pullup to -7
2015-01-16 03:45:53 +00:00
isaki
7b2cf7659d Unify all arch/*/stand's atoi() to MI libsa.
lib/libsa/atoi.c was separated from lib/libsa/bootcfg.c.
PR/49084
2014-08-10 07:40:49 +00:00
erh
a57dc65e45 Fix bootxx_* and boot on machines where the bios sets high bits of %eax on success. 2014-07-19 14:50:21 +00:00
rtr
e9c95bf579 patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
2014-06-28 09:16:18 +00:00
dsl
2ea4518b97 Add -fno-asynchronous-unwind-tables -fno-exceptions to gcc builds.
One of these (probably the first) is needed to stop the eh-frame
section being created.
The eh_frame section is loadable and bloats the boot images.
This might be enough to make pxeboot work.
2014-05-01 18:37:26 +00:00
uebayasi
e9a654c6e7 Use ldscript. Identical output confirmed. 2014-04-14 15:05:19 +00:00
uebayasi
3645dc518b Other boot loaders name ELF *.sym, not *.syms. Follow that convention. 2014-04-14 13:04:44 +00:00
christos
8e3bf1eb2b make this more attractive (to me). 2014-04-08 15:34:18 +00:00
joerg
3c74afcfc8 Unbreak clang build by restricting -O0 hack to gcc. 2014-04-08 13:56:04 +00:00
christos
ad33dd774c XXX: gcc-4.8 bug. Passes wrong arguments to biosdisk_read(). Turn optimization
off.
2014-04-07 21:09:55 +00:00
jakllsch
62a5b099db Misc WARNS=4 fixes. 2014-04-06 19:18:00 +00:00
jakllsch
ee69c9e8f4 Use __dead. 2014-04-06 19:11:26 +00:00
christos
93100edccb kill sprintf. 2014-03-26 17:58:57 +00:00
christos
5c08b734f4 allow LS to be commented out 2014-03-20 01:15:29 +00:00
joerg
375e4d138e Only realprot.S still needs to be built with GNU as. 2014-02-14 20:34:27 +00:00
joerg
3d66511c09 Reduce amount of -no-integrated-as on x86 as .code16 is now supported by
LLVM.
2014-01-15 22:25:22 +00:00
tsutsui
8c436a9898 Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.
XXX: probabry we should have bsd.saprog.mk or something.
2014-01-12 15:26:28 +00:00
jakllsch
f5ce59053c fix style and whitespace nits 2014-01-10 17:40:51 +00:00
jakllsch
3f412a1c4c Make name argument to module_add_common const; use this to allow the libsa
fsmod string to soon become const.
2014-01-05 21:36:50 +00:00
jakllsch
7cf250db21 No need to return a empty string literal of the wrong const-ness when we
already have a empty string of the correct const-ness.
2014-01-05 20:52:57 +00:00
jakllsch
327f70c7e1 don't shadow local variable 2014-01-05 20:49:20 +00:00
christos
ea7d4d717c undo the linker script hack now that the linker scripts do this. 2014-01-04 20:18:50 +00:00
christos
a791c1b86a remove commented out -fno-reorder-functions 2014-01-01 22:07:54 +00:00
christos
f211905aff Use a custom ldscript so that we can keep boot_start at 0. 2014-01-01 22:06:13 +00:00
christos
eb2d28f6ce Provide a boot ldscript that puts the text.unlikely section after the text
section so that boot_start gets placed first. We also set the entry and the
start address, although we still override them from the command line.
This is a copy of elf_i386.xbn
2014-01-01 22:05:48 +00:00
jakllsch
ba3004d138 Zero out on-stack 'marks' array before first use.
This is needed so the MARK_DATA index is properly filled in.
2013-12-30 21:45:51 +00:00
jakllsch
28bbad2d7d Obtain CR0_PE constant from <x86/specialreg.h> rather than a local #define. 2013-12-24 19:00:56 +00:00
jakllsch
638fb1b218 Use the size of what's at the bootinfo_userconf pointer, not the size
of the pointer itself.
2013-11-27 18:29:45 +00:00
jakllsch
9c656bb681 The x86 kernel entry point stack arguments are always 32-bit, even on amd64. 2013-11-24 17:20:00 +00:00
jakllsch
156a3d4cd5 use <i386/multiboot.h> instead of <machine/multiboot.h> so this can be
compiled for amd64
2013-11-24 17:17:48 +00:00
jakllsch
960017fd29 cast from 32-bit integer to void * though uintptr_t to avoid warnings
when compiling for x86_64.
2013-11-24 17:16:28 +00:00
jakllsch
aa37094d90 Bring arch/i386/stand bootinfo structure in line with the kernel's
fixed-layout understanding of it.
2013-11-18 03:52:45 +00:00
christos
89392a8d06 provide an ldscript to strip the unwind sections
XXX: untested
2013-11-01 00:18:24 +00:00
christos
c4b3b5ae3a avoid pointer aliasing problems. 2013-10-31 20:31:04 +00:00
christos
9b0681b6d3 remove unused variable 2013-10-20 21:06:37 +00:00
christos
98d16a5918 Revert previous code move to accommodate relocation that does not fit.
Move pxe_command_buf declaration next to the code so
that it fits on the 16 bit relocation. It is in the text segment, but
it does not matter since it is mapped read-write.
2013-10-20 19:47:28 +00:00
christos
9f1223fca3 Move an instruction above .code16 so that it produces an R_386_32 instead
of an R_386_16 relocation, which is truncated to fit. XXX: untested.
2013-10-20 00:16:16 +00:00
joerg
9b315b031e Overwrite PIE_*, otherwise bootxx_cd9660 is not recognized by
installboot in MKPIE=yes builds.
2013-09-12 05:54:38 +00:00
jmcneill
fef2fc66c9 Bump bootloader version for memory disk image changes. 2013-08-30 16:43:33 +00:00