mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
The Geode has MSRs. LOTS of MSR. I get confused trying to find them.
This program was originally written for OLPC and GX, and dumps all LX registers used in coreboot. I have preserved the indent structure since that gives some idea of the scope of variables. Of particular interest are the GLD variables, since they are always listed as offsets in the manuals, and computing the actual number (for use in rdmsr etc.) can be really tricky. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://coreboot.org/repository/coreboot-v3@681 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
e31836b6af
commit
573d88e61d
2 changed files with 3353 additions and 0 deletions
49
util/lxregs/Makefile
Normal file
49
util/lxregs/Makefile
Normal file
|
@ -0,0 +1,49 @@
|
|||
#
|
||||
# Makefile for lxregs utility
|
||||
#
|
||||
|
||||
PROGRAM = lxregs
|
||||
|
||||
CC = gcc
|
||||
STRIP = strip
|
||||
INSTALL = /usr/bin/install
|
||||
PREFIX = /usr/local
|
||||
#CFLAGS = -O2 -g -Wall -Werror
|
||||
CFLAGS = -Os -Wall -Werror -DDISABLE_DOC
|
||||
OS_ARCH = $(shell uname)
|
||||
ifeq ($(OS_ARCH), SunOS)
|
||||
LDFLAGS = -lpci -lz
|
||||
else
|
||||
LDFLAGS = -lpci -lz
|
||||
STRIP_ARGS = -s
|
||||
endif
|
||||
|
||||
OBJS = lxregs.o
|
||||
|
||||
all: dep $(PROGRAM)
|
||||
|
||||
$(PROGRAM): $(OBJS)
|
||||
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
||||
$(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
||||
|
||||
lxregs.o: lxregs.c
|
||||
$(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f *.o *~
|
||||
|
||||
distclean: clean
|
||||
rm -f $(PROGRAM) .dependencies
|
||||
|
||||
dep:
|
||||
@$(CC) -MM *.c > .dependencies
|
||||
|
||||
install: $(PROGRAM)
|
||||
$(INSTALL) flashrom $(PREFIX)/sbin
|
||||
mkdir -p $(PREFIX)/share/man/man8
|
||||
$(INSTALL) $(PROGRAM).8 $(PREFIX)/share/man/man8
|
||||
|
||||
.PHONY: all clean distclean dep pciutils
|
||||
|
||||
-include .dependencies
|
||||
|
3304
util/lxregs/lxregs.c
Normal file
3304
util/lxregs/lxregs.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue