alloc-r0drv-freebsd.c revision 1f1986470af9f0bb750dd859b142dc2e952deb20
4011N/A * innotek Portable Runtime - Memory Allocation, Ring-0 Driver, FreeBSD. 4011N/A * Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net> 4011N/A * Permission is hereby granted, free of charge, to any person 4011N/A * obtaining a copy of this software and associated documentation 4011N/A * files (the "Software"), to deal in the Software without 4011N/A * restriction, including without limitation the rights to use, 4011N/A * copy, modify, merge, publish, distribute, sublicense, and/or sell 4011N/A * copies of the Software, and to permit persons to whom the 4011N/A * Software is furnished to do so, subject to the following 4011N/A * The above copyright notice and this permission notice shall be 4011N/A * included in all copies or substantial portions of the Software. 4011N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 4011N/A * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 4011N/A * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 4011N/A * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 5031N/A * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 6106N/A * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 4011N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4011N/A * OTHER DEALINGS IN THE SOFTWARE. 4011N/A/******************************************************************************* 4011N/A*******************************************************************************/ 4011N/A/******************************************************************************* 4011N/A*******************************************************************************/ 6461N/A/* These two statements will define two globals and add initializers 4011N/A Assert(
cb !=
sizeof(
void *));
/* 99% of pointer sized allocations are wrong. */ 6747N/A /** @todo Just like OS/2, FreeBSD doesn't need this header. */ 4802N/A * This API works in pages, so no need to do any size aligning. 4802N/A 0,
/* lowest physical address*/