Add 'globalmem.c'

A 'globalmem' module for char device.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>