Subject: Re: VIA C7 CPU and crypto capabilities SOLVED partially
To: Heron Gallegos <gallegos@csxxi.net.mx>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 06/30/2007 18:21:17
On Sat, 30 Jun 2007 10:48:36 -0500 (CDT)
Heron Gallegos <gallegos@csxxi.net.mx> wrote:

> On Sat, 30 Jun 2007, Juan RP wrote:
> 
> > Can you please try this patch? it adds support for Enhanced
> > Speedstep in the VIA CPUs (from OpenBSD).
> >
> > http://www.netbsd.org/~xtraeme/est_via.diff
> 
> Thanks, Juan for your help
> 
> Now, the files are patched, but CPUVENDOR_VIA is undefined in
> identcpu.c
> 
> I supose CPUVENDOR_VIA is needed in arch/x86/include/cputypes.h
> 
> /*
>   * CPU vendors
>   */
> 
> #define CPUVENDOR_UNKNOWN       -1
> #define CPUVENDOR_INTEL         0
> #define CPUVENDOR_CYRIX         1
> #define CPUVENDOR_NEXGEN        2
> #define CPUVENDOR_AMD           3
> #define CPUVENDOR_IDT           4
> #define CPUVENDOR_TRANSMETA     5
> 
> I dont know if one of these is VIA, or we need a new entry...
> In this case, I dont know which new number could be the right one.

Ok, I thought we had this defined already...

Try adding:

#define CPUVENDOR_VIA 8

Let me know if that works and I'll commit.

-- 
Juan Romero Pardines 	- The NetBSD Project
http://plog.xtrarom.org 	- NetBSD/pkgsrc news in Spanish