-/* $OpenBSD: machdep.c,v 1.292 2024/04/03 02:01:21 guenther Exp $ */
+/* $OpenBSD: machdep.c,v 1.293 2024/04/29 00:29:48 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
u_int bootapiver = 0; /* /boot API version */
int physmem;
-u_int64_t dumpmem_low;
-u_int64_t dumpmem_high;
extern int boothowto;
-int cpu_class;
paddr_t dumpmem_paddr;
vaddr_t dumpmem_vaddr;
-/* $OpenBSD: machdep.c,v 1.669 2023/08/23 01:55:46 cheloha Exp $ */
+/* $OpenBSD: machdep.c,v 1.670 2024/04/29 00:29:48 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
long dumplo = 0; /* blocks */
int cpu_class;
-int i386_fpu_present;
-int i386_fpu_exception;
-int i386_fpu_fdivbug;
int i386_use_fxsave;
int i386_has_sse;
struct vm_map *phys_map = NULL;
#if !defined(SMALL_KERNEL)
-int p4_model;
int p3_early;
void (*update_cpuspeed)(void) = NULL;
void via_update_sensor(void *args);
intel686_common_cpu_setup(ci);
#if !defined(SMALL_KERNEL)
- p4_model = (ci->ci_signature >> 4) & 15;
update_cpuspeed = p4_update_cpuspeed;
#endif
}
-/* $OpenBSD: npx.c,v 1.74 2023/01/30 10:49:05 jsg Exp $ */
+/* $OpenBSD: npx.c,v 1.75 2024/04/29 00:29:48 jsg Exp $ */
/* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */
#if 0
static volatile u_int npx_traps_while_probing
__attribute__((section(".kudata")));
-extern int i386_fpu_present;
-extern int i386_fpu_exception;
-extern int i386_fpu_fdivbug;
-
#define fxsave(addr) __asm("fxsave %0" : "=m" (*addr))
#define fxrstor(addr) __asm("fxrstor %0" : : "m" (*addr))
#define ldmxcsr(addr) __asm("ldmxcsr %0" : : "m" (*addr))
*/
npx_type = NPX_EXCEPTION;
ia->ia_irq = IRQUNK; /* zap the interrupt */
- i386_fpu_exception = 1;
} else if (npx_intrs_while_probing != 0) {
/*
* Bad, we are stuck with IRQ13.
if (cpu_feature & CPUID_FPU) {
npx_type = NPX_CPUID;
- i386_fpu_exception = 1;
ia->ia_irq = IRQUNK; /* Don't want the interrupt vector */
ia->ia_iosize = 16;
ia->ia_msize = 0;
lcr0(rcr0() & ~(CR0_EM|CR0_TS));
fninit();
if (npx586bug1(4195835, 3145727) != 0) {
- i386_fpu_fdivbug = 1;
printf("%s: WARNING: Pentium FDIV bug detected!\n",
ci->ci_dev->dv_xname);
}
}
npxinit(&cpu_info_primary);
- i386_fpu_present = 1;
if (i386_use_fxsave)
npxdna_func = npxdna_xmm;
-/* $OpenBSD: pcibios.c,v 1.49 2022/02/21 10:24:28 mpi Exp $ */
+/* $OpenBSD: pcibios.c,v 1.50 2024/04/29 00:29:48 jsg Exp $ */
/* $NetBSD: pcibios.c,v 1.5 2000/08/01 05:23:59 uch Exp $ */
/*
#include <machine/biosvar.h>
int pcibios_flags;
-int pcibios_present;
struct pcibios_pir_header pcibios_pir_header;
struct pcibios_intr_routing *pcibios_pir_table;
*/
pci_mode = mech1 ? 1 : 2;
- pcibios_present = 1;
-
/*
* Find the PCI IRQ Routing table.
*/
-/* $OpenBSD: ac97.c,v 1.84 2018/04/11 04:48:31 ratchov Exp $ */
+/* $OpenBSD: ac97.c,v 1.85 2024/04/29 00:29:48 jsg Exp $ */
/*
* Copyright (c) 1999, 2000 Constantine Sapuntzakis
#include <dev/audio_if.h>
#include <dev/ic/ac97.h>
-
-/* default parameters; supported by all ac97 codecs */
-const struct audio_params ac97_audio_default = {
- 48000, /* sample_rate */
- AUDIO_ENCODING_SLINEAR_LE, /* encoding */
- 16, /* precision */
- 2, /* bps */
- 1, /* msb */
- 2 /* channels */
-};
-
const struct audio_mixer_enum ac97_on_off = {
2,
{ { { AudioNoff } , 0 },
-/* $OpenBSD: mpls_raw.c,v 1.19 2022/02/22 01:15:02 guenther Exp $ */
+/* $OpenBSD: mpls_raw.c,v 1.20 2024/04/29 00:29:48 jsg Exp $ */
/*
* Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project.
#include <netmpls/mpls.h>
int mpls_defttl = 255;
-int mpls_push_expnull_ip = 0;
-int mpls_push_expnull_ip6 = 0;
int mpls_mapttl_ip = 1;
int mpls_mapttl_ip6 = 0;