ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
emu_elf_source_internal.h
Go to the documentation of this file.
1
10
11#pragma once
12
13#include <stddef.h>
14#include <stdint.h>
15
16#include "emu_elf.h"
17#include "ra8_attributes.h"
18
33RA8_PRIV [[nodiscard]] emu_elf_io_result_t priv_emu_elf_source_open(const char* path,
34 emu_elf_source_t* source);
35
50
70 uint64_t offset,
71 size_t required_bytes,
72 void* scratch,
73 size_t supplied_bytes,
74 emu_elf_view_t* view);
ELF32 image services for the board emulator (load / symbols / vectors).
emu_elf_io_result_t priv_emu_elf_read(const emu_elf_source_t *source, uint64_t offset, size_t required_bytes, void *scratch, size_t supplied_bytes, emu_elf_view_t *view)
Read one exact source range into caller-owned bounded scratch.
emu_elf_io_result_t priv_emu_elf_source_open(const char *path, emu_elf_source_t *source)
Open one regular ELF source without reading or allocating its bytes.
emu_elf_io_result_t priv_emu_elf_source_close(emu_elf_source_t *source)
Close and invalidate one independently owned ELF source.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Exact result for source open and bounded view acquisition.
Definition emu_elf.h:83
One independently owned immutable raw-descriptor ELF source.
Definition emu_elf.h:91
Transient view into caller-owned bounded scratch.
Definition emu_elf.h:97