taskswitch()

taskswitch()

概要

引数

実装

  278: static void
  279: taskswitch(ulong pdb, ulong stack)
  280: {
  281:         Tss *tss;
  282: 
  283:         tss = m->tss;
  284:         tss->ss0 = KDSEL;
  285:         tss->esp0 = stack;
  286:         tss->ss1 = KDSEL;
  287:         tss->esp1 = stack;
  288:         tss->ss2 = KDSEL;
  289:         tss->esp2 = stack;
  • TSSセグメントの設定
  290:         putcr3(pdb);
  291: }