arch/s390/boot/als.c
Source file repositories/reference/linux-study-clean/arch/s390/boot/als.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/boot/als.c- Extension
.c- Size
- 1788 bytes
- Lines
- 82
- Domain
- Architecture Layer
- Bucket
- arch/s390
- 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
linux/kernel.hasm/processor.hasm/facility.hasm/lowcore.hasm/sclp.hboot.h
Detected Declarations
function u16_to_decimalfunction print_missing_facilitiesfunction facility_mismatchfunction verify_facilities
Annotated Snippet
if (strlen(als_str) > 70) {
boot_emerg("%s\n", als_str);
*als_str = '\0';
}
u16_to_decimal(val_str, i * BITS_PER_LONG + j);
strcat(als_str, val_str);
first = 0;
}
}
boot_emerg("%s\n", als_str);
}
static void facility_mismatch(void)
{
struct cpuid id;
get_cpu_id(&id);
boot_emerg("The Linux kernel requires more recent processor hardware\n");
boot_emerg("Detected machine-type number: %4x\n", id.machine);
print_missing_facilities();
boot_emerg("See z/Architecture Principles of Operation - Facility Indications\n");
disabled_wait();
}
void verify_facilities(void)
{
int i;
__stfle(stfle_fac_list, ARRAY_SIZE(stfle_fac_list));
for (i = 0; i < ARRAY_SIZE(als); i++) {
if ((stfle_fac_list[i] & als[i]) != als[i])
facility_mismatch();
}
}
Annotation
- Immediate include surface: `linux/kernel.h`, `asm/processor.h`, `asm/facility.h`, `asm/lowcore.h`, `asm/sclp.h`, `boot.h`.
- Detected declarations: `function u16_to_decimal`, `function print_missing_facilities`, `function facility_mismatch`, `function verify_facilities`.
- Atlas domain: Architecture Layer / arch/s390.
- 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.