From 95f83320b112a5368430adefb05c97d030b74b2c Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 4 Apr 2023 16:09:17 +0000 Subject: [PATCH] arch: use a non-doc comment for diagram This doesn't need to be rendered in the HTML API documentation, and wouldn't be formatted correctly if it was. Signed-off-by: Alyssa Ross --- arch/src/aarch64/regs.rs | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/arch/src/aarch64/regs.rs b/arch/src/aarch64/regs.rs index b76a7807f..17294d6c0 100644 --- a/arch/src/aarch64/regs.rs +++ b/arch/src/aarch64/regs.rs @@ -1,18 +1,17 @@ // Copyright 2022 Arm Limited (or its affiliates). All rights reserved. // SPDX-License-Identifier: Apache-2.0 -/// -/// AArch64 system register encoding: -/// See https://developer.arm.com/documentation/ddi0487 (chapter D12) -/// -/// 31 22 21 20 19 18 16 15 12 11 8 7 5 4 0 -/// +----------+---+-----+-----+-----+-----+-----+----+ -/// |1101010100| L | op0 | op1 | CRn | CRm | op2 | Rt | -/// +----------+---+-----+-----+-----+-----+-----+----+ -/// -/// Notes: -/// - L and Rt are reserved as implementation defined fields, ignored. -/// +// AArch64 system register encoding: +// See https://developer.arm.com/documentation/ddi0487 (chapter D12) +// +// 31 22 21 20 19 18 16 15 12 11 8 7 5 4 0 +// +----------+---+-----+-----+-----+-----+-----+----+ +// |1101010100| L | op0 | op1 | CRn | CRm | op2 | Rt | +// +----------+---+-----+-----+-----+-----+-----+----+ +// +// Notes: +// - L and Rt are reserved as implementation defined fields, ignored. + const SYSREG_HEAD: u32 = 0b1101010100u32 << 22; const SYSREG_OP0_SHIFT: u32 = 19; const SYSREG_OP0_MASK: u32 = 0b11u32 << 19;