coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
errata.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <stdint.h>
4 #include "i945.h"
5 #include "raminit.h"
6 
8 {
9  u32 reg32;
10 
11  /* Mobile Intel 945 Express only */
12  reg32 = mchbar_read32(FSBPMC3);
13  reg32 &= ~((1 << 13) | (1 << 29));
14  mchbar_write32(FSBPMC3, reg32);
15 
16  return 0;
17 }
int fixup_i945gm_errata(void)
Definition: errata.c:7
static __always_inline void mchbar_write32(const uintptr_t offset, const uint32_t value)
Definition: fixed_bars.h:36
static __always_inline uint32_t mchbar_read32(const uintptr_t offset)
Definition: fixed_bars.h:21
#define FSBPMC3
Definition: i945.h:96
uint32_t u32
Definition: stdint.h:51