Skip to content
Commit 50d459d7 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

pxe: Use a context pointer



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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarArtem Lapkin <email2tema@gmail.com>
Tested-by: default avatarArtem Lapkin <email2tema@gmail.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent c62c7bb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment