os.tcl

来自「一个用在mips体系结构中的操作系统」· TCL 代码 · 共 64 行

TCL
64
字号
## Copyright (C) 1998 by the Board of Trustees#    of Leland Stanford Junior University.# Copyright (C) 1998 Digital Equipment Corporation## This file is part of the SimOS distribution.# See LICENSE file for terms of the license.### Copyright (C) 1996-1998 by the Board of Trustees#    of Leland Stanford Junior University.# # This file is part of the SimOS distribution. # See LICENSE file for terms of the license. ####### This file is responsible for raising OS level annotations and tracking### the current process.############## init this module####FileSourced ntalpha/os.tclannotation type osEvent enum {    startUser   endUser    startKernel endKernel    startPal    endPal    startIdle   endIdle    startSync   endSync    switchIn    switchOut    procstart   procexit   procexec  procwait}# must agree with cpus-alpha/alpha-shared/ev5.cannotation type exc enum {    reset mchk arith interrupt ndtb_miss pdtb_miss unalign dtb_fault itb_miss itb_acv opdec fen pal}proc inUserMode {} {    global IPR    set IPR_PS 0x10f    set PS $IPR(0x10f)    return [expr ($PS & 24) != 0]}set PROCESS($CPU) noneset PID($CPU) none######## the annotations ######## process and idle tracking##

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?