📄 test.imgmap.i486
字号:
## Copyright (C) 1998, 1999, 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.### Linediscipline: a multithreaded standard domain## 2 domains: ttyin, linedisc. ttyin is constantly reading# from the kdb device key and depositing characters into# a shared buffer. linedisc is the service that reads# and writes to the TTY, does line raw/cooked line discipline# and is never blocked.#arch i486domain primebankprogram segment primebank = /eros/domain/SpaceBank# add a page for the stack, and one for received messages:primebank.seg add page 0x20000primebank.seg add page 0x22000primebank.dom pc = primebank.pcprimebank.dom sp = 0x21000primebank.dom space = primebank.segprimebank.dom priority = sched(8) # normal# Official space bank brand is a distinguished start key to the # prime bank:primebank.dom brand = start primebank.dom 65535primebank.dom key reg 1 = PageRange(0x0:0x100000)primebank.dom key reg 2 = NodeRange(0x0:0x100000)primebank.dom key reg 3 = volsizeprimebank.dom accepts keys 12 13 14 15primebank.dom accepts string at 0x22000 length 4096domain ttyinprogram segment ttyseg = ttyinttyseg.seg add page 0x10000 # for incoming data, if anyttyseg.seg add page 0x20000 # for stack of ttyinttyseg.seg add page 0x30000 # for the shared pagettyin.dom pc = ttyseg.pcttyin.dom sp = 0x21000ttyin.dom space = ttyseg.segttyin.dom priority = sched(8) # normalttyin.dom key reg 8 = misc(ConsKbd)ttyin.dom key reg 9 = misc(ConsoleCreator) # for debugging ONLYttyin.dom key reg 10 = misc(Sleep)ttyin.dom key reg 11 = misc(KeyBits) # for debugging ONLY# linedisc is the IPL domain. it will FORK ttyindomain linediscipl linedisc.domprogram segment lineseg = linedisclineseg.seg add page 0x20000 # for stack lineseg.seg add page 0x30000 # for shared page; we "own" itlineseg.seg add page 0x10000 # for incoming msglinedisc.dom pc = lineseg.pclinedisc.dom sp = 0x21000linedisc.dom space = lineseg.seglinedisc.dom priority = sched(8) # normallinedisc.dom key reg 9 = misc(ConsoleCreator)linedisc.dom key reg 10 = misc(Sleep)linedisc.dom key reg 11 = misc(KeyBits) # for debugging ONLYlinedisc.dom key reg 6 = start primebank.dom 0linedisc.dom key reg 5 = start ttyin.dom 0ttyin.dom key reg 7 = start linedisc.dom 0ttyin.dom key reg 5 = ttyseg.segttyin.dom key reg 6 = lineseg.segttyin.dom accepts keys 12 13 14 15ttyin.dom accepts string at 0x10000 length 4096linedisc.dom accepts keys 12 13 14 15linedisc.dom accepts string at 0x10000 length 4096 # accepts one page
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -