📄 imgmap
字号:
/* -*- 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. *//* * serial_test domain test case. This test induces a GPL fault for an I/O * instruction. *//* * Set up the caller domain: */#include <primebank.map>#include <drivers/serial.map>serial_test = new process;serial_test.seg = small program "serial_test";serial_test.pc = symbol "serial_test" _start;serial_test pc = serial_test.pc;serial_test sp = 0x1000;serial_test space = serial_test.seg;serial_test schedule = sched(8); /* normal */serial_test key reg 2=serial_test;serial_test key reg 4=primebank;serial_test key reg 5=sched(8);serial_test key reg 7 = misc Console;/* serial_test is the IPL domain */run serial_test;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -