History log of /freebsd-current/usr.sbin/mptable/mptable.c
Revision Date Author Comments
# 11500481 15-Jan-2024 Pete Zaitcev <zaitcev@redhat.com>

mptable: improve error reporting for invalid commands

mptable ignores arguments with matching first letters, report errors
when it gets garbate.

PR: 38727
Reviewed by: imp


# eba230af 25-Sep-2023 John Baldwin <jhb@FreeBSD.org>

Purge more stray embedded $FreeBSD$ strings

These do not use __FBSDID but instead use bare char arrays.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D41957


# 98f7dec5 20-Jun-2023 John Baldwin <jhb@FreeBSD.org>

mptable: Remove set but unused variable.

Reported by: GCC


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# d9a4f21f 22-Oct-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Stop suggesting -grope argument when -grope argument was actually given


# 2efbc4a6 10-Mar-2014 John Baldwin <jhb@FreeBSD.org>

Pass the size of the top-level table to map when mapping the table instead
of the size of the pointer.

Reported by: Coverity
Coverity CID: 1147171


# a61a3b33 11-Dec-2013 John Baldwin <jhb@FreeBSD.org>

- Use <x86/mptable.h> instead of duplicating its definitions.
- Switch to mmaping the table from RAM instead of reading it out of
/dev/mem via read(2).


# d72323d1 20-Dec-2012 Neel Natu <neel@FreeBSD.org>

Divine the array size by using 'nitems(array)' instead of using magic numbers.

Suggested by: Garrett Cooper


# 5b87feb6 20-Dec-2012 Neel Natu <neel@FreeBSD.org>

The MPtable specification allows for an 8-bit "BUS ID" and "I/O APIC ID".

Since the 'busses[]' and 'apics[]' arrays are indexed by these 8-bit IDs
make sure that they have enough space to accomodate up to 256 entries.

Submitted by: Ravi Shamanna
Obtained from: NetApp


# 24bc5224 04-Jan-2012 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Add an missing argument to open(2). If O_CREAT flag is specified,
file permission has to be specified as well.


# 60bd06da 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Mark all global variables static for mptable(1).

While there, remove basetableEntryTypes, which became unused in r71209.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 73401fba 19-Feb-2010 John Baldwin <jhb@FreeBSD.org>

Fix a typo.

Submitted by: Jakub Lach jakub_lach of mailplus pl


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 0446a99e 05-Feb-2005 David E. O'Brien <obrien@FreeBSD.org>

Remove the useless "version" number output.
We don't give a version number each userland binary.


# 8c489d72 29-Sep-2003 Peter Wemm <peter@FreeBSD.org>

Make this build and work on amd64 (sledge at least).


# 498c24ee 07-Jun-2003 Warner Losh <imp@FreeBSD.org>

Don't need to redundantly redeclare optreset.


# 4a3e427f 18-Jan-2001 Peter Wemm <peter@FreeBSD.org>

Deal with table parsing bugs caused by out-of-order record entries.
Complain about out-of-order entries. This fixes the 'mp extended
table HOSED!" report on the DL360 we have here with the "fixed" compaq
bios rom to fix the table length off-by-one error.


# 1a37aa56 09-Dec-2000 David E. O'Brien <obrien@FreeBSD.org>

Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.


# 531454fd 22-Sep-2000 Mike Smith <msmith@FreeBSD.org>

Stop printing out the Nfoo options help, since these tunables are about to
go away.


# 386fd026 05-Aug-2000 Tor Egge <tegge@FreeBSD.org>

Remove 3 off by 128 errors.


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# b790f1b6 23-May-1999 Warner Losh <imp@FreeBSD.org>

getopt(3) returns -1 not EOF.


# 7ffc1f40 23-Feb-1998 Bruce Evans <bde@FreeBSD.org>

Don't #include implementation header <machine/types.h> directly.
#include <sys/types.h> before the headers that depend on it.


# ec175ced 25-Sep-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3). Add missing parameter for printf() (reviewed by steve).


# fb42160f 05-Sep-1997 Steve Passe <fsmp@FreeBSD.org>

Changed the Ints labels for the IO APIC from "INT#" to "PIN#" to better
reflect its logical usage. Ie., there is NOT a 1-to-1 correspondence
between IRQ numbers and APIC pin numbers as there is with the 8259 ICU.


# 737e5e8d 25-Aug-1997 Steve Passe <fsmp@FreeBSD.org>

Removed suggested "options AUTO_START", no longer used.

Noticed by: Vincent Poy <vince@mail.MCESTATE.COM>


# 0363191b 22-Jul-1997 Steve Passe <fsmp@FreeBSD.org>

Removed the SMP_TIMER_NC suggestion.
This is (almost) defunct, start to phase it out...


# 233f81dc 23-Jun-1997 Steve Passe <fsmp@FreeBSD.org>

Removed SMP_PRIVPAGES from options list.
This functionality is now automatic.


# 22a876c6 22-May-1997 Steve Passe <fsmp@FreeBSD.org>

Made 'options NINTR' greater of 24 and calculated value.
This coincides with changing kernel default to 64.


# fa2887ae 10-May-1997 Steve Passe <fsmp@FreeBSD.org>

Document APIC_IO as mandatory.
Document SMP_AUTOSTART as working.


# 9d35fde7 30-Apr-1997 Steve Passe <fsmp@FreeBSD.org>

fixed minor typo, bumped to version 2.0.9


# 2b33a0f9 28-Apr-1997 Steve Passe <fsmp@FreeBSD.org>

add a userland program for SMP support
mptable examines and displays the MP table of an SMP motherboard.