summaryrefslogtreecommitdiff
path: root/stand/libofw
Commit message (Collapse)AuthorAgeFilesLines
* Fix 64-bit build of libofw.Brandon Bergren2020-09-081-10/+10
| | | | | | | | | | | | | | Adjust a couple of printf() lines that deal with dumping out addresses to cast to uintmax_t. This allows building a 64-bit libofw for use in things like a future Petitboot loader for PowerPC64, and other FDT platforms that require a 64-bit loader binary and want to use forth. Sponsored by: Tag1 Consulting, Inc. Notes: svn path=/head/; revision=365483
* loader: libofw build is missing sys/list.h after r362431Toomas Soome2020-06-201-0/+1
| | | | | | | Add another include path Notes: svn path=/head/; revision=362433
* loader: fix libofw build after r362431Toomas Soome2020-06-201-1/+1
| | | | Notes: svn path=/head/; revision=362432
* Redo r360540 to retain the ifndef sparc code, not delete it.Warner Losh2020-05-011-4/+10
| | | | | | | | | Also undo the BROKEN stuff, since it was based on the same misreading. Noticed by: Jens Schweikhardt Notes: svn path=/head/; revision=360543
* Remove more stray sparc64 ifdefs.Warner Losh2020-05-011-18/+4
| | | | | | | | | Also, dmabuf appears to only be set for sparc64 case, but there was a comment at its only use that says it was broken for some apple adapters. #ifdef it all of that out now that nothing sets it. Notes: svn path=/head/; revision=360540
* veloader use vectx API for kernel and modulesSimon J. Gerraty2020-03-082-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The vectx API, computes the hash for verifying a file as it is read. This avoids the overhead of reading files twice - once to verify, then again to load. For doing an install via loader, avoiding the need to rewind large files is critical. This API is only used for modules, kernel and mdimage as these are the biggest files read by the loader. The reduction in boot time depends on how expensive the I/O is on any given platform. On a fast VM we see 6% improvement. For install via loader the first file to be verified is likely to be the kernel, so some of the prep work (finding manifest etc) done by verify_file() needs to be factored so it can be reused for vectx_open(). For missing or unrecognized fingerprint entries, we fail in vectx_open() unless verifying is disabled. Otherwise fingerprint check happens in vectx_close() and since this API is only used for files which must be verified (VE_MUST) we panic if we get an incorrect hash. Reviewed by: imp,tsoome MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org//D23827 Notes: svn path=/head/; revision=358744
* Remove sparc64 support from the boot loader.Warner Losh2020-02-031-2/+0
| | | | | | | Remove all the sparc64 specific bits, both files and ifdefs. Notes: svn path=/head/; revision=357454
* Backout 356693. The libsa malloc does provide necessary alignment andToomas Soome2020-01-131-1/+1
| | | | | | | | memalign by 4 will reduce alignment for some platforms. Thanks for Ian for pointing this out. Notes: svn path=/head/; revision=356700
* loader: allocate properly aligned buffer for network packetToomas Soome2020-01-131-1/+1
| | | | | | | | | Use memalign(4, size) to ensure we have properly aligned buffer. MFC after: 2 weeks Notes: svn path=/head/; revision=356693
* Move stand/ofw/libofw to stand/libofw.Brandon Bergren2020-01-0213-0/+2225
Since rS330365, there has been no particular reason for libofw to be in a subdirectory of ofw. Move libofw up a level to make it fit in better with the other top level libraries. Also add a LIBOFWSRC to stand/defs.mk to match what all the other libraries are doing. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D23000 Notes: svn path=/head/; revision=356266