📄 segwalk.hxx
字号:
#ifndef __SEGWALK_HXX__#define __SEGWALK_HXX__/* * Copyright (C) 1998, 1999, 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. */#if 0#define SW_ISWRITE 0x1u#define SW_ISPROMPT 0x2u#define SW_CANCALL 0x4u#define SW_CANWRITE 0x8u#endif/* #define SW_CANTRAVERSE 0x10u */struct SegWalk { uint32_t frameBits; /* number of bits in frame offset */ uva_t vaddr; /* in case invoking domain keeper */ Key *pSegKey; uint32_t segBlss; struct ObjectHeader *segObj;#ifdef KT_Wrapper bool segObjIsWrapper;#else bool segObjIsRed;#endif uint64_t offset; Node *redSeg; uint64_t redSegOffset; uint32_t redSpanBlss; /* blss of segment spanned by red seg */#if 0 uint32_t flags;#else bool writeAccess; bool canCall; bool canWrite; bool canFullFetch; /* not a sensory path */#endif bool invokeKeeperOK; bool invokeProcessKeeperOK; bool wantLeafNode; uint32_t faultCode; uint32_t traverseCount;}; void segwalk_init(SegWalk &wi, Key *pSegKey);#endif /* __SEGWALK_HXX__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -