changeset 38:e58a5bb12de4

experimental support for GPF memory supervision
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Oct 2020 07:35:14 +0000
parents 820ce39cf6df
children b8fe3774027f
files components/aci components/aci_dti_mng components/aciext components/alr components/atiext components/bmi components/cc components/ccd components/ccddata components/cci components/cci_ir components/cl components/comlib components/config_gprs_fl components/config_gprs_ir components/config_gsm_fl components/config_gsm_ir components/cst components/dl components/dti components/fad components/frame_fl components/frame_ir components/gdi components/gmm components/grlc components/grlc_ir components/grr components/icn components/l1_pei components/l2r components/llc components/mfw components/misc_fl components/misc_ir components/mm components/osx components/ppp components/ppp_ir components/ra components/rlp components/rr components/sim_b_lib components/sm components/sms components/sndcp components/ss components/t30 components/tif_fl components/tif_ir components/uart_b_lib components/upm configure.sh
diffstat 53 files changed, 300 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/components/aci	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/aci	Sat Oct 17 07:35:14 2020 +0000
@@ -86,6 +86,11 @@
 	CPPFLAGS="$CPPFLAGS -DALLOW_CSIM_GSM"
 fi
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
@@ -480,6 +485,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # New includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/aci_dti_mng	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/aci_dti_mng	Sat Oct 17 07:35:14 2020 +0000
@@ -54,6 +54,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/aciext	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/aciext	Sat Oct 17 07:35:14 2020 +0000
@@ -67,6 +67,11 @@
 CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECP"
 CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECS"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/alr	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/alr	Sat Oct 17 07:35:14 2020 +0000
@@ -61,6 +61,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DNWARN"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/alr2
--- a/components/atiext	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/atiext	Sat Oct 17 07:35:14 2020 +0000
@@ -60,6 +60,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/bmi	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/bmi	Sat Oct 17 07:35:14 2020 +0000
@@ -79,6 +79,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cc	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/cc	Sat Oct 17 07:35:14 2020 +0000
@@ -35,6 +35,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/cc
--- a/components/ccd	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/ccd	Sat Oct 17 07:35:14 2020 +0000
@@ -8,6 +8,11 @@
 CPPFLAGS="$CPPFLAGS -DCCDDATA_STATIC_DATA"
 CPPFLAGS="$CPPFLAGS -D_TMS470 -DNEW_ENTITY -DERR_TRACE_CCD"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/ccd"
--- a/components/ccddata	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/ccddata	Sat Oct 17 07:35:14 2020 +0000
@@ -3,6 +3,11 @@
 CFLAGS="-me -mt -o -pw2 -x -mw"
 CPPFLAGS="-D_TMS470 -DNEW_FRAME -DNEW_ENTITY -DCCDDATA_STATIC_DATA"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/ccd"
--- a/components/cci	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/cci	Sat Oct 17 07:35:14 2020 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cci_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/cci_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cl	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/cl	Sat Oct 17 07:35:14 2020 +0000
@@ -49,6 +49,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/cl
--- a/components/comlib	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/comlib	Sat Oct 17 07:35:14 2020 +0000
@@ -20,6 +20,11 @@
 CPPFLAGS="$CPPFLAGS -DFF_ATI"
 CPPFLAGS="$CPPFLAGS -DCL_IMEI_CALYPSO_PLATFORM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gprs_fl	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/config_gprs_fl	Sat Oct 17 07:35:14 2020 +0000
@@ -63,6 +63,11 @@
 CPPFLAGS="$CPPFLAGS -DDATA_EXT_RAM"
 CPPFLAGS="$CPPFLAGS -DFF_UPM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gprs_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/config_gprs_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -63,6 +63,11 @@
 CPPFLAGS="$CPPFLAGS -DDATA_INT_RAM"
 CPPFLAGS="$CPPFLAGS -DFF_UPM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gsm_fl	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/config_gsm_fl	Sat Oct 17 07:35:14 2020 +0000
