如何快速知道CPU是否支持64位内核?
解决方法:
查看下面的文件:
/proc/cpuinfo
检查在此文件里面的flags那一行,如果有 lm(long mode),则可以运行64位内核.
下面是一个/proc/cpuinfo文件的内容:
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Pentium(R) M processor 1.80GHz stepping : 6 cpu MHz : 599.563 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr mce cx8 mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe est tm2 bogomips : 1200.09