Hacked from windows.

Signed-off-by: unknown <wangpeng@MSH-LT2053.marvell.com>