Skip to content

Commit

Permalink
[app][uefi] Enable mspace feature on dlmalloc
Browse files Browse the repository at this point in the history
This allows us to use an identitiy mapped piece of memory as the heap
for UEFI app. UEFI app's allocation would go from this heap.
  • Loading branch information
zhangxp1998 committed Oct 24, 2024
1 parent ce8806d commit 27fe7b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions external/lib/heap/dlmalloc/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ LOCAL_DIR := $(GET_LOCAL_DIR)

MODULE := $(LOCAL_DIR)

MODULE_DEFINES=MSPACES=1

MODULE_SRCS += \
$(LOCAL_DIR)/dlmalloc.c

Expand Down
2 changes: 2 additions & 0 deletions lib/uefi/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ MODULE := $(LOCAL_DIR)

MODULE_INCLUDES += $(LOCAL_DIR)/include

MODULE_DEFINES=MSPACES=1

MODULE_SRCS += \
$(LOCAL_DIR)/uefi.cpp \
$(LOCAL_DIR)/text_protocol.cpp \
Expand Down

0 comments on commit 27fe7b4

Please sign in to comment.