📄 test.old-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.### starter domain test case. This test case has two domains: a starterer and# a starteree. The starteree in this case is the talker domain. The starterer# simply invokes the talker domain and then does an illegal instruction,# allowing output to be examined through the kernel debugger.## Set up the starterer domain:#arch i486domain starterprogram segment starter = starterstarter.seg add page 0x20000 # for stackstarter.dom pc = starter.pcstarter.dom sp = 0x21000starter.dom space = starter.segstarter.dom priority = sched(8) # higher than either counter# starter is the IPL domainipl starter.dom## Now set up the talker domain:#domain talkerprogram segment talker = talkertalker.seg add page 0x20000 # for stacktalker.seg add page 0x10000 # for incoming datatalker.dom pc = talker.pctalker.dom sp = 0x21000talker.dom space = talker.segtalker.dom priority = sched(8) # normal## Now set up the talker domain:#domain spinnerprogram segment spinner = spinnerspinner.seg add page 0x20000 # for stackspinner.seg add page 0x10000 # for incoming dataspinner.dom pc = spinner.pcspinner.dom sp = 0x21000spinner.dom space = spinner.segspinner.dom priority = sched(8) # normalstarter.dom key reg 9 = misc(Sleep)starter.dom key reg 10 = misc(Console)starter.dom key reg 11 = start talker.dom 0starter.dom key reg 12 = start spinner.dom 0starter.dom key reg 14 = spinner.domstarter.dom key reg 15 = misc(SchedCreator)talker.dom key reg 9 = misc(Console)talker.dom key reg 10 = misc(Sleep)spinner.dom key reg 9 = misc(Console)print domain starter.domprint domain spinner.domprint segment spinner.segprint segment starter.segrun starter.domrun talker.domrun spinner.dom
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -