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

📄 mem.h

📁 COS 0.0.1.rar Cos操作系统源代码
💻 H
字号:
/* mem.h - memory manipulation functions   Author:        Paul Barker Part of:       COS Created:       14/04/04 Last Modified: 16/09/04 Copyright (C) 2004 Paul Barker        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 of the License, 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, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                     (See file "Copying")*//*02/09/04:	moved InitPG to init.h		merged with kalloc.h*/#ifndef _COS_MEM_H_#define _COS_MEM_H_// a couple of definitions to stop compiler warnings// about built-in functions#define memcpy MemCpy#define memset MemSet#define memcmp MemCmp// from mem.cptr_t memzero(ptr_t dest, count_t count);ptr_t memcpy(ptr_t dest, cptr_t src, count_t count);ptr_t memset(ptr_t dest, u8_t c, count_t count);int_t memcmp(cptr_t p1, cptr_t p2, count_t count);// kalloc and kfreeptr_t kalloc(size_t sz);void kfree(ptr_t p);void kalloc_init();// other definitions#define PAGE_SIZE          (0x1000)#endif // !_COS_MEM_H_

⌨️ 快捷键说明

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