[PATCH v3 03/18] pxe: Use a context pointer

Tom Rini trini at konsulko.com
Fri Nov 12 16:39:04 CET 2021


On Thu, Oct 14, 2021 at 12:47:56PM -0600, Simon Glass wrote:

> At present the PXE functions pass around a pointer to command-table entry
> which is very strange. It is only needed in a few places and it is odd to
> pass around a data structure from another module in this way.
> 
> For bootmethod we will need to provide some context information when
> reading files.
> 
> Create a PXE context struct to hold the command-table-entry pointer and
> pass that around instead. We can then add more things to the context as
> needed.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Artem Lapkin <email2tema at gmail.com>
> Tested-by:  Artem Lapkin <email2tema at gmail.com>
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211112/2c4ae3e3/attachment.sig>


More information about the U-Boot mailing list