#include <freeldr.h>
#include <debug.h>
Go to the source code of this file.
◆ KB
◆ MB
◆ DBG_DEFAULT_CHANNEL()
DBG_DEFAULT_CHANNEL |
( |
MEMORY |
| ) |
|
◆ Pc98MemGetMemoryMap()
Definition at line 48 of file pc98mem.c.
49{
50 USHORT ConventionalMemory, ExtendedMemory;
51 ULONG ExtendedMemory16;
52
53 TRACE(
"Pc98MemGetMemoryMap()\n");
54
57
61
63 ConventionalMemory = 640;
64
65 TRACE(
"Total conventional memory %d kB available.\n", ConventionalMemory);
66 TRACE(
"Total extended memory %d kB available.\n", ExtendedMemory);
67 TRACE(
"Total extended high memory %d kB available.\n", ExtendedMemory16);
68 TRACE(
"Installed physical memory %d kB.\n", ConventionalMemory + ExtendedMemory + ExtendedMemory16);
69
70
74
75
77 {
86 }
87 else
88 {
101 }
102
105}
#define MEM_EXPMMSZ16M_HIGH
#define MEM_EXPMMSZ16M_LOW
#define CONVENTIONAL_MEMORY_SIZE
ULONG PcMemFinalizeMemoryMap(PFREELDR_MEMORY_DESCRIPTOR MemoryMap)
static FREELDR_MEMORY_DESCRIPTOR Pc98MemoryMap[MAX_BIOS_DESCRIPTORS+1]
VOID SetMemory(PFREELDR_MEMORY_DESCRIPTOR MemoryMap, ULONG_PTR BaseAddress, SIZE_T Size, TYPE_OF_MEMORY MemoryType)
#define MAX_BIOS_DESCRIPTORS
BIOS_MEMORY_MAP PcBiosMemoryMap[MAX_BIOS_DESCRIPTORS]
@ LoaderFirmwarePermanent
#define RtlZeroMemory(Destination, Length)
Referenced by MachInit().
◆ PcMemFinalizeMemoryMap()
Definition at line 547 of file pcmem.c.
549{
551
552
556
557
560
561
563 {
566 {
567
571 break;
572 }
573 }
574
575 TRACE(
"DiskReadBuffer=0x%p, DiskReadBufferSize=0x%lx\n",
577
579
580
585 "Disk read buffer");
586
587 TRACE(
"Dumping resulting memory map:\n");
589 {
590 TRACE(
"BasePage=0x%lx, PageCount=0x%lx, Type=%s\n",
593 MmGetSystemMemoryMapTypeString(
MemoryMap[
i].MemoryType));
594 }
596}
#define ALIGN_UP_BY(size, align)
BIOS_MEMORY_MAP MemoryMap[32]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
SIZE_T DiskReadBufferSize
VOID ReserveMemory(PFREELDR_MEMORY_DESCRIPTOR MemoryMap, ULONG_PTR BaseAddress, SIZE_T Size, TYPE_OF_MEMORY MemoryType, PCHAR Usage)
@ LoaderFirmwareTemporary
#define MAX_DISKREADBUFFER_SIZE
Referenced by Pc98MemGetMemoryMap().
◆ ReserveMemory()
Definition at line 484 of file pcmem.c.
490{
493
496
498 {
499
500 if ((
MemoryMap[
i].BasePage < BasePage + PageCount) &&
502 {
503
505 {
508 __FILE__,
509 __LINE__,
510 "Failed to reserve memory in the range 0x%Ix - 0x%Ix for %s",
514 }
515 }
516 }
517
518
521 BasePage,
522 PageCount,
523 MemoryType);
524}
VOID FrLdrBugCheckWithMessage(ULONG BugCode, PCHAR File, ULONG Line, PSTR Format,...)
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
ULONG AddMemoryDescriptor(IN OUT PFREELDR_MEMORY_DESCRIPTOR List, IN ULONG MaxCount, IN PFN_NUMBER BasePage, IN PFN_NUMBER PageCount, IN TYPE_OF_MEMORY MemoryType)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
#define ADDRESS_AND_SIZE_TO_SPAN_PAGES(_Va, _Size)
◆ SetMemory()
◆ HiResoMachine
◆ Pc98MemoryMap