um: setup_physmem: stop using global variables