bootinfo64.c (c1418270b28edf9b99044181e9f48dfc0a7dc160) | bootinfo64.c (2ee49fac82fca36ebc834ec055a2d6b64ae3768e) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 144 unchanged lines hidden (view full) --- 153 vendor[0] = regs[1]; 154 vendor[1] = regs[3]; 155 vendor[2] = regs[2]; 156 cpu_vendor = (char *)vendor; 157 158 /* Check for vendors that support AMD features. */ 159 if (strncmp(cpu_vendor, INTEL_VENDOR_ID, 12) != 0 && 160 strncmp(cpu_vendor, AMD_VENDOR_ID, 12) != 0 && | 1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 144 unchanged lines hidden (view full) --- 153 vendor[0] = regs[1]; 154 vendor[1] = regs[3]; 155 vendor[2] = regs[2]; 156 cpu_vendor = (char *)vendor; 157 158 /* Check for vendors that support AMD features. */ 159 if (strncmp(cpu_vendor, INTEL_VENDOR_ID, 12) != 0 && 160 strncmp(cpu_vendor, AMD_VENDOR_ID, 12) != 0 && |
161 strncmp(cpu_vendor, HYGON_VENDOR_ID, 12) != 0 && |
|
161 strncmp(cpu_vendor, CENTAUR_VENDOR_ID, 12) != 0) 162 return (0); 163 164 /* Has to support AMD features. */ 165 do_cpuid(0x80000000, regs); 166 if (!(regs[0] >= 0x80000001)) 167 return (0); 168 --- 102 unchanged lines hidden --- | 162 strncmp(cpu_vendor, CENTAUR_VENDOR_ID, 12) != 0) 163 return (0); 164 165 /* Has to support AMD features. */ 166 do_cpuid(0x80000000, regs); 167 if (!(regs[0] >= 0x80000001)) 168 return (0); 169 --- 102 unchanged lines hidden --- |