The NetBSD Project

CVS log for src/sys/arch/i386/stand/efiboot/efimemory.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.9.26.1: download - view: text, markup, annotated - select for diffs
Fri Nov 3 10:01:13 2023 UTC (13 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +2 -2 lines
Pull up following revision(s) (requested by rin in ticket #452):

	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.7
	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.8
	sys/arch/i386/stand/efiboot/boot.c: revision 1.23
	sys/arch/i386/stand/efiboot/efidisk.c: revision 1.10
	sys/arch/i386/stand/efiboot/devopen.c: revision 1.14
	sys/arch/i386/stand/efiboot/efimemory.c: revision 1.10

x86/efiboot: Nix trailing whitespace.

whitespace -> tab, blank line, no binary changes.

``int i'' is used only for SUPPORT_NFS || SUPPORT_TFTP.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun May 14 09:07:54 2023 UTC (18 months, 3 weeks ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
x86/efiboot: Nix trailing whitespace.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:54 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +157 -51 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.4.10.3: download - view: text, markup, annotated - select for diffs
Wed Sep 18 17:30:05 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.4.10.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.10.2: +35 -1 lines
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.8.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 17 19:32:00 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +35 -1 lines
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.9: download - view: text, markup, annotated - select for diffs
Fri Sep 13 02:19:45 2019 UTC (5 years, 2 months ago) by manu
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-10-base, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-10
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +35 -1 lines
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.4.10.2: download - view: text, markup, annotated - select for diffs
Thu Aug 1 13:22:48 2019 UTC (5 years, 4 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.4.10.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.10.1: +123 -51 lines
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.8: download - view: text, markup, annotated - select for diffs
Mon Jul 29 11:33:07 2019 UTC (5 years, 4 months ago) by nonaka
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +28 -46 lines
Sync the output of memmap command to the output of stand/efiboot mem command.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Jul 29 11:28:51 2019 UTC (5 years, 4 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +84 -6 lines
Added BTINFO_EFIMEMMAP compaction support to x86 efiboot.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Jul 26 12:09:48 2019 UTC (5 years, 4 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +14 -2 lines
Pre-allocate memory for the kernel space at startup.

Revision 1.4.10.1: download - view: text, markup, annotated - select for diffs
Mon Apr 2 08:50:33 2018 UTC (6 years, 8 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +9 -9 lines
Pull up following revision(s) (requested by nonaka in ticket #685):

	sys/arch/i386/stand/efiboot/efidisk.c: revision 1.4
	sys/arch/i386/stand/efiboot/bootx64/efibootx64.c: revision 1.4
	sys/arch/i386/stand/efiboot/eficons.c: revision 1.5
	sys/arch/i386/stand/efiboot/efichar.c: revision 1.1
	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.4
	sys/arch/i386/stand/efiboot/boot.c: revision 1.8
	sys/arch/i386/stand/efiboot/efimemory.c: revision 1.5
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.6
	sys/arch/i386/stand/efiboot/efidelay.c: revision 1.2
	sys/arch/i386/stand/efiboot/efiboot.h: revision 1.7
	sys/arch/i386/stand/efiboot/Makefile.efiboot: revision 1.11

efiboot: Added serial console support.

Revision 1.4.18.1: download - view: text, markup, annotated - select for diffs
Fri Mar 30 06:20:11 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +9 -9 lines
Resolve conflicts between branch and HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Mar 27 14:15:05 2018 UTC (6 years, 8 months ago) by nonaka
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20190609, 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, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +9 -9 lines
efiboot: Added serial console support.

Revision 1.4.16.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:18 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.4.16.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.16.1: +336 -0 lines
update from HEAD

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:41 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.2: +23 -37 lines
Sync with HEAD

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:15 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +336 -0 lines
Sync with HEAD

Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Tue Feb 14 13:29:10 2017 UTC (7 years, 9 months ago) by nonaka
Branches: bouyer-socketcan
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.1: +336 -0 lines
1210367

Revision 1.4.16.1
Tue Feb 14 13:29:09 2017 UTC (7 years, 9 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.4: +0 -336 lines
file efimemory.c was added on branch tls-maxphys on 2017-12-03 11:36:18 +0000

Revision 1.4.6.1
Tue Feb 14 13:29:09 2017 UTC (7 years, 9 months ago) by nonaka
Branches: bouyer-socketcan
FILE REMOVED
Changes since revision 1.4: +0 -336 lines
file efimemory.c was added on branch bouyer-socketcan on 2017-02-14 13:29:10 +0000

Revision 1.4.2.1
Tue Feb 14 13:29:09 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-localcount
FILE REMOVED
Changes since revision 1.4: +0 -336 lines
file efimemory.c was added on branch pgoyette-localcount on 2017-03-20 06:57:15 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Feb 14 13:29:09 2017 UTC (7 years, 9 months ago) by nonaka
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: tls-maxphys, pgoyette-localcount, pgoyette-compat, netbsd-8, bouyer-socketcan
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +15 -3 lines
Handle persistent memory. Currently only debug output.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Feb 11 10:13:46 2017 UTC (7 years, 9 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -35 lines
efiboot: pass memory map after ExitBootService is called to kernel.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:12 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +350 -0 lines
Sync with HEAD

Revision 1.2.2.1
Fri Feb 3 16:42:26 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.2: +0 -350 lines
file efimemory.c was added on branch nick-nhusb on 2017-02-05 13:40:12 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Feb 3 16:42:26 2017 UTC (7 years, 10 months ago) by roy
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Branch point for: nick-nhusb
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
rows is a uint ... it will always be greater than or equal to 0.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jan 24 11:09:14 2017 UTC (7 years, 10 months ago) by nonaka
Branches: MAIN
Initial commit of native amd64 EFI boot loader.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>