arch/riscv/kernel/bugs.c

Source file repositories/reference/linux-study-clean/arch/riscv/kernel/bugs.c

File Facts

System
Linux kernel
Corpus path
arch/riscv/kernel/bugs.c
Extension
.c
Size
1401 bytes
Lines
61
Domain
Architecture Layer
Bucket
arch/riscv
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.

Dependency Surface

Detected Declarations

Annotated Snippet

switch (ghostwrite_state) {
		case UNAFFECTED:
			return sysfs_emit(buf, "Not affected\n");
		case MITIGATED:
			return sysfs_emit(buf, "Mitigation: xtheadvector disabled\n");
		case VULNERABLE:
			fallthrough;
		default:
			return sysfs_emit(buf, "Vulnerable\n");
		}
	}

	return sysfs_emit(buf, "Not affected\n");
}

Annotation

Implementation Notes