📄 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.### shared segment test case -- this really isn't intended to run, just# to verify that I can construct a shared segment correctly:## Set up the caller domain:#arch i486zero segtree shared pages 2print segment shared.segshared.seg add page 0x1000print segment shared.segdomain call_1program segment call_1 = callcall_1.seg add page 0x20000 # for stackprint segment call_1.segcall_1.seg add subseg shared.seg at 0x400000print segment call_1.segcall_1.dom pc = call_1.pccall_1.dom sp = 0x21000call_1.dom space = call_1.segcall_1.dom priority = sched(8) # normaldomain call_2program segment call_2 = callcall_2.seg add page 0x20000 # for stack# The following page shouldn't be overwritten, but it is.#call_2.seg add page 0x4301000call_2.seg add subseg shared.seg at 0x4300000call_2.dom pc = call_2.pccall_2.dom sp = 0x21000call_2.dom space = call_2.segcall_2.dom priority = sched(8) # normalprint segment call_1.segprint segment call_2.seg
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -