Skip to content

Commit

Permalink
Standard.Memory~free is now a named function.
Browse files Browse the repository at this point in the history
This makes it available in Phosphor if one has a header for it.
  • Loading branch information
BenediktMagnus committed Feb 18, 2024
1 parent b676957 commit d1db886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/platforms/amd64/linux/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void* allocate (UInt size)
* @param address The pointer to the memory to free.
* @param size The size of the memory block.
*/
void free (const void* address, UInt size) asm ("\"Standard.Memory~free\"");
void free (const void* address, UInt size)
{
UInt syscode = SYSCODE_MEMORY_UNMAP;
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/amd64/linux/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#include "../../common/types.h"

void* allocate (UInt size) asm ("\"Standard.Memory~allocate\"");
void free (const void* address, UInt size);
void free (const void* address, UInt size) asm ("\"Standard.Memory~free\"");

0 comments on commit d1db886

Please sign in to comment.