arch/xtensa/kernel/platform.c
Source file repositories/reference/linux-study-clean/arch/xtensa/kernel/platform.c
File Facts
- System
- Linux kernel
- Corpus path
arch/xtensa/kernel/platform.c- Extension
.c- Size
- 1007 bytes
- Lines
- 46
- Domain
- Architecture Layer
- Bucket
- arch/xtensa
- 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.
Dependency Surface
linux/printk.hlinux/types.hlinux/units.hasm/platform.hasm/timex.h
Detected Declarations
function Copyrightfunction platform_calibrate_ccount
Annotated Snippet
#include <linux/printk.h>
#include <linux/types.h>
#include <linux/units.h>
#include <asm/platform.h>
#include <asm/timex.h>
/*
* Default functions that are used if no platform specific function is defined.
* (Please, refer to arch/xtensa/include/asm/platform.h for more information)
*/
void __weak __init platform_init(bp_tag_t *first)
{
}
void __weak __init platform_setup(char **cmd)
{
}
void __weak platform_idle(void)
{
__asm__ __volatile__ ("waiti 0" ::: "memory");
}
#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
void __weak platform_calibrate_ccount(void)
{
pr_err("ERROR: Cannot calibrate cpu frequency! Assuming 10 MHz.\n");
ccount_freq = 10 * HZ_PER_MHZ;
}
#endif
Annotation
- Immediate include surface: `linux/printk.h`, `linux/types.h`, `linux/units.h`, `asm/platform.h`, `asm/timex.h`.
- Detected declarations: `function Copyright`, `function platform_calibrate_ccount`.
- Atlas domain: Architecture Layer / arch/xtensa.
- 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.