[LinuxBIOS] Generic RAM detection routine