How can the cpu type be read in the linux kernel code (viz. x86, x86_64)? -


i want detect cpu type while kernel booting (viz. x86 or x86_64) can task differently based on cpu type. there simple way know cpu type?

how the cpuid instruction ?

there module interfacing it, source code is here.

if interested, have here or here or here other examples.

also have @ this question using cpuid know if system supports sse.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -