Skip to content

Commit

Permalink
ahh
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Oct 18, 2024
1 parent e46dcdf commit 213cb05
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions hal/halx86/acpi/halacpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ LIST_ENTRY HalpAcpiTableMatchList;
ULONG HalpInvalidAcpiTable;

ULONG HalpPicVectorRedirect[] = {0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15};

extern ISA_IRQ_TO_GSI_OVERRIDE HalpIRQToGSIOverride[MAX_PIC_IRQs];
/* This determines the HAL type */
BOOLEAN HalDisableFirmwareMapper = TRUE;
PWCHAR HalHardwareIdString = L"acpipic_up";
Expand Down Expand Up @@ -999,7 +999,7 @@ HalpBuildAcpiResourceList(IN PIO_RESOURCE_REQUIREMENTS_LIST ResourceList)
ResourceList->List[0].Descriptors[0].ShareDisposition = CmResourceShareShared;

/* Get the interrupt number */
Interrupt = HalpPicVectorRedirect[HalpFixedAcpiDescTable.sci_int_vector];
Interrupt = HalpIRQToGSIOverride[HalpFixedAcpiDescTable.sci_int_vector].GlobalIRQ;
ResourceList->List[0].Descriptors[0].u.Interrupt.MinimumVector = Interrupt;
ResourceList->List[0].Descriptors[0].u.Interrupt.MaximumVector = Interrupt;

Expand Down
2 changes: 1 addition & 1 deletion hal/halx86/acpi/madt.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#undef ACPI_BIOS_ERROR
#include <smp.h>

#define NDEBUG
//#define NDEBUG
#include <debug.h>

/* GLOBALS ********************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion ntoskrnl/include/internal/amd64/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
#define MI_MIN_SECONDARY_COLORS 8
#define MI_SECONDARY_COLORS 64
#define MI_MAX_SECONDARY_COLORS 1024
#define MI_NUMBER_SYSTEM_PTES 22000
#define MI_NUMBER_SYSTEM_PTES 22000 * 10
#define MI_MAX_FREE_PAGE_LISTS 4
#define MI_HYPERSPACE_PTES (256 - 1)
#define MI_ZERO_PTES (32)
Expand Down
1 change: 0 additions & 1 deletion ntoskrnl/ke/amd64/ctxswitch.S
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ PUBLIC KiUserThreadStartupExit
.SwapBusySet:
cmp byte ptr [r8 + ThSwapBusy], 0
je .SwapBusyClear
int 3
pause
jmp .SwapBusySet
.SwapBusyClear:
Expand Down
7 changes: 1 addition & 6 deletions ntoskrnl/mm/ARM3/expool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2604,11 +2604,6 @@ ExFreePoolWithTag(IN PVOID P,
if (TagToFree && TagToFree != Tag)
{
DPRINT1("Freeing pool - invalid tag specified: %.4s != %.4s\n", (char*)&TagToFree, (char*)&Tag);
#if DBG
/* Do not bugcheck in case this is a big allocation for which we didn't manage to insert the tag */
if (Tag != ' GIB')
KeBugCheckEx(BAD_POOL_CALLER, 0x0A, (ULONG_PTR)P, Tag, TagToFree);
#endif
}

//
Expand Down Expand Up @@ -2691,7 +2686,7 @@ ExFreePoolWithTag(IN PVOID P,
{
DPRINT1("Freeing pool - invalid tag specified: %.4s != %.4s\n", (char*)&TagToFree, (char*)&Tag);
#if DBG
KeBugCheckEx(BAD_POOL_CALLER, 0x0A, (ULONG_PTR)P, Tag, TagToFree);
// KeBugCheckEx(BAD_POOL_CALLER, 0x0A, (ULONG_PTR)P, Tag, TagToFree);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion ntoskrnl/mm/ARM3/virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,7 @@ MiProtectVirtualMemory(IN PEPROCESS Process,
MI_WRITE_INVALID_PTE(PointerPte, PteContents);
#ifdef CONFIG_SMP
// FIXME: Should invalidate entry in every CPU TLB
ASSERT(KeNumberProcessors == 1);
// ASSERT(KeNumberProcessors == 1);
#endif
KeInvalidateTlbEntry(MiPteToAddress(PointerPte));

Expand Down

0 comments on commit 213cb05

Please sign in to comment.