Update sys_arch.c
Update sys_arch.c

Fix Message Queue implementation (which is based on Circular Q).
Problem with earlier implementation is that in a particular case when front points to  start of queue and rear points to end of queue, now if new data comes it gets stored at rear (now Queue is full) and rear gets updated as (rear+1%max) which is front. Now if fetch API is called it results in false empty scenario as front == rear evaluates to true while the Queue is full.
Samsung/TizenRT,an4967/TizenRT,JeongJunSik/TizenRT,chanijjani/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,shivgarg/TizenRT,Parkjihooni6186/TizenRT,an4967/TizenRT,EunBongSong/TizenRT,JeonginKim/TizenRT,EunBongSong/TizenRT,lokeshbv/TizenRT,pillip8282/TizenRT,chanijjani/TizenRT,Parkjihooni6186/TizenRT,btheosam/TizenRT,btheosam/TizenRT,an4967/TizenRT,jeongarmy/TizenRT,Parkjihooni6186/TizenRT,jeongchanKim/TizenRT,chanijjani/TizenRT,heejin-kim/TizenRT,kimusan/TizenRT,an4967/TizenRT,JeongJunSik/TizenRT,pillip8282/TizenRT,JeongJunSik/TizenRT,JeonginKim/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,yashwanth686007/TizenRTOS,jeongarmy/TizenRT,jsdosa/TizenRT,yashwanth686007/TizenRTOS,junmin-kim/TizenRT,yashwanth686007/TizenRTOS,sunghan-chang/TizenRT,pillip8282/TizenRT,jeongarmy/TizenRT,HONGCHAEHEE/TizenRT,kimusan/TizenRT,junmin-kim/TizenRT,JeongJunSik/TizenRT,davidfather/TizenRT,lokeshbv/TizenRT,sangwon03/TizenRT,kimusan/TizenRT,jsdosa/TizenRT,btheosam/TizenRT,sangwon03/TizenRT,sangwon03/TizenRT,Parkjihooni6186/TizenRT,kimusan/TizenRT,Samsung/TizenRT,HONGCHAEHEE/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,davidfather/TizenRT,btheosam/TizenRT,heejin-kim/TizenRT,junmin-kim/TizenRT,jsdosa/TizenRT,HONGCHAEHEE/TizenRT,jeongchanKim/TizenRT,btheosam/TizenRT,EunBongSong/TizenRT,heejin-kim/TizenRT,sunghan-chang/TizenRT,shivgarg/TizenRT,lokeshbv/TizenRT,heejin-kim/TizenRT,junmin-kim/TizenRT,kimusan/TizenRT,Samsung/TizenRT,an4967/TizenRT,pillip8282/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,sunghan-chang/TizenRT,HONGCHAEHEE/TizenRT,sangwon03/TizenRT,EunBongSong/TizenRT,shivgarg/TizenRT,JeongJunSik/TizenRT,jsdosa/TizenRT,sangwon03/TizenRT,jsdosa/TizenRT,davidfather/TizenRT,JeonginKim/TizenRT,yashwanth686007/TizenRTOS,jeongchanKim/TizenRT,davidfather/TizenRT,JeonginKim/TizenRT,sunghan-chang/TizenRT,an4967/TizenRT,shivgarg/TizenRT,pillip8282/TizenRT,JeongJunSik/TizenRT,pillip8282/TizenRT,btheosam/TizenRT,shivgarg/TizenRT,jsdosa/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,Samsung/TizenRT,Samsung/TizenRT,Parkjihooni6186/TizenRT,junmin-kim/TizenRT,lokeshbv/TizenRT,JeonginKim/TizenRT,lokeshbv/TizenRT,chanijjani/TizenRT,Samsung/TizenRT,Parkjihooni6186/TizenRT,JeonginKim/TizenRT,HONGCHAEHEE/TizenRT,shivgarg/TizenRT,pillip8282/TizenRT,kimusan/TizenRT,davidfather/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,HONGCHAEHEE/TizenRT,yashwanth686007/TizenRTOS,junmin-kim/TizenRT,sunghan-chang/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,jsdosa/TizenRT,EunBongSong/TizenRT,EunBongSong/TizenRT,yashwanth686007/TizenRTOS,Samsung/TizenRT,heejin-kim/TizenRT,heejin-kim/TizenRT,lokeshbv/TizenRT,sangwon03/TizenRT