@@ -65,6 +65,11 @@
 
 CPPFLAGS="$CPPFLAGS -DDATA_EXT_RAM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/config_gsm_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/config_gsm_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -65,6 +65,11 @@
 
 CPPFLAGS="$CPPFLAGS -DDATA_INT_RAM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/cst	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/cst	Sat Oct 17 07:35:14 2020 +0000
@@ -15,6 +15,11 @@
 CPPFLAGS="$CPPFLAGS -DTOOL_CHOICE=0"
 CPPFLAGS="$CPPFLAGS -D_TMS470"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 if [ "$DISABLE_SLEEP" = 1 ]
 then
 	CPPFLAGS="$CPPFLAGS -DDISABLE_SLEEP"
--- a/components/dl	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/dl	Sat Oct 17 07:35:14 2020 +0000
@@ -44,6 +44,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/dl
--- a/components/dti	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/dti	Sat Oct 17 07:35:14 2020 +0000
@@ -45,6 +45,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-aci/dti
--- a/components/fad	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/fad	Sat Oct 17 07:35:14 2020 +0000
@@ -50,6 +50,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/fad
--- a/components/frame_fl	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/frame_fl	Sat Oct 17 07:35:14 2020 +0000
@@ -7,6 +7,15 @@
 CPPFLAGS="-DNU_DEBUG -D_FF_RV_EXIST_ -DRUN_FLASH"
 CPPFLAGS="$CPPFLAGS -D_TARGET_ -D_NUCLEUS_"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+if [ "$MEMSUPER" = 2 ]
+then
+	CPPFLAGS="$CPPFLAGS -DOPTIMIZE_POOL"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame"
@@ -28,6 +37,10 @@
 cfile_symlink $SRCDIR/vsi_drv.c
 cfile_symlink $SRCDIR/vsi_trc.c
 cfile_symlink $SRCDIR/vsi_pro.c
+if [ "$MEMSUPER" != 0 ]
+then
+	cfile_symlink $SRCDIR/vsi_ppm.c
+fi
 cfile_symlink $SRCDIR/xalert.c
 cfile_symlink $SRCDIR/route.c
 cfile_symlink $SRCDIR/prf_func.c
@@ -56,13 +69,20 @@
 else
 
 	OBJDIR=../../blobs/osl/fl
+	OBJDIR_PS=../../blobs/osl/fl_ps
 
 	OBJS="$OBJS $OBJDIR/os_com.obj"
 	OBJS="$OBJS $OBJDIR/os_drv.obj"
 	OBJS="$OBJS $OBJDIR/os_evt.obj"
 	OBJS="$OBJS $OBJDIR/os_isr.obj"
-	OBJS="$OBJS $OBJDIR/os_mem.obj"
-	OBJS="$OBJS $OBJDIR/os_mis.obj"
+	if [ "$MEMSUPER" != 0 ]
+	then
+		OBJS="$OBJS $OBJDIR_PS/os_mem.obj"
+		OBJS="$OBJS $OBJDIR_PS/os_mis.obj"
+	else
+		OBJS="$OBJS $OBJDIR/os_mem.obj"
+		OBJS="$OBJS $OBJDIR/os_mis.obj"
+	fi
 	OBJS="$OBJS $OBJDIR/os_pro.obj"
 	OBJS="$OBJS $OBJDIR/os_sem.obj"
 	OBJS="$OBJS $OBJDIR/os_tim.obj"
--- a/components/frame_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/frame_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -7,6 +7,15 @@
 CPPFLAGS="-DNU_DEBUG -D_FF_RV_EXIST_ -DRUN_INT_RAM"
 CPPFLAGS="$CPPFLAGS -D_TARGET_ -D_NUCLEUS_"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+if [ "$MEMSUPER" = 2 ]
