--- src/usr.sbin/config/config.y 2005/01/12 00:26:03 1.11 +++ src/usr.sbin/config/config.y 2006/10/23 18:01:13 1.12 @@ -13,6 +13,7 @@ %token CONFLICTS %token CONTROLLER %token CPU +%token CPU_ARCH %token DEVICE %token DISABLE %token DISK @@ -138,6 +139,14 @@ Config_spec: } machinename = $2; } | + CPU_ARCH Save_id + = { + if (cpuarchname != NULL) { + errx(1, "%d: only one cpu_arch directive is allowed", + yyline); + } + cpuarchname = $2; + } | CPU Save_id = { struct cputype *cp;