[OpenBIOS] [PATCH v2 1/4] switch-arch: factorize code to compute architecture properties.