DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

NAME

cpu - Displays information about the cpu.

SYNOPSIS

cpu i

DESCRIPTION

The cpu macro takes one argument, a cpu number. It displays the cpu_info structure, the panic registers of the cpu, the proc structure of the "ONP" process, the tss for that process and the stack for that process.

Typical output looks like this:


S> cpu 0 

Data for cpuid 0

[C0002000]  cpuid 00000000
cpu_info: [D019A7D0]  slot 00000000  flags 00000005: EXISTS RUNNING
 kpd0 C0002000    ipl 00000000  cproc D11BD200  panic 00000000  qrunf 00
kupt0 C0003000  picpl 00000000  oldcu D11BD200  pnstr 00000000  lqflg 00
  gdt C0005000  valid 00000001  oldpr 00000000  curlk E02034AC  qhead 00000000
cmask C0005330   npic 00000002  idlep D11BD200  lktbl C00054B0
imask C0005310  picmx 00000001  fproc 00000000  pfbuf D01F979C  scqfl 00000000
dbug0 00000000  dbug2 00000000  dbug4 00000000  dbug6 00000000  dbug8 00000000
dbug1 00000000  dbug3 00000000  dbug5 00000000  dbug7 00000000  dbug9 00000000

Panic registers cpu 0
cr0  00000000  cr2  00000000  cr3 00000000  tlb  00000000
ss   00000000  uesp 00000000  efl 00000000  ipl  00000000
cs   00000000  eip  00000000  err 00000000  trap 00000000
eax  00000000  ecx  00000000  edx 00000000  ebx  00000000
esp  00000000  ebp  00000000  esi 00000000  edi  00000000
ds   00000000  es   00000000  fs  00000000  gs   00000000

[D11BD200]   ONPROC  flag 2031: SYS LOAD LOCK ULOAD
 pid 00002.   pri 4F   sig 00000000  ign 00000000  kbd 0  ubd -    uid 00000.
ppid 00000.  csig 00  mask 00000000  cid 00000000  run 0          usiz 0002
pgrp 00000.  cflt 00  hold 00000000   as 00000000  mutx D11BD38C  segu F0924000
u.u_psargs = "idleproc00"

Tss for proc D11BD200
[E00057B4]  cr3 00002000  eip sysdump+DE
eflags 00000286: PF SF IF IOPL=0
link 0000  stk0 0160:E0004E80  stk1 0160:E0004E80  stk2 0160:E0004E80
eax 00000000  edx FFFFFF00  esp E0004BD0  esi 00000000
ecx 00FFFFFF  ebx E020338C  ebp E0004BE0  edi 00000008
es,cs,ss,ds,fs,gs,ldt,base 0160 0158 0160 0160 0000 0000 0140 680000

Stack for proc D11BD200
E0204438    D02839F8            pfbuffers
E020443C    D0283DF8
E0204440    D02839F8

DEFINED IN

trace.k

SEE ALSO

panic, tss

APPENDIX A: Alphabetic Index of Macros