identcpu.c
Source changes string letter casingCalls a character-class helper
SHA-2562c7a1d8936eaf797014ef2ceafaf0899a5758c9e14446e36435f11fb2e107203
MaleculeO(Er)H(Db₂)
Evidence
6:33… orne <mhorne@FreeBSD.org>
7 * Copyright (c) 2023 The FreeBSD Foundation
8 *
9 * Portions of this software were developed by SRI International and the
10 * University of Cambridge Computer Laboratory under DARPA/AFRL contract
11 * FA8750-10-C-023 …
14:6… mputer Laboratory as part of the CTSRD Project, with support from the
15 * UK Higher Education Innovation Fund (HEIF).
16 *
17 * Portions of this software …
38:47… VISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 */
41
42#include "opt_platform.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/ctype.h>
47#include <sys/kernel.h>
48#include <sys/pcpu.h>
49#include <sys/sysctl.h>
50
51#include <machine/cpu.h>
52#include <machine/cpufunc.h>
53#include <machine/elf.h>
54#include <machine/md_var.h>
55#include <machine/thead.h>
56#include <machine/cbo.h>
57
58#ifdef FDT
59#include <dev/fdt/fdt_common.h>
60#include <dev/ofw/openfirm.h>
61#include <dev/ofw/ofw_bus_subr.h>
62#endif
63
64const char machine[] = "riscv";
65
66SYSCTL_CONST_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD | CTLFLAG_CAPRD,
67 machine, "Machine class");
68
69/* Hardw …
239:59… ed,
240 u_int *minorp __unused)
241{
242 /* Major version. */
243 while (isdigit(isa[idx]))
244 idx++;
245
⋯8 lines
407 * certain.
408 */
409 for (int i = 0; i < len; i++)
410 isa[i] = tolower(isa[i]);
411 if (parse_riscv_isa(desc, isa, len) != 0)
412 return;
⋯5 lines