+then
+	CPPFLAGS="$CPPFLAGS -DOPTIMIZE_POOL"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame"
@@ -28,6 +37,10 @@
 cfile_symlink $SRCDIR/vsi_drv.c
 cfile_symlink $SRCDIR/vsi_trc.c
 cfile_symlink $SRCDIR/vsi_pro.c
+if [ "$MEMSUPER" != 0 ]
+then
+	cfile_symlink $SRCDIR/vsi_ppm.c
+fi
 cfile_symlink $SRCDIR/xalert.c
 cfile_symlink $SRCDIR/route.c
 cfile_symlink $SRCDIR/prf_func.c
@@ -54,12 +67,18 @@
 else
 
 	OBJDIR=../../blobs/osl/ir
+	OBJDIR_PS=../../blobs/osl/ir_ps
 
 	OBJS="$OBJS $OBJDIR/os_com.obj"
 	OBJS="$OBJS $OBJDIR/os_drv.obj"
 	OBJS="$OBJS $OBJDIR/os_evt.obj"
 	OBJS="$OBJS $OBJDIR/os_isr.obj"
-	OBJS="$OBJS $OBJDIR/os_mem.obj"
+	if [ "$MEMSUPER" != 0 ]
+	then
+		OBJS="$OBJS $OBJDIR_PS/os_mem.obj"
+	else
+		OBJS="$OBJS $OBJDIR/os_mem.obj"
+	fi
 	OBJS="$OBJS $OBJDIR/os_mis.obj"
 	OBJS="$OBJS $OBJDIR/os_pro.obj"
 	OBJS="$OBJS $OBJDIR/os_sem.obj"
--- a/components/gdi	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/gdi	Sat Oct 17 07:35:14 2020 +0000
@@ -70,6 +70,11 @@
 CPPFLAGS="$CPPFLAGS -DCUST=0"
 CPPFLAGS="$CPPFLAGS -DTESTMODE=1"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/gmm	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/gmm	Sat Oct 17 07:35:14 2020 +0000
@@ -49,6 +49,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/gmm
--- a/components/grlc	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/grlc	Sat Oct 17 07:35:14 2020 +0000
@@ -50,6 +50,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/grlc
--- a/components/grlc_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/grlc_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 CPPFLAGS="$CPPFLAGS -D_BOARD_=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/grlc
--- a/components/grr	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/grr	Sat Oct 17 07:35:14 2020 +0000
@@ -50,6 +50,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/grr
--- a/components/icn	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/icn	Sat Oct 17 07:35:14 2020 +0000
@@ -75,6 +75,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/l1_pei	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/l1_pei	Sat Oct 17 07:35:14 2020 +0000
@@ -35,6 +35,11 @@
 CPPFLAGS="$CPPFLAGS -DNCONF"
 CPPFLAGS="$CPPFLAGS -DNTRACE"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/l1
--- a/components/l2r	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/l2r	Sat Oct 17 07:35:14 2020 +0000
@@ -46,6 +46,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/l2r
--- a/components/llc	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/llc	Sat Oct 17 07:35:14 2020 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/mfw	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/mfw	Sat Oct 17 07:35:14 2020 +0000
@@ -79,6 +79,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/misc_fl	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/misc_fl	Sat Oct 17 07:35:14 2020 +0000
@@ -6,6 +6,11 @@
 
 CPPFLAGS="-D_TARGET_ -D_NUCLEUS_ -DRUN_FLASH"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/misc"
--- a/components/misc_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/misc_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -6,6 +6,11 @@
 
 CPPFLAGS="-D_TARGET_ -D_NUCLEUS_ -DRUN_INT_RAM"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/misc"
--- a/components/mm	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/mm	Sat Oct 17 07:35:14 2020 +0000
@@ -58,6 +58,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/mm
--- a/components/osx	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/osx	Sat Oct 17 07:35:14 2020 +0000
@@ -6,6 +6,11 @@
 
 CPPFLAGS="-D_TARGET_ -D_NUCLEUS_"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame/cust_os"
