summaryrefslogtreecommitdiff
path: root/apps/lfbgrid.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a minor coverity complaint in some appsPeter Jones2023-03-281-1/+2
| | | | | | | | | | | | | | | | | | | | | Coverity added a new kind of check, and it noticed some minor errors with some types in two of the apps here, both of the same form: 1. gnu-efi-3.0.6/apps/lfbgrid.c:91: overflow_before_widen: Potentially overflowing expression "info->VerticalResolution * info->PixelsPerScanLine" with type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "UINTN" (64 bits, unsigned). 1. gnu-efi-3.0.6/apps/bltgrid.c:67: overflow_before_widen: Potentially overflowing expression "info->VerticalResolution * info->HorizontalResolution" with type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "UINTN" (64 bits, unsigned). This resolves both issues. Signed-off-by: Peter Jones <pjones@redhat.com>
* lfbgrid: Make pointer size testing not arch name dependentPeter Jones2023-03-281-8/+4
|
* Add support for LoongArch64 architecturezhoumingtao2021-12-301-2/+4
|
* Merge /u/xypron/gnu-efi/ branch misc_fixes into masterb'Nigel Croxon2021-06-241-1/+1
|\ | | | | | | https://sourceforge.net/p/gnu-efi/code/merge-requests/25/
| * apps: simplify logical constraintsHeinrich Schuchardt2021-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | EFI_ERROR(EFI_NOT_STARTED) is true. So we can simplify (EFI_ERROR(rc) && rc == EFI_NOT_STARTED) to (rc == EFI_NOT_STARTED) Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | apps: define FrameBufferAddr for riscv64Heinrich Schuchardt2021-06-231-2/+4
|/ | | | | | | The size of FrameBufferAddr is architecture dependent. Add the missing definition for the riscv64 architecture. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* apps: Add bltgrid and lfbgrid, and add error checks to modelistPeter Jones2018-03-141-0/+170
This adds bltgrid and lfbgrid, which draw checkerboards using GOP's Blt() and linear framebuffer, respectively, and adds some error checks to modelist.efi. Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>