// SPDX-License-Identifier: GPL-2.0-only /* * Arch related setup for Hexagon * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
*/
/* * These will eventually be pulled in via either some hypervisor * or devicetree description. Hardwiring for now.
*/
pcycle_freq_mhz = 600;
thread_freq_mhz = 100;
sleep_clk_freq = 32000;
/* * Set up event bindings to handle exceptions and interrupts.
*/
__vmsetvec(_K_VM_event_vector);
/* * Simulator has a few differences from the hardware. * For now, check uninitialized-but-mapped memory * prior to invoking setup_arch_memory().
*/ if (*(int *)((unsignedlong)_end + 8) == 0x1f1f1f1f)
on_simulator = 1; else
on_simulator = 0;
/* * boot_command_line and the value set up by setup_arch * are both picked up by the init code. If no reason to * make them different, pass the same pointer back.
*/
strscpy(cmd_line, boot_command_line, COMMAND_LINE_SIZE);
*cmdline_p = cmd_line;
parse_early_param();
setup_arch_memory();
#ifdef CONFIG_SMP
smp_start_cpus(); #endif
}
/* * Functions for dumping CPU info via /proc * Probably should move to kernel/proc.c or something.
*/ staticvoid *c_start(struct seq_file *m, loff_t *pos)
{ return *pos < nr_cpu_ids ? (void *)((unsignedlong) *pos + 1) : NULL;
}
/* * Eventually this will dump information about * CPU properties like ISA level, TLB size, etc.
*/ staticint show_cpuinfo(struct seq_file *m, void *v)
{ int cpu = (unsignedlong) v - 1;
#ifdef CONFIG_SMP if (!cpu_online(cpu)) return 0; #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.