--- a/components/ppp	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/ppp	Sat Oct 17 07:35:14 2020 +0000
@@ -47,6 +47,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/ppp
--- a/components/ppp_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/ppp_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -47,6 +47,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/ppp
--- a/components/ra	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/ra	Sat Oct 17 07:35:14 2020 +0000
@@ -45,6 +45,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/ra
--- a/components/rlp	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/rlp	Sat Oct 17 07:35:14 2020 +0000
@@ -55,6 +55,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/rlp
--- a/components/rr	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/rr	Sat Oct 17 07:35:14 2020 +0000
@@ -58,6 +58,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/rr
--- a/components/sim_b_lib	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/sim_b_lib	Sat Oct 17 07:35:14 2020 +0000
@@ -66,6 +66,11 @@
 	CPPFLAGS="$CPPFLAGS -DALLOW_CSIM_GSM"
 fi
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/sim
--- a/components/sm	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/sm	Sat Oct 17 07:35:14 2020 +0000
@@ -50,6 +50,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/sm
--- a/components/sms	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/sms	Sat Oct 17 07:35:14 2020 +0000
@@ -45,6 +45,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/sms
--- a/components/sndcp	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/sndcp	Sat Oct 17 07:35:14 2020 +0000
@@ -52,6 +52,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
--- a/components/ss	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/ss	Sat Oct 17 07:35:14 2020 +0000
@@ -44,6 +44,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gsm/ss
--- a/components/t30	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/t30	Sat Oct 17 07:35:14 2020 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-fad/t30
--- a/components/tif_fl	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/tif_fl	Sat Oct 17 07:35:14 2020 +0000
@@ -12,6 +12,11 @@
 	CPPFLAGS="$CPPFLAGS -D_FF_RV_EXIST_"
 fi
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc/nuc"
--- a/components/tif_ir	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/tif_ir	Sat Oct 17 07:35:14 2020 +0000
@@ -12,6 +12,11 @@
 	CPPFLAGS="$CPPFLAGS -D_FF_RV_EXIST_"
 fi
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc/nuc"
--- a/components/uart_b_lib	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/uart_b_lib	Sat Oct 17 07:35:14 2020 +0000
@@ -56,6 +56,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-aci/uart
--- a/components/upm	Sat Oct 17 07:00:11 2020 +0000
+++ b/components/upm	Sat Oct 17 07:35:14 2020 +0000
@@ -51,6 +51,11 @@
 CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
 CPPFLAGS="$CPPFLAGS -DBOARD=41"
 
+if [ "$MEMSUPER" != 0 ]
+then
+	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
+fi
+
 # Includes
 
 SRCDIR=$SRC/g23m-gprs/upm
--- a/configure.sh	Sat Oct 17 07:00:11 2020 +0000
+++ b/configure.sh	Sat Oct 17 07:35:14 2020 +0000
@@ -135,6 +135,7 @@
 # miscellaneous configurable feature settings
 
 ALLOW_CSIM_GSM=1
+MEMSUPER=0
 OSL=0
 OSX=0
 SERIAL_DYNAMIC_SWITCH=0
@@ -217,7 +218,7 @@
 export R2D_EMBEDDED_LCD UI_CONFIG
 export ALLOW_CSIM_GSM SERIAL_DYNAMIC_SWITCH TR_BAUD_CONFIG
 export TI_PROFILER TRACEMASK_IN_FFS
-export OSL
+export MEMSUPER OSL
 
 scripts/config-headers.sh
 
@@ -315,7 +316,7 @@
 build_lib misc_ir
 lib_link_magic '(BSS_LIBS (.bss) CONST_LIBS (.text, .const))'
 
-if [ "$OSX" = 1 ]
+if [ "$OSX" = 1 -o "$MEMSUPER" != 0 ]
 then
 	build_lib osx
 else