把opengrok.ringotek.cn替换为code.dragonos.org.cn (#484)

This commit is contained in:
LoGin
2024-01-01 11:53:49 +08:00
committed by GitHub
parent c566df451c
commit e7071df6a4
36 changed files with 96 additions and 96 deletions

View File

@ -29,7 +29,7 @@ impl TSCManager {
///
/// 目前由于未支持acpi pm timer, 因此调用该函数时HPET应当完成初始化否则将无法校准TSC
///
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#1511
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#1511
pub fn init() -> Result<(), SystemError> {
let cpuid = x86::cpuid::CpuId::new();
let feat = cpuid.get_feature_info().ok_or(SystemError::ENODEV)?;
@ -57,7 +57,7 @@ impl TSCManager {
///
/// - `early`:是否在早期初始化
///
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#1438
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#1438
fn determine_cpu_tsc_frequency(early: bool) -> Result<(), SystemError> {
if unlikely(Self::cpu_khz() != 0 || Self::tsc_khz() != 0) {
kwarn!("TSC and CPU frequency already determined");
@ -237,7 +237,7 @@ impl TSCManager {
/// 尝试使用PIT来校准tsc时间并且返回tsc的频率khz
/// 如果失败那么返回None
///
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#389
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#389
fn pit_calibrate_tsc(latch: u64, ms: u64, loopmin: u64) -> Option<u64> {
// 当前暂时没写legacy pic的驱动因此这里直接返回
let has_legacy_pic = false;
@ -307,7 +307,7 @@ impl TSCManager {
///
/// - `Ok((tsc, ref))`tsc和参考值
///
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#317
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#317
fn read_refs(hpet_enabled: bool) -> (u64, u64) {
let thresh = if Self::tsc_khz() == 0 {
Self::DEFAULT_THRESHOLD
@ -335,7 +335,7 @@ impl TSCManager {
/// 根据HPET的参考值计算tsc的频率
///
/// https://opengrok.ringotek.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#339
/// https://code.dragonos.org.cn/xref/linux-6.1.9/arch/x86/kernel/tsc.c#339
fn calc_hpet_ref(mut deltatsc: u64, ref1: u64, mut ref2: u64) -> u64 {
if ref2 <= ref1 {
ref2 += 0x100000000;

View File

@ -536,7 +536,7 @@ fn handle_signal(
oldset: &SigSet,
frame: &mut TrapFrame,
) -> Result<i32, SystemError> {
// TODO 这里要补充一段逻辑好像是为了保证引入线程之后的地址空间不会出问题。详见https://opengrok.ringotek.cn/xref/linux-6.1.9/arch/mips/kernel/signal.c#830
// TODO 这里要补充一段逻辑好像是为了保证引入线程之后的地址空间不会出问题。详见https://code.dragonos.org.cn/xref/linux-6.1.9/arch/mips/kernel/signal.c#830
// 设置栈帧
return setup_frame(sig, sigaction, info, oldset, frame);

View File

@ -134,7 +134,7 @@ impl X86_64SmpManager {
}
/// initialize the logical cpu number to APIC ID mapping
pub fn build_cpu_map(&self) -> Result<(), SystemError> {
// 参考https://opengrok.ringotek.cn/xref/linux-6.1.9/arch/ia64/kernel/smpboot.c?fi=smp_build_cpu_map#496
// 参考https://code.dragonos.org.cn/xref/linux-6.1.9/arch/ia64/kernel/smpboot.c?fi=smp_build_cpu_map#496
// todo!("build_cpu_map")
return Ok(());
}