add the handling of APP_SHARED_MEM. privileged threads can access all the mem explictly defined in user mode, i.e., APP_MEM & APP_SHARED_MEM Signed-off-by: Wayne Ren <wei.ren@synopsys.com>