[S390] Convert memory detection into C code.