📄 imgmap
字号:
/* -*- Mode: c -*- *//* * Copyright (C) 2001, Jonathan S. Shapiro. * * This file is part of the EROS Operating System. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2, * or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *//********************************************* * PRIMORDIAL DOMAINS *********************************************/#include <primebank.map>#include <ipltool.map>/* Normally, the keeper would come from a constructor (as would the * victim), but here I will just set them up by hand. * * Note that "kepeer" is a keyword, so we cannot name the variable * that. */trivkpr = new process with constituents;trivkpr space = small program BUILDDIR "trivkpr";trivkpr pc = symbol BUILDDIR "trivkpr" _start;trivkpr schedule = sched(8); /* "normal" */trivkpr key reg KR_SELF = trivkpr;trivkpr key reg KR_BANK = primebank;CONSTIT(trivkpr, KC_OSTREAM, KR_APP(0)) = misc Console;run trivkpr;/* Now set up the process that will do the dirty deed: */faulter = new process with constituents;faulter space = small program BUILDDIR "faulter";faulter pc = symbol BUILDDIR "faulter" _start;faulter schedule = sched(8);faulter process keeper = start trivkpr 0;faulter key reg KR_SELF = faulter;faulter key reg KR_BANK = primebank;CONSTIT(faulter, KC_OSTREAM, KR_APP(0)) = misc Console;CONSTIT(faulter, KC_SLEEP, KR_APP(1)) = misc sleep;run faulter;print directory;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -