Add memtest support.
[syslinux-debian/hramrach.git] / com32 / lua / test / cpu.lua
blobe9045025dd083a2a9eef1962d3f7518b9be3ef6d
1 cpuflags = cpu.flags()
3 print("Vendor = " .. cpuflags["vendor"])
4 print("Model = " .. cpuflags["model"])
5 print("Cores = " .. cpuflags["cores"])
6 print("L1 Instruction Cache = " .. cpuflags["l1_instruction_cache"])
7 print("L1 Data Cache = " .. cpuflags["l1_data_cache"])
8 print("L2 Cache = " .. cpuflags["l2_cache"])
9 print("Family ID = " .. cpuflags["family_id"])
10 print("Model ID = " .. cpuflags["model_id"])
11 print("Stepping = " .. cpuflags["stepping"])
13 if ( string.match(cpuflags["vendor"], "Intel") ) then
14 print("Intel Processor Found")
15 -- syslinux.run_command("memdisk initrd=/dos/BIOS/FSC-P7935-108.img raw")
16 else
17 print("Does not match")
18 end