mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
31 lines
589 B
C
31 lines
589 B
C
/*
|
|
* Copyright (c) 2014, Claudio Lapilli and the newRPL Team
|
|
* All rights reserved.
|
|
* This file is released under the 3-clause BSD license.
|
|
* See the file LICENSE.txt that shipped with this distribution.
|
|
*/
|
|
|
|
// HARDWARE DEPENDENT LAYER
|
|
#include "hal.h"
|
|
|
|
|
|
#ifdef TARGET_PC_SIMULATOR
|
|
|
|
|
|
// NEWSIZE IS IN 32-BIT WORDS!
|
|
WORDPTR *halGrowMemory(BINT zone, WORDPTR *base, BINT newsize)
|
|
{
|
|
if(!base) return malloc(MAX_RAM);
|
|
else {
|
|
if((newsize<<2)>MAX_RAM) return 0;
|
|
return base;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
// FOR OTHER TARGETS, THIS FUNCTION WILL BE SUPPLIED BY THE FIRMWARE
|