⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asm.h

📁 C++ 编写的EROS RTOS
💻 H
字号:
/* * Copyright (C) 1998, 1999, Jonathan S. Shapiro. * * This file is part of the EROS Operating System runtime library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This library 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, 59 Temple Place - Suite 330 Boston, MA 02111-1307, USA. */#define ALIGN 16#ifdef __ELF__#define EXT(x)  x#define LEXT(x) x## :#else#define EXT(x)  _##x#define LEXT(x) _##x## :#endif#define GEXT(x) .globl EXT(x); LEXT(x)#define	ALIGNEDVAR(x,al) .globl EXT(x); .align al; LEXT(x)#define	VAR(x)		ALIGNEDVAR(x,4)#define	ENTRY(x)	.globl EXT(x); .type EXT(x),@function; LEXT(x)#define	GDATA(x)	.globl EXT(x); .align ALIGN; LEXT(x)/* GNU assembler does not accept trailing 'u' in constants. */#define __U(x) x#ifdef __KERNEL__#define data32	.byte 0x66#define addr32	.byte 0x67#define	ENTRY16(x)	.globl EXT(x); LEXT(x)#define	ASMVAR16(x)	.globl EXT(x); LEXT(x)#define IOSTALL   outb %al,$0x80#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -