arch/mips/boot/ecoff.h
Source file repositories/reference/linux-study-clean/arch/mips/boot/ecoff.h
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/boot/ecoff.h- Extension
.h- Size
- 2188 bytes
- Lines
- 66
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
stdint.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#include <stdint.h>
typedef struct filehdr {
uint16_t f_magic; /* magic number */
uint16_t f_nscns; /* number of sections */
int32_t f_timdat; /* time & date stamp */
int32_t f_symptr; /* file pointer to symbolic header */
int32_t f_nsyms; /* sizeof(symbolic hdr) */
uint16_t f_opthdr; /* sizeof(optional hdr) */
uint16_t f_flags; /* flags */
} FILHDR;
#define FILHSZ sizeof(FILHDR)
#define MIPSEBMAGIC 0x160
#define MIPSELMAGIC 0x162
typedef struct scnhdr {
char s_name[8]; /* section name */
int32_t s_paddr; /* physical address, aliased s_nlib */
int32_t s_vaddr; /* virtual address */
int32_t s_size; /* section size */
int32_t s_scnptr; /* file ptr to raw data for section */
int32_t s_relptr; /* file ptr to relocation */
int32_t s_lnnoptr; /* file ptr to gp histogram */
uint16_t s_nreloc; /* number of relocation entries */
uint16_t s_nlnno; /* number of gp histogram entries */
int32_t s_flags; /* flags */
} SCNHDR;
#define SCNHSZ sizeof(SCNHDR)
#define SCNROUND ((int32_t)16)
typedef struct aouthdr {
int16_t magic; /* see above */
int16_t vstamp; /* version stamp */
int32_t tsize; /* text size in bytes, padded to DW bdry*/
int32_t dsize; /* initialized data " " */
int32_t bsize; /* uninitialized data " " */
int32_t entry; /* entry pt. */
int32_t text_start; /* base of text used for this file */
int32_t data_start; /* base of data used for this file */
int32_t bss_start; /* base of bss used for this file */
int32_t gprmask; /* general purpose register mask */
int32_t cprmask[4]; /* co-processor register masks */
int32_t gp_value; /* the gp value used for this object */
} AOUTHDR;
#define AOUTHSZ sizeof(AOUTHDR)
#define OMAGIC 0407
#define NMAGIC 0410
#define ZMAGIC 0413
#define SMAGIC 0411
#define LIBMAGIC 0443
#define N_TXTOFF(f, a) \
((a).magic == ZMAGIC || (a).magic == LIBMAGIC ? 0 : \
((a).vstamp < 23 ? \
((FILHSZ + AOUTHSZ + (f).f_nscns * SCNHSZ + 7) & 0xfffffff8) : \
((FILHSZ + AOUTHSZ + (f).f_nscns * SCNHSZ + SCNROUND-1) & ~(SCNROUND-1)) ) )
#define N_DATOFF(f, a) \
N_TXTOFF(f, a) + (a).tsize;
Annotation
- Immediate include surface: `stdint.h`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.