arch/stm32l4: check the validation of heap at each region
arch/stm32l4: check the validation of heap at each region

When bss or data section is too big and it exceeds first ram region,
g_idle_topstack could not be first RAM region. Then, that RAM region
should not be registered as heap.
This commit checks the location of g_idle_topstack and when it is in
range of ram region, it will be registered as first heap region.

Signed-off-by: sunghan-chang <c954e25285721d8faa8b1a5c1ae2ef5a35338d32@samsung.com>

junmin-kim/TizenRT,junmin-kim/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,sunghan-chang/TizenRT,an4967/TizenRT,chanijjani/TizenRT,Samsung/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,chanijjani/TizenRT,sunghan-chang/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,sunghan-chang/TizenRT,jeongchanKim/TizenRT,chanijjani/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,pillip8282/TizenRT,pillip8282/TizenRT,jeongchanKim/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,jeongarmy/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,jsdosa/TizenRT,chanijjani/TizenRT,jsdosa/TizenRT,davidfather/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,an4967/TizenRT,an4967/TizenRT,an4967/TizenRT,davidfather/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,jsdosa/TizenRT,junmin-kim/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,sunghan-chang/TizenRT,chanijjani/TizenRT,an4967/TizenRT,chanijjani/TizenRT,an4967/TizenRT,jeongarmy/TizenRT,jsdosa/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,Samsung/TizenRT,Samsung/TizenRT,davidfather/TizenRT,davidfather/TizenRT,Samsung/TizenRT,Samsung/TizenRT,sunghan-chang/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,junmin-kim/TizenRT,an4967/TizenRT