stub: Fix booting with old kernels
authorJan Janssen <medhefgo@web.de>
Sun, 16 Oct 2022 07:36:21 +0000 (09:36 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 17 Oct 2022 06:43:01 +0000 (08:43 +0200)
commitd388f3d7237c5bd37ecb1187acf81c07b4dce8ae
tree35698711cc29b6019eb638b2020b5850b6901ff2
parent235ae69cbeb37f52eb96e8cbf8fc9d5738e91465
stub: Fix booting with old kernels

This fixes a regression introduced in e1636807 that removed setting this
value as it seemingly was not used by the kernel and would actively
break above 4G boots. But old kernels (4.18 in particular) will not boot
properly if it is not filled out by us.
The original issue was using the truncated value to then jump into the
kernel entry point, which we do not do anymore. So setting this value
again on newer kernels is fine.
src/boot/efi/linux_x86.c