diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-03-28 09:09:27 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-03-28 09:09:27 +0100 |
| commit | f204ff88659e058d70213fc7224a2c95c6a48c9d (patch) | |
| tree | b4d62fa0dc6da921e25aa3fac400cab892a78e57 /libfdt | |
| parent | 08f96fce677d9cf4f8757cf064c07f80e30d378e (diff) | |
coreboot: rename from NeKernel firmware, refactor symbols to `cb_`, update docs
This patch completes a major renaming and cleanup of the firmware codebase:
- Rename project from "NeKernel Firmware" to "CoreBoot" in README and comments.
- Replace all `mp_`-prefixed symbols with `cb_` to reflect the new naming scheme.
- Remove obsolete SPECIFICATION.TXT and replace with SPECIFICATION_FIRMWARE.md.
- Update memory-mapped I/O helpers, TLB init, and platform-specific code to match `cb_*` naming.
- Refactor low-level UART, panic, PCI-tree, partition map, and context setup to use unified `cb_` API.
- Adjust linker scripts and boot vectors for ARM64, PPC64, and RV64 targets accordingly.
- Add Doxygen documentation note to README.
This change is part of an ongoing effort to rebrand and unify the firmware interface, improve naming clarity, and better align with platform-specific toolchains.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'libfdt')
| -rw-r--r-- | libfdt/libfdt.h | 6 | ||||
| -rw-r--r-- | libfdt/libfdt_strerror.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h index 5ed9144..3a42602 100644 --- a/libfdt/libfdt.h +++ b/libfdt/libfdt.h @@ -47,7 +47,7 @@ struct fdt_header fdt32_t off_dt_strings; /* offset to strings */ fdt32_t off_mem_rsvmap; /* offset to memory reserve map */ fdt32_t version; /* format version */ - fdt32_t last_comp_version; /* last compatible version */ + fdt32_t last_cocb_version; /* last compatible version */ /* version 2 fields below */ fdt32_t boot_cpuid_phys; /* Which physical CPU id we're @@ -163,7 +163,7 @@ int fdt_next_subnode(const void* fdt, int offset); #define fdt_off_dt_strings(fdt) (fdt_get_header(fdt, off_dt_strings)) #define fdt_off_mem_rsvmap(fdt) (fdt_get_header(fdt, off_mem_rsvmap)) #define fdt_version(fdt) (fdt_get_header(fdt, version)) -#define fdt_last_comp_version(fdt) (fdt_get_header(fdt, last_comp_version)) +#define fdt_last_cocb_version(fdt) (fdt_get_header(fdt, last_cocb_version)) #define fdt_boot_cpuid_phys(fdt) (fdt_get_header(fdt, boot_cpuid_phys)) #define fdt_size_dt_strings(fdt) (fdt_get_header(fdt, size_dt_strings)) #define fdt_size_dt_struct(fdt) (fdt_get_header(fdt, size_dt_struct)) @@ -181,7 +181,7 @@ fdt_set_hdr_(off_dt_struct); fdt_set_hdr_(off_dt_strings); fdt_set_hdr_(off_mem_rsvmap); fdt_set_hdr_(version); -fdt_set_hdr_(last_comp_version); +fdt_set_hdr_(last_cocb_version); fdt_set_hdr_(boot_cpuid_phys); fdt_set_hdr_(size_dt_strings); fdt_set_hdr_(size_dt_struct); diff --git a/libfdt/libfdt_strerror.c b/libfdt/libfdt_strerror.c index 4002afc..0225f5e 100644 --- a/libfdt/libfdt_strerror.c +++ b/libfdt/libfdt_strerror.c @@ -22,7 +22,7 @@ struct fdt_err .e_str = #VAL, \ } -static struct fdt_err mp_fdtErrTbl[] = { +static struct fdt_err cb_fdtErrTbl[] = { fdt_error(FDT_ERR_NOTFOUND), fdt_error(FDT_ERR_EXISTS), fdt_error(FDT_ERR_NOSPACE), @@ -46,7 +46,7 @@ static struct fdt_err mp_fdtErrTbl[] = { fdt_error(FDT_ERR_ALIGNMENT), }; -#define fdt_error_length() mpux_array_size(mp_fdtErrTbl) +#define fdt_error_length() mpux_array_size(cb_fdtErrTbl) /// @brief Returns the error value as a string. /// @param errval @@ -63,7 +63,7 @@ const char* fdt_strerror(int32_t errval) } else if (-errval < fdt_error_length()) { - const char* serr = mp_fdtErrTbl[errval].e_str; + const char* serr = cb_fdtErrTbl[errval].e_str; if (serr != null) { |
