ReactOS 0.4.16-dev-340-g0540c21
|
#include <freeldr.h>
#include <ndk/asm.h>
#include <internal/i386/intrin_i.h>
#include "../../winldr.h"
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | GDTIDT |
Macros | |
#define | KIP0PCRADDRESS 0xffdff000 |
#define | SELFMAP_ENTRY 0x300 |
#define | DPL_SYSTEM 0 |
#define | DPL_USER 3 |
#define | TYPE_TSS16A 0x01 |
#define | TYPE_LDT 0x02 |
#define | TYPE_TSS16B 0x03 |
#define | TYPE_CALL16 0x04 |
#define | TYPE_TASK 0x05 |
#define | TYPE_INT16 0x06 |
#define | TYPE_TRAP16 0x07 |
#define | TYPE_TSS32A 0x09 |
#define | TYPE_TSS32B 0x0B |
#define | TYPE_CALL32 0x0C |
#define | TYPE_INT32 0x0E |
#define | TYPE_TRAP32 0x0F |
#define | DESCRIPTOR_ACCESSED 0x1 |
#define | DESCRIPTOR_READ_WRITE 0x2 |
#define | DESCRIPTOR_EXECUTE_READ 0x2 |
#define | DESCRIPTOR_EXPAND_DOWN 0x4 |
#define | DESCRIPTOR_CONFORMING 0x4 |
#define | DESCRIPTOR_CODE 0x8 |
#define | TYPE_CODE (0x10 | DESCRIPTOR_CODE | DESCRIPTOR_EXECUTE_READ) |
#define | TYPE_DATA (0x10 | DESCRIPTOR_READ_WRITE) |
#define | ExtendedBIOSDataArea ((PULONG)0x740) |
#define | ExtendedBIOSDataSize ((PULONG)0x744) |
#define | RomFontPointers ((PULONG)0x700) |
Functions | |
DBG_DEFAULT_CHANNEL (WINDOWS) | |
static BOOLEAN | MempAllocatePageTables (VOID) |
static VOID | MempAllocatePTE (ULONG Entry, PHARDWARE_PTE *PhysicalPT, PHARDWARE_PTE *KernelPT) |
BOOLEAN | MempSetupPaging (IN PFN_NUMBER StartPage, IN PFN_COUNT NumberOfPages, IN BOOLEAN KernelMapping) |
VOID | MempUnmapPage (PFN_NUMBER Page) |
static VOID | WinLdrpMapApic (VOID) |
static BOOLEAN | WinLdrMapSpecialPages (void) |
static void | WinLdrSetupSpecialDataPointers (VOID) |
void | WinLdrSetupMachineDependent (PLOADER_PARAMETER_BLOCK LoaderBlock) |
VOID | WinLdrSetProcessorContext (_In_ USHORT OperatingSystemVersion) |
#define TYPE_CODE (0x10 | DESCRIPTOR_CODE | DESCRIPTOR_EXECUTE_READ) |
#define TYPE_DATA (0x10 | DESCRIPTOR_READ_WRITE) |
DBG_DEFAULT_CHANNEL | ( | WINDOWS | ) |
Definition at line 111 of file winldr.c.
|
static |
Definition at line 181 of file winldr.c.
Referenced by MempSetupPaging().
BOOLEAN MempSetupPaging | ( | IN PFN_NUMBER | StartPage, |
IN PFN_COUNT | NumberOfPages, | ||
IN BOOLEAN | KernelMapping | ||
) |
Definition at line 208 of file winldr.c.
VOID MempUnmapPage | ( | PFN_NUMBER | Page | ) |
Definition at line 264 of file winldr.c.
Definition at line 320 of file winldr.c.
Referenced by WinLdrSetupMachineDependent().
Definition at line 288 of file winldr.c.
Definition at line 432 of file winldr.c.
void WinLdrSetupMachineDependent | ( | PLOADER_PARAMETER_BLOCK | LoaderBlock | ) |
Definition at line 371 of file winldr.c.
Definition at line 351 of file winldr.c.
Referenced by WinLdrSetupMachineDependent().
PHARDWARE_PTE HalPageTable |
Definition at line 96 of file winldr.c.
Referenced by MempAllocatePageTables(), WinLdrMapSpecialPages(), and WinLdrpMapApic().
ULONG KernelPageTables |
Definition at line 101 of file winldr.c.
Referenced by MempAllocatePageTables(), and MempAllocatePTE().
PUCHAR KernelPageTablesBuffer |
Definition at line 99 of file winldr.c.
Referenced by MempAllocatePageTables(), and MempAllocatePTE().
ULONG PcrBasePage |
Definition at line 103 of file winldr.c.
Referenced by WinLdrMapSpecialPages(), and WinLdrSetupMachineDependent().
PHARDWARE_PTE PDE |
Definition at line 95 of file winldr.c.
Referenced by MempAllocatePageTables(), MempAllocatePTE(), MempSetupPaging(), MempUnmapPage(), and WinLdrSetProcessorContext().
ULONG PhysicalPageTables |
Definition at line 100 of file winldr.c.
Referenced by MempAllocatePageTables(), and MempAllocatePTE().
PUCHAR PhysicalPageTablesBuffer |
Definition at line 98 of file winldr.c.
Referenced by MempAllocatePageTables(), and MempAllocatePTE().