The NetBSD Project

CVS log for src/sys/arch/i386/stand/lib/exec.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / stand / lib

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.78.4.2 / (download) - annotate - [select for diffs], Sun Jan 14 15:46:00 2024 UTC (2 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3
Changes since 1.78.4.1: +7 -1 lines
Diff to previous 1.78.4.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored) to selected 1.42.2.2 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #548):

	sys/arch/i386/stand/efiboot/efidisk.h: revision 1.4
	sys/arch/i386/stand/lib/exec.c: revision 1.80
	sys/arch/i386/stand/efiboot/efidisk.c: revision 1.11
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.61

In efiboot
- create bootinfo information only once.
- add fake biosgeom entries so that the kernel can distinguish between
  hard drives (with geom) and CD-ROM (without).

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jan 6 21:26:43 2024 UTC (2 months, 2 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: HEAD
Changes since 1.79: +7 -1 lines
Diff to previous 1.79 (colored) to selected 1.42.2.2 (colored)

In efiboot
- create bootinfo information only once.
- add fake biosgeom entries so that the kernel can distinguish between
  hard drives (with geom) and CD-ROM (without).

Revision 1.78.4.1 / (download) - annotate - [select for diffs], Sat May 13 13:26:57 2023 UTC (10 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.78: +21 -2 lines
Diff to previous 1.78 (colored) to selected 1.42.2.2 (colored)

Pull up following revision(s) (requested by manu in ticket #159):

	share/man/man8/man8.x86/boot.8: revision 1.27
	sys/arch/i386/stand/efiboot/version: revision 1.3
	share/man/man8/man8.x86/boot.8: revision 1.28
	share/man/man8/man8.x86/boot.8: revision 1.29
	sys/arch/i386/stand/lib/exec.c: revision 1.79
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.13
	sys/arch/i386/stand/efiboot/bootx64/efibootx64.c: revision 1.6
	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.6
	sys/arch/i386/stand/efiboot/boot.c: revision 1.22
	sys/arch/amd64/amd64/locore.S: revision 1.219
	sys/arch/i386/stand/efiboot/bootia32/startprog32.S: revision 1.3
	sys/arch/i386/stand/efiboot/efiboot.h: revision 1.12
	sys/arch/amd64/conf/files.amd64: revision 1.121
	sys/arch/amd64/conf/std.amd64: revision 1.13
	share/man/man8/man8.x86/pxeboot.8: revision 1.6
	sys/arch/i386/stand/efiboot/bootx64/startprog64.S: revision 1.4
	sys/arch/amd64/amd64/locore.S: revision 1.220
	share/man/man8/man8.x86/dosboot.8: revision 1.4
	share/man/man4/options.4: revision 1.524

Add reloc keyworkd to let EFI bootstrap load amd64 kernel at any address

EFI bootstrap assumes it can copy the amd64 kernel to its ELF load
address (that is KERNTEXTOFF - KERNBASE = 0x200000), but it can
clash with previous UEFI memory allocation, as described here:
http://mail-index.netbsd.org/tech-kern/2023/04/07/msg028833.html

This change adds a reloc keyword for controling where the EFI
boostrap will copy the kernel image. Possible values are:
default - the default and prior behavior, copy at 0x200000.
none - do not copy and use the kernel image where it was loaded.
address - specify an explicit address where to copy the kernel.

This comes with an amd64 kernel patch that makes it self-relocatable.
It first discover where it was loaded in memory, and if this is
different than the expected 0x200000, hhe the kernel relocates
itself and start over at the right address.


Merge x86 boot options in x86/boot(8) and add undocumented UEFI options

We were supposed to keep the option list in x86/boot(8), x86/dosoot(8)
and x86/pxeboot(8) in sync, but it did not happen, hence it may work
better with all the options in x86/boot(8). Also add the undocumented
UEFI boot options.


Add a SELFRELOC kernel option for the sake of documentation clarity.
Instead of telling that x86/boot(8) reloc command needs a kernel able
to self relocate, we can tell it needs a kernel built with the
SELFRELOC option. This keeps the reader from wondering what could
make a kernel able to self relocate.

Remove XXX todo marker left by mistake

Raise the version for new feature (here reloc command)
Suggested by Masanobu SAITOH

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Sat May 13 11:45:53 2023 UTC (10 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.73.2.1: +21 -2 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.42.2.2 (colored)

Pull up following revision(s) (requested by manu in ticket #1632):

	share/man/man8/man8.x86/boot.8: revision 1.27
	sys/arch/i386/stand/efiboot/version: revision 1.3
	share/man/man8/man8.x86/boot.8: revision 1.28 (via patch)
	share/man/man8/man8.x86/boot.8: revision 1.29 (via patch)
	sys/arch/i386/stand/lib/exec.c: revision 1.79
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.13
	sys/arch/i386/stand/efiboot/bootx64/efibootx64.c: revision 1.6
	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.6
	sys/arch/i386/stand/efiboot/boot.c: revision 1.22
	sys/arch/amd64/amd64/locore.S: revision 1.219
	sys/arch/i386/stand/efiboot/bootia32/startprog32.S: revision 1.3
	sys/arch/i386/stand/efiboot/efiboot.h: revision 1.12
	sys/arch/amd64/conf/files.amd64: revision 1.121
	sys/arch/amd64/conf/std.amd64: revision 1.13
	share/man/man8/man8.x86/pxeboot.8: revision 1.6
	sys/arch/i386/stand/efiboot/bootx64/startprog64.S: revision 1.4
	sys/arch/amd64/amd64/locore.S: revision 1.220
	share/man/man8/man8.x86/dosboot.8: revision 1.4
	share/man/man4/options.4: revision 1.524

Add reloc keyworkd to let EFI bootstrap load amd64 kernel at any address

EFI bootstrap assumes it can copy the amd64 kernel to its ELF load
address (that is KERNTEXTOFF - KERNBASE = 0x200000), but it can
clash with previous UEFI memory allocation, as described here:
http://mail-index.netbsd.org/tech-kern/2023/04/07/msg028833.html

This change adds a reloc keyword for controling where the EFI
boostrap will copy the kernel image. Possible values are:
default - the default and prior behavior, copy at 0x200000.
none - do not copy and use the kernel image where it was loaded.
address - specify an explicit address where to copy the kernel.

This comes with an amd64 kernel patch that makes it self-relocatable.
It first discover where it was loaded in memory, and if this is
different than the expected 0x200000, hhe the kernel relocates
itself and start over at the right address.

Merge x86 boot options in x86/boot(8) and add undocumented UEFI options

We were supposed to keep the option list in x86/boot(8), x86/dosoot(8)
and x86/pxeboot(8) in sync, but it did not happen, hence it may work
better with all the options in x86/boot(8). Also add the undocumented
UEFI boot options.

Add a SELFRELOC kernel option for the sake of documentation clarity.
Instead of telling that x86/boot(8) reloc command needs a kernel able
to self relocate, we can tell it needs a kernel built with the
SELFRELOC option. This keeps the reader from wondering what could
make a kernel able to self relocate.

Remove XXX todo marker left by mistake

Raise the version for new feature (here reloc command)
Suggested by Masanobu SAITOH

Revision 1.79 / (download) - annotate - [select for diffs], Thu Apr 20 00:42:24 2023 UTC (11 months, 1 week ago) by manu
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.78: +21 -2 lines
Diff to previous 1.78 (colored) to selected 1.42.2.2 (colored)

Add reloc keyworkd to let EFI bootstrap load amd64 kernel at any address

EFI bootstrap assumes it can copy the amd64 kernel to its ELF load
address (that is KERNTEXTOFF - KERNBASE = 0x200000), but it can
clash with previous UEFI memory allocation, as described here:
http://mail-index.netbsd.org/tech-kern/2023/04/07/msg028833.html

This change adds a reloc keyword for controling where the EFI
boostrap will copy the kernel image. Possible values are:
default - the default and prior behavior, copy at 0x200000.
none - do not copy and use the kernel image where it was loaded.
address - specify an explicit address where to copy the kernel.

This comes with an amd64 kernel patch that makes it self-relocatable.
It first discover where it was loaded in memory, and if this is
different than the expected 0x200000, hhe the kernel relocates
itself and start over at the right address.

Revision 1.78 / (download) - annotate - [select for diffs], Wed Sep 21 14:29:45 2022 UTC (18 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored) to selected 1.42.2.2 (colored)

i386/stand: Handle 9.99.100 by taking four, not two, digits.

We haven't used the revision part of __NetBSD_Version__ = MMmmrrpp00
in almos two decades so we're apparently reclaiming it as MMmmpppp00.

Revision 1.76.8.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:21 2021 UTC (2 years, 9 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.76: +4 -1 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.42.2.2 (colored)

Sync w/ HEAD.

Revision 1.76.10.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:13 2021 UTC (2 years, 9 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.76: +4 -1 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.77 / (download) - annotate - [select for diffs], Sun May 30 05:59:23 2021 UTC (2 years, 9 months ago) by mlelstv
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.76: +4 -1 lines
Diff to previous 1.76 (colored) to selected 1.42.2.2 (colored)

Add "root" command to provide a BTINFO_ROOTDEVICE parameter.

Revision 1.69.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:54 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.69.4.1: +90 -116 lines
Diff to previous 1.69.4.1 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.42.2.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:41 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.69: +16 -8 lines
Diff to previous 1.69 (colored) to selected 1.42.2.2 (colored)

Merge changes from current as of 20200406

Revision 1.76 / (download) - annotate - [select for diffs], Sat Apr 4 19:50:54 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_staticlib_x-base, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.75: +12 -4 lines
Diff to previous 1.75 (colored) to selected 1.42.2.2 (colored)

Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Dec 7 02:29:03 2019 UTC (4 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored) to selected 1.42.2.2 (colored)

loadfile sets errno, return the correct error, not EIO.

Revision 1.68.6.2 / (download) - annotate - [select for diffs], Wed Sep 18 17:30:05 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.68.6.1: +40 -60 lines
Diff to previous 1.68.6.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.42.2.2 (colored)

Pull up following revision(s) [adapted, via patch]
(requested by manu in ticket #1382):

	sys/arch/i386/include/multiboot2.h: revision 1.1
	sys/arch/i386/stand/lib/exec.c: revision 1.74
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.11
	sys/arch/i386/stand/efiboot/bootia32/multiboot32.S: revision 1.1
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.52
	sys/arch/i386/stand/efiboot/bootx64/efibootx64.c: revision 1.5
	distrib/sets/lists/comp/md.amd64: revision 1.273
	sys/arch/i386/stand/efiboot/eficons.c: revision 1.7
	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.5
	distrib/sets/lists/comp/md.i386: revision 1.191
	sys/arch/i386/stand/lib/libi386.h: revision 1.45
	sys/arch/i386/stand/lib/bootinfo_memmap.c: revision 1.6
	sys/arch/i386/stand/lib/pread.c: revision 1.8
	sys/arch/i386/stand/efiboot/efiboot.h: revision 1.10
	sys/arch/i386/stand/efiboot/bootia32/Makefile: revision 1.3
	sys/arch/i386/stand/lib/Makefile: revision 1.47
	sys/arch/i386/stand/efiboot/bootx64/Makefile: revision 1.2
	sys/arch/i386/stand/lib/multiboot.S: revision 1.3
	sys/arch/i386/stand/efiboot/bootx64/multiboot64.S: revision 1.1
	sys/arch/i386/stand/efiboot/efimemory.c: revision 1.9
	sys/arch/i386/stand/efiboot/boot.c: revision 1.16
	sys/arch/i386/include/Makefile: revision 1.50
	sys/arch/i386/stand/efiboot/Makefile.efiboot: revision 1.16
	share/man/man8/man8.x86/boot.8: revision 1.20
	sys/arch/i386/stand/boot/Makefile.boot: revision 1.73
	sys/arch/i386/stand/pxeboot/Makefile: revision 1.26
	sys/arch/i386/stand/lib/exec_multiboot1.c: revision 1.1
	sys/arch/i386/stand/netboot/Makefile.netboot: revision 1.11
	sys/arch/i386/stand/lib/exec_multiboot2.c: revision 1.1
	sys/arch/i386/stand/lib/biosdisk.h: revision 1.12
	sys/arch/i386/stand/lib/exec_multiboot2.c: revision 1.2
	sys/arch/i386/stand/dosboot/Makefile: revision 1.32
	sys/external/bsd/gnu-efi/dist/inc/efiapi.h (apply patch)

Add multiboot 2 support to x86 bootloaders

multiboot 2 is required to boot Xen on an EFI system.

This also require a kernel patch for properly discovering
the ACPI RSDP, which is available after 20190912, in
src/sys/arch/x86/acpi/acpi_machdep.c 1.26-1.28

There are a few missing bit in this multiboot 2 implementation
(which are unused by Xen):
- Header tags Address, Freambuffer, and Relocatable are ignored
- Tags APM and Network are not provided
- Tags ACPI old and ACP new are only provided for ACPI boot
- Tag boot device does not provides the subpart (BSD disklabel partition)

Notes:
- multiboot2 is disabled in dosboot, otherwise the binary
  gets too big and build fails.
- in src/sys/arch/i386/stand/efiboot, consinit() is renamed
  as efi_consinit() to avoid prototype conflicts in src/sys/sys/systm.h

Remove debug define.

It remained there unseen because it was misspelled!

Remove obsoeolete BUGS note that UEFI bootloader does not support multiboot

Add new multiboot2.h header.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Tue Sep 17 19:31:59 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.73: +40 -60 lines
Diff to previous 1.73 (colored) to selected 1.42.2.2 (colored)

Pull up following revision(s) (requested by manu in ticket #203):

	sys/arch/i386/include/multiboot2.h: revision 1.1
	sys/arch/i386/stand/lib/exec.c: revision 1.74
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.11
	sys/arch/i386/stand/efiboot/bootia32/multiboot32.S: revision 1.1
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.52
	sys/arch/i386/stand/efiboot/bootx64/efibootx64.c: revision 1.5
	sys/arch/i386/stand/efiboot/eficons.c: revision 1.7
	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.5
	sys/arch/i386/stand/lib/libi386.h: revision 1.45
	sys/arch/i386/stand/lib/bootinfo_memmap.c: revision 1.6
	sys/arch/i386/stand/lib/pread.c: revision 1.8
	sys/arch/i386/stand/efiboot/efiboot.h: revision 1.10
	sys/arch/i386/stand/efiboot/bootia32/Makefile: revision 1.3
	sys/arch/i386/stand/lib/Makefile: revision 1.47
	sys/arch/i386/stand/efiboot/bootx64/Makefile: revision 1.2
	sys/arch/i386/stand/lib/multiboot.S: revision 1.3
	sys/arch/i386/stand/efiboot/bootx64/multiboot64.S: revision 1.1
	sys/arch/i386/stand/efiboot/efimemory.c: revision 1.9
	sys/arch/i386/stand/efiboot/boot.c: revision 1.16
	sys/arch/i386/include/Makefile: revision 1.50
	sys/arch/i386/stand/efiboot/Makefile.efiboot: revision 1.16
	share/man/man8/man8.x86/boot.8: revision 1.20
	sys/arch/i386/stand/boot/Makefile.boot: revision 1.73
	sys/arch/i386/stand/pxeboot/Makefile: revision 1.26
	sys/arch/i386/stand/lib/exec_multiboot1.c: revision 1.1
	sys/arch/i386/stand/netboot/Makefile.netboot: revision 1.11
	sys/arch/i386/stand/lib/exec_multiboot2.c: revision 1.1
	sys/arch/i386/stand/lib/biosdisk.h: revision 1.12
	sys/arch/i386/stand/lib/exec_multiboot2.c: revision 1.2
	sys/arch/i386/stand/dosboot/Makefile: revision 1.32

Add multiboot 2 support to x86 bootloaders

multiboot 2 is required to boot Xen on an EFI system.

This also require a kernel patch for properly discovering
the ACPI RSDP, which is available after 20190912, in
src/sys/arch/x86/acpi/acpi_machdep.c 1.26-1.28

There are a few missing bit in this multiboot 2 implementation
(which are unused by Xen):
- Header tags Address, Freambuffer, and Relocatable are ignored
- Tags APM and Network are not provided
- Tags ACPI old and ACP new are only provided for ACPI boot
- Tag boot device does not provides the subpart (BSD disklabel partition)
Notes:
- multiboot2 is disabled in dosboot, otherwise the binary
  gets too big and build fails.
- in src/sys/arch/i386/stand/efiboot, consinit() is renamed
  as efi_consinit() to avoid prototype conflicts in src/sys/sys/systm.h

Remove debug define.

It remained there unseen because it was misspelled!

Remove obsoeolete BUGS note that UEFI bootloader does not support multiboot

Revision 1.74 / (download) - annotate - [select for diffs], Fri Sep 13 02:19:46 2019 UTC (4 years, 6 months ago) by manu
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.73: +40 -60 lines
Diff to previous 1.73 (colored) to selected 1.42.2.2 (colored)

Add multiboot 2 support to x86 bootloaders

multiboot 2 is required to boot Xen on an EFI system.
This also require a kernel patch for properly discovering
the ACPI RSDP, which is available after 20190912, in
src/sys/arch/x86/acpi/acpi_machdep.c 1.26-1.28

There are a few missing bit in this multiboot 2 implementation
(which are unused by Xen):
- Header tags Address, Freambuffer, and Relocatable are ignored
- Tags APM and Network are not provided
- Tags ACPI old and ACP new are only provided for ACPI boot
- Tag boot device does not provides the subpart (BSD disklabel partition)

Notes:
- multiboot2 is disabled in dosboot, otherwise the binary
  gets too big and build fails.
- in src/sys/arch/i386/stand/efiboot, consinit() is renamed
  as efi_consinit() to avoid prototype conflicts in src/sys/sys/systm.h

Revision 1.68.6.1 / (download) - annotate - [select for diffs], Thu Aug 1 13:22:48 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
Changes since 1.68: +1 -50 lines
Diff to previous 1.68 (colored) to selected 1.42.2.2 (colored)

Pull up following revision(s) (requested by nonaka in ticket #1309):

	sys/arch/i386/stand/lib/exec.c: revision 1.73
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.10
	sys/arch/i386/stand/lib/libi386.h: revision 1.44
	sys/arch/i386/stand/efiboot/efimemory.c: revision 1.6
	sys/arch/i386/stand/efiboot/efimemory.c: revision 1.7
	sys/arch/i386/stand/efiboot/efimemory.c: revision 1.8
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.9
	sys/arch/i386/stand/efiboot/boot.c: revision 1.12
	sys/arch/i386/stand/efiboot/boot.c: revision 1.13
	sys/arch/i386/stand/efiboot/efiboot.h: revision 1.9
	sys/arch/i386/stand/efiboot/Makefile.efiboot: revision 1.15
	sys/arch/i386/stand/efiboot/dev_net.c: revision 1.2

Added tftp support to x86 efiboot.

Pre-allocate memory for the kernel space at startup.

Added BTINFO_EFIMEMMAP compaction support to x86 efiboot.

Sync the output of memmap command to the output of stand/efiboot mem command.

Added missing efi_memory_probe() call.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Jul 26 12:09:48 2019 UTC (4 years, 8 months ago) by nonaka
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.72: +1 -59 lines
Diff to previous 1.72 (colored) to selected 1.42.2.2 (colored)

Pre-allocate memory for the kernel space at startup.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jun 24 13:58:24 2019 UTC (4 years, 9 months ago) by pgoyette
Branch: MAIN
Changes since 1.71: +42 -4 lines
Diff to previous 1.71 (colored) to selected 1.42.2.2 (colored)

Now that the ufs module has been split out from ffs and ext2fs, we need
to update the boot-loader to push all modules required to support the
booted filesystem.  We treat the fsmod string as a slash-separated list
of module names (relative to kern.module.path), rather than as a single
module path name.

Note that ffsv1 and ffsv2 are still exempted from the boot-loader's
auto-push, but the list of required filesystems is still noted in the
source.

Also note that arch/sandpoint needs a similar change.  I have not made
this change because I am totally unable to test it.

Tested on my kernel with _no_ built-in file-systems and with the ffs
bootloader settings of fsmod enabled.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 24 02:48:51 2019 UTC (4 years, 9 months ago) by pgoyette
Branch: MAIN
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored) to selected 1.42.2.2 (colored)

Remove double-include for reboot.h

Revision 1.70 / (download) - annotate - [select for diffs], Thu Jun 20 17:33:31 2019 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.69: +21 -6 lines
Diff to previous 1.69 (colored) to selected 1.42.2.2 (colored)

Add KASLR support in UEFI.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:19 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.50.2.1: +218 -48 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.42.2.2 (colored)

update from HEAD

Revision 1.69 / (download) - annotate - [select for diffs], Sat Oct 7 10:26:38 2017 UTC (6 years, 5 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.68: +69 -3 lines
Diff to previous 1.68 (colored) to selected 1.42.2.2 (colored)

Add a new option in libsa, to load dynamic binaries. A separate function
is used, and it does not break in any way the generic static loader. Then,
add a new "pkboot" command in the x86 bootloader, which boots a
GENERIC_KASLR kernel via the prekern. (See thread on tech-kern@.)

Revision 1.59.4.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:41 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.59.4.3: +116 -60 lines
Diff to previous 1.59.4.3 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:03 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.61.2.2: +7 -5 lines
Diff to previous 1.61.2.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:28 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.62: +128 -22 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.68 / (download) - annotate - [select for diffs], Fri Mar 24 08:50:17 2017 UTC (7 years ago) by nonaka
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.67: +7 -5 lines
Diff to previous 1.67 (colored) to selected 1.42.2.2 (colored)

efiboot: fix calculation of the kernel size when loading modules.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:15 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.61.2.1: +126 -22 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.67 / (download) - annotate - [select for diffs], Sun Mar 12 05:33:48 2017 UTC (7 years ago) by nonaka
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.66: +102 -55 lines
Diff to previous 1.66 (colored) to selected 1.42.2.2 (colored)

efiboot: Kernel modules are loaded in pre-allocated memory.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Feb 23 12:14:53 2017 UTC (7 years, 1 month ago) by nonaka
Branch: MAIN
Changes since 1.65: +1 -2 lines
Diff to previous 1.65 (colored) to selected 1.42.2.2 (colored)

no need COUNT_KERNEL hack.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Feb 11 10:23:39 2017 UTC (7 years, 1 month ago) by nonaka
Branch: MAIN
Changes since 1.64: +3 -6 lines
Diff to previous 1.64 (colored) to selected 1.42.2.2 (colored)

PR/51953: fix unable to boot on some AMD machine.

Delayed the timing to copy the kernel to actual address.
copy routine from common/lib/libc/arch/x86_64/string/bcopy.S

Revision 1.64 / (download) - annotate - [select for diffs], Sat Feb 11 10:18:10 2017 UTC (7 years, 1 month ago) by nonaka
Branch: MAIN
Changes since 1.63: +12 -1 lines
Diff to previous 1.63 (colored) to selected 1.42.2.2 (colored)

efiboot: Copy bootinfo to safe arena.

Revision 1.59.4.3 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:13 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.59.4.2: +52 -2 lines
Diff to previous 1.59.4.2 (colored) to branchpoint 1.59 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jan 24 11:09:14 2017 UTC (7 years, 2 months ago) by nonaka
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.62: +52 -2 lines
Diff to previous 1.62 (colored) to selected 1.42.2.2 (colored)

Initial commit of native amd64 EFI boot loader.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:18 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.61: +24 -26 lines
Diff to previous 1.61 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.59.4.2 / (download) - annotate - [select for diffs], Mon Dec 5 10:54:53 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.59.4.1: +24 -26 lines
Diff to previous 1.59.4.1 (colored) to branchpoint 1.59 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.62 / (download) - annotate - [select for diffs], Sun Dec 4 08:21:08 2016 UTC (7 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.61: +24 -26 lines
Diff to previous 1.61 (colored) to selected 1.42.2.2 (colored)

KNF and explain a few things

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:24:52 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 5 14:13:57 2016 UTC (7 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.60: +1 -1 lines
Diff to previous 1.60 (colored) to selected 1.42.2.2 (colored)

Don't use a magic value. Define a limit, and enforce it.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 5 14:06:31 2016 UTC (7 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored) to selected 1.42.2.2 (colored)

The bootinfo is refreshed each time the bootloader tries to execute a
kernel, so there's no point in using this global variable. Because of
this variable, only one "boot" command can be issued in the prompt, and
you have to reboot the machine if you mistyped the kernel name.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:07 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.50: +24 -13 lines
Diff to previous 1.50 (colored) to selected 1.42.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:53:59 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.42.2.2 (colored)

Rebase.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:39:52 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.48.2.2: +24 -13 lines
Diff to previous 1.48.2.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored) to selected 1.42.2.2 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:13 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.50: +24 -13 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.59 / (download) - annotate - [select for diffs], Sun Apr 6 19:18:00 2014 UTC (9 years, 11 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored) to selected 1.42.2.2 (colored)

Misc WARNS=4 fixes.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 10 17:40:51 2014 UTC (10 years, 2 months ago) by jakllsch
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.42.2.2 (colored)

fix style and whitespace nits

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jan 5 21:36:50 2014 UTC (10 years, 2 months ago) by jakllsch
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored) to selected 1.42.2.2 (colored)

Make name argument to module_add_common const; use this to allow the libsa
fsmod string to soon become const.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Dec 30 21:45:51 2013 UTC (10 years, 2 months ago) by jakllsch
Branch: MAIN
Changes since 1.55: +3 -1 lines
Diff to previous 1.55 (colored) to selected 1.42.2.2 (colored)

Zero out on-stack 'marks' array before first use.
This is needed so the MARK_DATA index is properly filled in.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 27 18:29:45 2013 UTC (10 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored) to selected 1.42.2.2 (colored)

Use the size of what's at the bootinfo_userconf pointer, not the size
of the pointer itself.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Nov 24 17:20:00 2013 UTC (10 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored) to selected 1.42.2.2 (colored)

The x86 kernel entry point stack arguments are always 32-bit, even on amd64.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Nov 24 17:17:48 2013 UTC (10 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored) to selected 1.42.2.2 (colored)

use <i386/multiboot.h> instead of <machine/multiboot.h> so this can be
compiled for amd64

Revision 1.52 / (download) - annotate - [select for diffs], Sun Nov 24 17:16:29 2013 UTC (10 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) to selected 1.42.2.2 (colored)

cast from 32-bit integer to void * though uintptr_t to avoid warnings
when compiling for x86_64.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Aug 30 16:42:17 2013 UTC (10 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.50: +10 -1 lines
Diff to previous 1.50 (colored) to selected 1.42.2.2 (colored)

Add support for using a raw file-system image as memory disk root with
the x86 bootloader.

Revision 1.49.4.1 / (download) - annotate - [select for diffs], Sun Jun 3 21:42:51 2012 UTC (11 years, 9 months ago) by jdc
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.49: +4 -5 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.42.2.2 (colored)

Pull up revisions:
  src/sys/arch/i386/stand/lib/exec.c revision 1.50
  src/sys/arch/sandpoint/stand/altboot/main.c revision 1.21 via patch
  src/sys/lib/libsa/ext2fs.c revision 1.13
  src/sys/lib/libsa/ffsv1.c revision 1.6
  src/sys/lib/libsa/ffsv2.c revision 1.6
  src/sys/lib/libsa/globals.c revision 1.9
  src/sys/lib/libsa/lfsv1.c revision 1.5
  src/sys/lib/libsa/lfsv2.c revision 1.5
  src/sys/lib/libsa/stand.h revision 1.76
  src/sys/lib/libsa/ufs.c revision 1.58
(requested by dsl in ticket #279).

Remove the code that tries to load the "ffs" kernel module during boot.
This is in line with the core decision than even modular kernels should
  contain the ffs code.
I've left in the code that tries to load "nfs" and "ext2fs", but it
  isn't clear that is necessary.
Removes a warning message that (usually) flashes past to fast to read.
AFAICT all the relevant kernels contain ffs (and nfs for that matter).

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:03 2012 UTC (11 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.49: +4 -5 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.42.2.2 (colored)

sync to latest -current.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:44 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.48.2.1: +4 -5 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored) to selected 1.42.2.2 (colored)

sync with head.

Revision 1.50 / (download) - annotate - [select for diffs], Mon May 21 21:34:16 2012 UTC (11 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.49: +4 -5 lines
Diff to previous 1.49 (colored) to selected 1.42.2.2 (colored)

Remove the code that tries to load the "ffs" kernel module during boot.
This is in line with the core decision than even modular kernels should
  contain the ffs code.
I've left in the code that tries to load "nfs" and "ext2fs", but it
  isn't clear that is necessary.
Removes a warning message that (usually) flashes past to fast to read.
AFAICT all the relevant kernels contain ffs (and nfs for that matter).

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:30 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.48: +20 -3 lines
Diff to previous 1.48 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.49 / (download) - annotate - [select for diffs], Mon Nov 28 07:56:54 2011 UTC (12 years, 4 months ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base
Branch point for: netbsd-6, jmcneill-usbmp
Changes since 1.48: +20 -3 lines
Diff to previous 1.48 (colored) to selected 1.42.2.2 (colored)


Add support for passing saved entropy (random seed file) to the kernel
from the bootloader.  This can fix the problem of poor quality keys
for other kernel modules which call arc4random() early in kernel startup
(NFS startup, in particular, causes this).

We continue to rely on the etc/rc.d/random_seed script to save entropy
to the seed file at shutdown and erase the seed file at startup.

Boot loader support implemented only for i386 and amd64 ports for now but
it should be easy for other ports to do the same or similar.

Revision 1.38.2.5 / (download) - annotate - [select for diffs], Sat Aug 27 15:37:28 2011 UTC (12 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.38.2.4: +96 -2 lines
Diff to previous 1.38.2.4 (colored) next main 1.39 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:41 2011 UTC (12 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.47: +1 -2 lines
Diff to previous 1.47 (colored) to selected 1.42.2.2 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:05:52 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.45: +112 -2 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.42.4.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:05 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.42.4.2: +95 -0 lines
Diff to previous 1.42.4.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.47 / (download) - annotate - [select for diffs], Thu May 26 04:25:27 2011 UTC (12 years, 10 months ago) by uebayasi
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.46: +96 -1 lines
Diff to previous 1.46 (colored) to selected 1.42.2.2 (colored)

Support userconf(4) command in boot(8)/boot.cfg(5) on i386/amd64.

From jmmv@, no objections seen in the proposed thread:

	http://mail-index.netbsd.org/tech-kern/2009/01/22/msg004081.html

Revision 1.38.2.4 / (download) - annotate - [select for diffs], Mon Mar 28 23:58:11 2011 UTC (13 years ago) by jym
Branch: jym-xensuspend
Changes since 1.38.2.3: +4 -11 lines
Diff to previous 1.38.2.3 (colored) to selected 1.42.2.2 (colored)

Cure sync hiccups. Code with compile errors is not really useful, heh.

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Mon Mar 28 23:04:46 2011 UTC (13 years ago) by jym
Branch: jym-xensuspend
Changes since 1.38.2.2: +17 -2 lines
Diff to previous 1.38.2.2 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD. TODO before merge:
- shortcut for suspend code in sysmon, when powerd(8) is not running.
Borrow ``xs_watch'' thread context?
- bug hunting in xbd + xennet resume. Rings are currently thrashed upon
resume, so current implementation force flush them on suspend. It's not
really needed.

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:50:45 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.42.4.1: +18 -10 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:26 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.45: +17 -2 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Sun Feb 6 23:16:05 2011 UTC (13 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.45: +17 -2 lines
Diff to previous 1.45 (colored) to selected 1.42.2.2 (colored)

add support for passing image files to the kernel with the 'splash' keyword:

 vesa on;splash /netbsd.jpg;boot -z

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:19 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.42.2.2: +1 -8 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Sync with HEAD.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Oct 30 08:12:43 2010 UTC (13 years, 5 months ago) by jnemeth
Branch: MAIN
CVS Tags: uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.44: +1 -8 lines
Diff to previous 1.44 (colored) to selected 1.42.2.2 (colored)

Reduce licence with copyright Perry E. Metzger and Matthias Drochner
to two clauses.

On Thu, 21 Oct 2010 22:42:00 -0700 jnemeth@XXX
(John Nemeth) wrote:
>     The file src/sys/arch/i386/stand/lib/exec.c has a licence
> section that starts off saying copyright by each of you.  That is
> then followed by a standard four claus UCB licence.  Would it be
> okay to reduce that to the two claus licence that is now standard
> for NetBSD?

I have no particular objections.

--
Perry E. Metzger                perry@XXX

jnemeth@XXX said:
> Would it be okay to reduce that to the two claus licence

Yes of course, this is OK.

best regards
Matthias

Revision 1.42.2.2 / (download) - annotate - [selected], Fri Oct 22 07:21:21 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.42.2.1: +1 -1 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored)

Sync with HEAD (-D20101022).

Revision 1.22.78.5 / (download) - annotate - [select for diffs], Sat Oct 9 03:31:48 2010 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.78.4: +2 -2 lines
Diff to previous 1.22.78.4 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.44 / (download) - annotate - [select for diffs], Wed Aug 25 16:32:51 2010 UTC (13 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base3
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored) to selected 1.42.2.2 (colored)

use LOAD_BACKWARDS instead of LOAD_NOTE for floppy book.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:44:40 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.22.78.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:52:14 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.78.3: +4 -4 lines
Diff to previous 1.22.78.3 (colored) to branchpoint 1.22 (colored) to selected 1.42.2.2 (colored)

sync with head.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:20 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jun 25 15:35:08 2010 UTC (13 years, 9 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored) to selected 1.42.2.2 (colored)

Add wait_sec() which uses BIOS function call INT 1Ah/AH=00h (GET SYSTEMTIME)
and use it for large delays (in seconds) instead of delay() that uses
INT 15h/AH=86h (WAIT) in microsecond because the latter one can't provide
precise delays on emulators.
Fixes PR port-i386/43156 (NetBSD bootloader countdown runs at 1/20 speed
in qemu 0.12).

No particular comments on the PR and port-i386@.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Sun Nov 1 13:58:36 2009 UTC (14 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.38.2.1: +80 -29 lines
Diff to previous 1.38.2.1 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.22.78.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:39 2009 UTC (14 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.78.2: +80 -29 lines
Diff to previous 1.22.78.2 (colored) to branchpoint 1.22 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.42 / (download) - annotate - [select for diffs], Mon Sep 14 11:56:27 2009 UTC (14 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.41: +7 -3 lines
Diff to previous 1.41 (colored) to selected 1.42.2.2 (colored)

Don't commit the selected VBE mode until the loader is past the point of
no return; need to stick in text mode as long as possible since libsa does
not include a rasops library. While here, add the 'vesa' command to pxeboot
to mirror biosboot behaviour.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Sep 13 18:13:37 2009 UTC (14 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.40: +74 -27 lines
Diff to previous 1.40 (colored) to selected 1.42.2.2 (colored)

kmod improvements
 - unless otherwise specified, modules are now loaded from the same device
   as the kernel ('load miniroot' now implies 'load tftp:miniroot' if the
   boot command is 'boot tftp:netbsd')
 - the module name -> path expansion now works when a device prefix: is
   specified ('load tftp:miniroot' now works)
 - if the module name has been expanded to a path, print that path when
   loading the module rather than the symbolic name
 - only print an error in module_open if both the expanded path and the
   raw path fail to open

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:17:51 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.38: +44 -5 lines
Diff to previous 1.38 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.22.78.2 / (download) - annotate - [select for diffs], Mon May 4 08:11:19 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.78.1: +274 -39 lines
Diff to previous 1.22.78.1 (colored) to branchpoint 1.22 (colored) to selected 1.42.2.2 (colored)

sync with head.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:34:14 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.33.2.2: +29 -5 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Mar 21 15:01:56 2009 UTC (15 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base
Changes since 1.39: +29 -5 lines
Diff to previous 1.39 (colored) to selected 1.42.2.2 (colored)

Fix 'boot -z' bogons.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:29:00 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.33.2.1: +16 -1 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Feb 16 22:39:30 2009 UTC (15 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.38: +16 -1 lines
Diff to previous 1.38 (colored) to selected 1.42.2.2 (colored)

Bootloader modifications for generic framebuffer console support on i386
and amd64 where VESA VBE 2.0+ is available.

* Add helper library and stubs to invoke VBE bioscalls.
* Bump HEAP_START as we were already dangerously close to our limits.
* bootdataseg now allows access > 16MB so in the future we can scribble
  on the framebuffer.
* Pass BTINFO_FRAMEBUFFER parameters to kernel when configured.
* VBE modes are configured with the new 'vesa' command. Usage, when present:
    * vesa {enabled|disabled}
      Enable / disable linear framebuffer, default mode is 640x480x8. May
      be changed in the future to determine mode based on VBE/DDC where
      available.
    * vesa list
      List modes supported by the firmware that meet the following criteria:
	* linear framebuffer
	* packed pixel or direct colour mode
    * vesa {modenum|modestr}
      Enable specific VBE mode. The mode can be specified either as a
      VBE mode number (eg. 0x101) or as a string (eg. 800x600x16).

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jan 24 22:14:45 2009 UTC (15 years, 2 months ago) by rmind
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) to selected 1.42.2.2 (colored)

Revert path of modules back to "/stand".

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jan 24 00:29:13 2009 UTC (15 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.42.2.2 (colored)

Change path to kernel modules from "/stand" to "/kernel".
Needs to go in before 5.0.  Proposed on <tech-kern>.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:16:21 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.33: +38 -3 lines
Diff to previous 1.33 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.22.74.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:05 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.22.74.2: +200 -64 lines
Diff to previous 1.22.74.2 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 14 17:03:43 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.42.2.2 (colored)

ANSI and KNF from Anon Ymous

Revision 1.28.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:13:15 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.28.4.1: +36 -1 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.42.2.2 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 25 13:23:54 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored) to selected 1.42.2.2 (colored)

Make pxeboot understand boot.cfg.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Nov 19 12:36:41 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.33: +33 -1 lines
Diff to previous 1.33 (colored) to selected 1.42.2.2 (colored)

For the x86 boot loader, autoload a kernel module corresponding to the
root file system type.

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:15:50 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.28: +166 -64 lines
Diff to previous 1.28 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Oct 11 11:06:20 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap
Changes since 1.32: +96 -6 lines
Diff to previous 1.32 (colored) to selected 1.42.2.2 (colored)

Add "multiboot" command to boot multiboot compliant kernels like Xen.
Patch provided by Robert Swindell with fixes for the command line
parsing and addition of passing module options from me. The kernel now
always gets the full string for modules like for the command line,
everything before the first space/tab is the path name of the module.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:29:05 2008 UTC (15 years, 5 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.25.2.1: +71 -59 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 8 22:57:28 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4
Changes since 1.31: +35 -24 lines
Diff to previous 1.31 (colored) to selected 1.42.2.2 (colored)

Move functionality for preparing the kernel (including XMS support) into
a new function common_load_kernel.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 8 22:46:19 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.30: +8 -9 lines
Diff to previous 1.30 (colored) to selected 1.42.2.2 (colored)

Move initialisation of boot_argv after the full loading of the kernel,
directly before loading modules.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Oct 8 22:42:38 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.29: +28 -27 lines
Diff to previous 1.29 (colored) to selected 1.42.2.2 (colored)

Setup module_base in module_init().

Revision 1.22.74.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:01 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.22.74.1: +3 -2 lines
Diff to previous 1.22.74.1 (colored) to branchpoint 1.22 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 26 14:12:50 2008 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored) to selected 1.42.2.2 (colored)

The structure of our elf kernel is:

    elf header/program headers/text/data/note/
    section headers/symbol table/string table

We need to read the section headers first to find the offset of the note
and thus we requite backwards seek. The only reason we need to read the
note is to find the version of the kernel, and this seems not to be used
anywhere. We could potentially change the kernel ldscript to add the note
information in the program headers, but dealing with ldscripts is painful
and producing a more complex binary could break some dumb standalone loader.
So the simple solution is to just disable the note loading for floppies
which is what this patch does. If someone wants to fix it in a better way,
be my guest.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:27 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.25: +63 -4 lines
Diff to previous 1.25 (colored) to selected 1.42.2.2 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.22.76.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:04:47 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.22.76.1: +63 -4 lines
Diff to previous 1.22.76.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.42.2.2 (colored)

sync with head

Revision 1.22.74.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:19 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.22: +189 -5 lines
Diff to previous 1.22 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Sun May 25 11:54:33 2008 UTC (15 years, 10 months ago) by chris
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.27: +25 -10 lines
Diff to previous 1.27 (colored) to selected 1.42.2.2 (colored)

Fix pxeboot's load tftp:miniroot.i386.kmod to work again.

We now wrapper the open call for a module with module_open.  It first
attempts to open the module_path munged path, if this fails it then tries
to open the original path.

This allows tftp files to be located correctly.

Revision 1.27 / (download) - annotate - [select for diffs], Tue May 20 16:04:08 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.26: +15 -3 lines
Diff to previous 1.26 (colored) to selected 1.42.2.2 (colored)

Take $MACHINE into account when looking for modules.

Revision 1.26 / (download) - annotate - [select for diffs], Tue May 20 14:46:54 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.25: +39 -7 lines
Diff to previous 1.25 (colored) to selected 1.42.2.2 (colored)

PR kern/38694 module dependencies do not work as expected

If a given module name/path does not start with '/', assume it's a module
name and choose a default path based on the kernel version.

Revision 1.22.76.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:17 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.22: +130 -5 lines
Diff to previous 1.22 (colored) to selected 1.42.2.2 (colored)

sync with head.

Revision 1.22.78.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:39 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22: +130 -5 lines
Diff to previous 1.22 (colored) to selected 1.42.2.2 (colored)

sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Sun May 4 11:00:09 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.24: +1 -3 lines
Diff to previous 1.24 (colored) to selected 1.42.2.2 (colored)

Remove my personal license, the TNF one is good enough for me.

Revision 1.24 / (download) - annotate - [select for diffs], Sat May 3 18:49:13 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.23: +9 -27 lines
Diff to previous 1.23 (colored) to selected 1.42.2.2 (colored)

Handle compressed modules.

Revision 1.23 / (download) - annotate - [select for diffs], Fri May 2 15:26:38 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.22: +148 -3 lines
Diff to previous 1.22 (colored) to selected 1.42.2.2 (colored)

- Give x86 BIOS boot the ability to load new style modules and pass them
  into the kernel. Based on a patch by jmcneill@, with many fixes and
  improvements by me.

- Put MEMORY_DISK_DYNAMIC and MODULAR into the GENERIC kernels, so that
  you can load miniroot.kmod from the boot blocks and boot into the
  installer!

Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 11 12:17:48 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pf42-baseX, yamt-pf42-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, ppcoea-renovation-base, ppcoea-renovation, post-newlock2-merge, peter-altq-base, peter-altq, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.21: +1 -1 lines
Diff to previous 1.21 (colored) to selected 1.42.2.2 (colored)

merge ktrace-lwp.

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Thu Nov 10 13:56:54 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18.2.3: +7 -10 lines
Diff to previous 1.18.2.3 (colored) next main 1.19 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD. Here we go again...

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 21 18:16:59 2005 UTC (18 years, 9 months ago) by junyoung
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-lazymbuf, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.20: +7 -10 lines
Diff to previous 1.20 (colored) to selected 1.42.2.2 (colored)

ANSI, KNF, trailing spaces, and etc.

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:17:11 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18.2.2: +1 -1 lines
Diff to previous 1.18.2.2 (colored) to selected 1.42.2.2 (colored)

Fix the sync with head I botched.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:35:57 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18.2.1: +0 -0 lines
Diff to previous 1.18.2.1 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:36:20 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.18: +31 -2 lines
Diff to previous 1.18 (colored) to selected 1.42.2.2 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Mon Nov 10 08:51:52 2003 UTC (20 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.42.2.2 (colored)

Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 7 16:28:03 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.18: +30 -1 lines
Diff to previous 1.18 (colored) to selected 1.42.2.2 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Feb 27 12:22:52 2003 UTC (21 years, 1 month ago) by hannken
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.42.2.2 (colored)

Change "i386_trunc_page" to "x86_trunc_page".

Revision 1.15.8.1 / (download) - annotate - [select for diffs], Thu Jun 21 19:26:16 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.15: +4 -71 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.42.2.2 (colored)

Catch up to -current.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Fri Jun 1 23:26:32 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: sommerfeld_i386mp_1
Changes since 1.17.2.1: +187 -0 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.42.2.2 (colored)

g/c COMPAT_OLDBOOT from bootblocks, sprinkle some const
bump bootblock version to 2.10

Revision 1.17.2.1, Fri Jun 1 23:26:31 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: sommerfeld_i386mp_1
Changes since 1.17: +0 -187 lines
FILE REMOVED

file exec.c was added on branch sommerfeld_i386mp_1 on 2001-06-01 23:26:32 +0000

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 1 23:26:31 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, sommerfeld_i386mpnext, sommerfeld_i386mpbase_1, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, i386mp_plus16_stable, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: sommerfeld_i386mp_1
Changes since 1.16: +1 -92 lines
Diff to previous 1.16 (colored) to selected 1.42.2.2 (colored)

g/c COMPAT_OLDBOOT from bootblocks, sprinkle some const
bump bootblock version to 2.10

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 19 18:15:14 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.15: +31 -7 lines
Diff to previous 1.15 (colored) to selected 1.42.2.2 (colored)

Add some IBM PS/2 support bits:
* recognize PS/2 L40 via biosmca() and biosmca_ps2model in gatea20.c, instead
  of being a compile time option
* if the system is PS/2 with MCA bus, map DTYPE_ESDI disks to ed(4) for
  COMPAT_OLDBOOT

The new code is conditional on SUPPORT_PS2 define, which is on by default
for biosboot-based bootblocks.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 20:09:40 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.42.2.2 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 22 07:45:04 2000 UTC (24 years, 1 month ago) by dbj
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, sommerfeld_i386mpbase_20000422, sommerfeld_i386mp_houseclean, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: nathanw_sa
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored) to selected 1.42.2.2 (colored)

use bios' idea of the basemem size and create the kernel stack
at the top of it instead of hard coding 0x90000

Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 7 18:27:58 1999 UTC (24 years, 6 months ago) by ross
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.42.2.2 (colored)

spelling

Revision 1.9.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 00:50:04 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.9.2.1: +7 -4 lines
Diff to previous 1.9.2.1 (colored) next main 1.10 (colored) to selected 1.42.2.2 (colored)

Sync w/ -current.

Revision 1.13 / (download) - annotate - [select for diffs], Sat May 15 15:42:23 1999 UTC (24 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored) to selected 1.42.2.2 (colored)

don't printf(NULL), not even in the DEBUG case
(It doesn't hurt the bootloader, but the junk output hangs my serial
console.)

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 28 09:15:05 1999 UTC (24 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.42.2.2 (colored)

use new loadfile

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 14 11:19:23 1999 UTC (24 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored) to selected 1.42.2.2 (colored)

add  prototype

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Fri Apr 9 17:11:29 1999 UTC (24 years, 11 months ago) by drochner
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.9: +13 -5 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.42.2.2 (colored)

pull up rev. 1.10 - avoid memory leak if loadfile() fails

Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 8 18:21:15 1999 UTC (24 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.9: +13 -5 lines
Diff to previous 1.9 (colored) to selected 1.42.2.2 (colored)

Call bi_getbiosgeom() after loadfile() returned successfully. This avoids
a memory leak if loadfile() gets an error.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 8 00:09:25 1999 UTC (25 years ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.8: +5 -4 lines
Diff to previous 1.8 (colored) to selected 1.42.2.2 (colored)

* query BIOS geometry information, possibly using the int 13 extensions.
* pass them on to the kernel
* print a message if the 2nd stage bootloader returns (i.e. fails)
  instead of just hanging.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 29 18:49:08 1999 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.7: +77 -18 lines
Diff to previous 1.7 (colored) to selected 1.42.2.2 (colored)

Merge XMS changes from exec_fromdos.c

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 28 22:45:06 1999 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.6: +12 -12 lines
Diff to previous 1.6 (colored) to selected 1.42.2.2 (colored)

Add support for selectively loading sections, and make this compile in
userland with -DINSTALLBOOT

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jan 28 20:21:24 1999 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.5: +22 -119 lines
Diff to previous 1.5 (colored) to selected 1.42.2.2 (colored)

Remove a.out loading code and use loadfile.c for everything.
Populate the btinfo_symtab structure.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Tue Oct 14 09:10:50 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.3.4.1: +5 -6 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.42.2.2 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 28 13:31:45 1997 UTC (26 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base, kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.4: +5 -6 lines
Diff to previous 1.4 (colored) to selected 1.42.2.2 (colored)

Pass new boot information per default.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Mon Sep 22 06:31:30 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.3: +20 -10 lines
Diff to previous 1.3 (colored) to selected 1.42.2.2 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Sep 17 18:02:11 1997 UTC (26 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.3: +20 -10 lines
Diff to previous 1.3 (colored) to selected 1.42.2.2 (colored)

Use the "bootinfo" defined structures to collect information about boot
device/file and console setting, remove the old, limited, "xbootinfo".
Fix a printf() format warning in debug code.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Mar 22 04:15:51 1997 UTC (27 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.2: +15 -2 lines
Diff to previous 1.2 (colored) to selected 1.42.2.2 (colored)

Mimmick the old boot block's hdN -> Xd0 (where X is specified by the
disklabel type) unit conversion behavior.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 22 01:48:33 1997 UTC (27 years ago) by thorpej
Branch: MAIN
Changes since 1.1: +63 -63 lines
Diff to previous 1.1 (colored) to selected 1.42.2.2 (colored)

Purely cosmetic whitespace and indentation changes (mmm, indent(1))

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Mar 14 02:40:32 1997 UTC (27 years ago) by perry
Branch: DROCHNER
CVS Tags: bootcode-970312
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.42.2.2 (colored)

Initial import of new boot code, created by Matthias Drochner with a
little hacking by me. This isn't strictly identical to his 920312
release -- I've hacked it a bit -- but since we are taking over change
control it doesn't matter much.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 14 02:40:32 1997 UTC (27 years ago) by perry
Branch: MAIN
Diff to selected 1.42.2.2 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>