Merge patch series "bloblist: refactor xferlist and bloblist"

Tom Rini <trini@konsulko.com> says:

This small series separates "bloblist" and "standard passage" to allow
for these similar concepts to explore solutions to problems without
introduces breaking changes to the other.

Link: https://lore.kernel.org/r/20250220000223.1044376-1-raymond.mao@linaro.org
This commit is contained in:
Tom Rini
2025-02-19 18:49:47 -06:00
7 changed files with 87 additions and 65 deletions

View File

@@ -8,18 +8,16 @@
#include <bloblist.h>
#include "xferlist.h"
int xferlist_from_boot_arg(ulong addr, ulong size)
int xferlist_from_boot_arg(ulong *addr)
{
int ret;
ret = bloblist_check(saved_args[3], size);
if (ret)
return ret;
ret = bloblist_check_reg_conv(saved_args[0], saved_args[2],
saved_args[1]);
saved_args[1], saved_args[3]);
if (ret)
return ret;
return bloblist_reloc((void *)addr, size);
*addr = bloblist_get_base();
return 0;
}