Skip to content

Commit

Permalink
use MAXIMUM_BUMPERS instead of hardcoded 512
Browse files Browse the repository at this point in the history
  • Loading branch information
mempler committed Dec 16, 2023
1 parent 811f6a4 commit e2d52ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/runtime/include/RuntimeLib/Memory/BumpAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#error "This file should be included from RuntimeLib.h"
#endif

#define MAXIMUM_BUMPERS 512

typedef struct {
UINTN heap_start;
UINTN heap_end;
Expand All @@ -16,7 +18,7 @@ typedef struct {
PA_FREE_PAGES FreePages;

// Bump allocator specific
BUMPER bumpers[512];
BUMPER bumpers[MAXIMUM_BUMPERS];
} BUMP_ALLOCATOR;

/**
Expand Down

0 comments on commit e2d52ee

Please sign in to comment.