Included malloc into the hardware abstaction layer