Commit Graph

237236 Commits

Author SHA1 Message Date
uebayasi
bf97b90378 Mark pseudo attach unused arg with __unused. 2015-08-20 08:27:09 +00:00
uebayasi
100ae2f1dc Indent. 2015-08-20 08:25:33 +00:00
christos
396368bec1 minimal changes to get this to compile. 2015-08-20 07:50:08 +00:00
uebayasi
4e263bcaf9 Whitespace. 2015-08-20 07:13:07 +00:00
dholland
05db422695 +GMT (Robert Elz, PR 50157) 2015-08-20 07:10:02 +00:00
uebayasi
185745d477 Indent with 2 spaces. 2015-08-20 07:00:48 +00:00
uebayasi
3aa2707a88 Kill trailing blank lines. 2015-08-20 06:53:11 +00:00
uebayasi
025c56a84f Kill trailing whitespaces. 2015-08-20 06:48:25 +00:00
uebayasi
078e9ee66f Use ${KERNLDSCRIPT}. 2015-08-20 06:21:54 +00:00
uebayasi
524c1ab042 Clean up ${LINKSCRIPT} and ${KERNLDSCRIPT}. 2015-08-20 06:21:02 +00:00
uebayasi
68fe3f8564 Use variables where appropriate. 2015-08-20 06:20:19 +00:00
uebayasi
92ed610b7f Use ${KERNLDSCRIPT}. 2015-08-20 06:19:36 +00:00
dholland
ab3a85b805 adjust comments slightly 2015-08-20 05:40:24 +00:00
dholland
65ff76a38f Use lfs32_dinode_SIZEOF instead of ufs1_dinode_SIZEOF for lfs. These
are the same so it doesn't make any difference, but technically one
should use lfs parts with lfs.
2015-08-20 05:40:08 +00:00
dholland
c9cfc4bd98 Part two of dinodes; use the same union everywhere.
(previously the ufs-derived code had things set up slightly different)

Remove a bunch of associated mess.
2015-08-19 20:33:29 +00:00
mlelstv
20902f791f restart queue when a request completes 2015-08-19 20:15:20 +00:00
gson
2a8f000c61 When closing a tty, limit the amount of time spent waiting for the
output to drain to five seconds so that exiting processes with
buffered output for a serial port blocked by flow control or a pty
that is not being read do not hang indefinitely.  Should fix PRs
kern/12534 and kern/17171.  This is an updated version of the change
of tty.c 1.263.
2015-08-19 12:02:55 +00:00
wiz
97768490b0 New sentence, new line. Sort SEE ALSO. 2015-08-19 09:57:41 +00:00
hannken
215f039197 Redo Rev. 1.30: Change vfs_vnode_iterator_next() to skip reclaiming
vnodes (VI_XLOCK set) without waiting and change vflush() to wait for
these vnodes.
2015-08-19 08:40:02 +00:00
christos
df1774464d Put back a Trusted Computing Platform Alliance table pretty printer. 2015-08-19 07:37:17 +00:00
skrll
eb74afc4e0 More IPL_SCHED -> IPL_USB 2015-08-19 06:23:35 +00:00
skrll
f669a01921 Interrupt handlers aren't MP-safe yet so use IPL_USB which is IPL_VM
which takes the kernel lock.
2015-08-19 06:16:18 +00:00
uebayasi
42ef6285ce Write the rule of ldscript generation. 2015-08-19 05:47:38 +00:00
uebayasi
6ca37d6c33 If MD ldscript is generated, give it dependency on ${SYSTEM_OBJ}. 2015-08-19 05:46:11 +00:00
uebayasi
b9025dbfb8 Tweak previous. 2015-08-19 04:53:03 +00:00
uebayasi
6306aff332 Use ${KERNLDSCRIPT} so it is added to ${SYSTEM_DEP}. 2015-08-19 04:33:00 +00:00
uebayasi
6901cbad00 Define the rule to generate the dynamic `ldscript', depending on
${SYSTEM_OBJS} properly.  Don't forget cleaning the generated `ldscript'.
One less ${SYSTEM_LD_HEAD_EXTRA} use as a bonus.

No binary changes in ldscript/kernel files are observed.
2015-08-19 04:15:22 +00:00
pgoyette
b0e637a9da Insert comment regarding PR/48571 so it doesn't get lost.
config(1) ioconf is insufficient for pseudo-devices

config_{init,fini}_component
2015-08-19 03:39:45 +00:00
uebayasi
3dbb19470d + pseudo(dev) attach 2015-08-19 03:23:34 +00:00
mlelstv
8ab0ec710c only touch b_resid on error. 2015-08-18 21:26:16 +00:00
mlelstv
155f12a589 restore deleted lines that kept buffer fields resid,count and error consistent. 2015-08-18 21:24:19 +00:00
skrll
c5687a526a Move linux/err.h into common/include.
OK riastradh@
2015-08-18 21:10:56 +00:00
phx
f05eaecf11 Add some more MI SPI drivers to the list: mcp23s17gpio(4), mcp3kadc(4),
mcp48x1dac(4).
2015-08-18 19:40:21 +00:00
christos
7e168b655c comment out end comment printing. 2015-08-18 17:49:49 +00:00
christos
8c2dc81004 comment out tcpa printout since it has been split between server and client
struct.
2015-08-18 17:46:09 +00:00
riz
f2164b60c8 Remove second 'const' declaration, to hopefully fix clang builds. 2015-08-18 16:54:27 +00:00
phx
d643dd143b MI driver for the Microchip 3x0x series of SAR analog to digital converters. 2015-08-18 15:54:20 +00:00
chs
28112cf720 post-christos cleanup: fix the build 2015-08-18 15:38:02 +00:00
uebayasi
fa089ff763 Convert pseudo attach functions to take no arguments, as some functions
(pppattach(), putterattach(), etc.) already do.  This means that pseudo
attach function will be able to become a constructor.
2015-08-18 13:46:20 +00:00
skrll
b31eed1266 Whitespace. 2015-08-18 12:01:16 +00:00
christos
0893127dee new acpica 2015-08-18 10:48:01 +00:00
christos
b5644fd55b dup the argument of the wakeup vector. XXX: is that correct? 2015-08-18 10:42:41 +00:00
christos
f8d654da70 add extra argument to method. 2015-08-18 10:41:28 +00:00
christos
9b9ee1947e merge conflicts 2015-08-18 10:39:46 +00:00
christos
9287d529e5 handle acpica 20150717 2015-08-18 10:38:31 +00:00
uebayasi
774506b607 ${KERN_LDSCRIPT} -> ${KERNLDSCRIPT} 2015-08-18 10:18:20 +00:00
uebayasi
ce546f0df7 Adjust paths to ${KERNLDSCRIPT} files so that dependency is resolved. 2015-08-18 10:00:11 +00:00
christos
c72da02758 ----------------------------------------
17 July 2015. Summary of changes for version 20150717:

1) ACPICA kernel-resident subsystem:

Improved the partitioning between the Debugger and Disassembler
components. This allows the Debugger to be used standalone within kernel
code without the Disassembler (which is used for single stepping also).
This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.

Debugger: Implemented a new command to trace the execution of control
methods (Trace). This is especially useful for the in-kernel version of
the debugger when file I/O may not be available for method trace output.
See the ACPICA reference for more information. Lv Zheng.

Moved all C library prototypes (used for the local versions of these
functions when requested) to a new header, acclib.h
Cleaned up the use of non-ANSI C library functions. These functions are
implemented locally in ACPICA. Moved all such functions to a common
source file, utnonansi.c

Debugger: Fixed a problem with the "!!" command (get last command
executed) where the debugger could enter an infinite loop and eventually
crash.

Removed the use of local macros that were used for some of the standard C
library functions to automatically cast input parameters. This mostly
affected the is* functions where the input parameter is defined to be an
int. This required a few modifications to the main ACPICA source code to
provide casting for these functions and eliminate possible compiler
warnings for these parameters.

Across the source code, added additional status/error checking to resolve
issues discovered by static source code analysis tools such as Coverity.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

  Current Release:
    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
  Previous Release:
    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total


2) iASL Compiler/Disassembler and Tools:

iASL: Fixed a regression where the device map file feature no longer
worked properly when used in conjunction with the disassembler. It only
worked properly with the compiler itself.

iASL: Implemented a new warning for method LocalX variables that are set
but never used (similar to a C compiler such as gcc). This also applies
to ArgX variables that are not defined by the parent method, and are
instead (legally) used as local variables.

iASL/Preprocessor: Finished the pass-through of line numbers from the
preprocessor to the compiler. This ensures that compiler errors/warnings
have the correct original line numbers and filenames, regardless of any
#include files.

iASL/Preprocessor: Fixed a couple of issues with comment handling and the
pass-through of comments to the preprocessor output file (which becomes
the compiler input file). Also fixed a problem with // comments that
appear after a math expression.

iASL: Added support for the TCPA server table to the table compiler and
template generator. (The client table was already previously supported)

iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
identify the iASL compiler.

Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
multiple times. The new names are ACPI_SIGN_NEGATIVE and
ACPI_SIGN_POSITIVE.

AcpiHelp: Update to expand help messages for the iASL preprocessor
directives.


----------------------------------------
19 June 2015. Summary of changes for version 20150619:

Two regressions in version 20150616 have been addressed:

Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
etc.) This update changes ACPICA to only use the standard headers for
functions, or the prototypes for the local versions of the C library
functions. Across the source code, this required some additional casts
for some Clib invocations for portability. Moved all local prototypes to
a new file, acclib.h

Fixes several problems with recent changes to the handling of the FACS
table that could cause some systems not to boot.


----------------------------------------
16 June 2015. Summary of changes for version 20150616:


1) ACPICA kernel-resident subsystem:

Across the entire ACPICA source code base, the various macros for the C
library functions (such as ACPI_STRLEN, etc.) have been removed and
replaced by the standard C library names (strlen, etc.) The original
purpose for these macros is no longer applicable. This simplification
reduces the number of macros used in the ACPICA source code
significantly, improving readability and maintainability.

Implemented support for a new ACPI table, the OSDT. This table, the
"override" SDT, can be loaded directly by the host OS at boot time. It
enables the replacement of existing namespace objects that were installed
via the DSDT and/or SSDTs. The primary purpose for this is to replace
buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
Moore.

Added support for systems with (improperly) two FACS tables -- a "32-bit"
table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
X field). This change will support both automatically. There continues to
be systems found with this issue. This support requires a change to the
AcpiSetFirmwareWakingVector interface. Also, a public global variable has
been added to allow the host to select which FACS is desired
(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
details Lv Zheng.

Added a new feature to allow for systems that do not contain an FACS.
Although this is already supported on hardware-reduced platforms, the
feature has been extended for all platforms. The reasoning is that we do
not want to abort the entire ACPICA initialization just because the
system is seriously buggy and has no FACS.

Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
not correctly transcribed from the ACPI specification in ACPICA version
20150515.

Implemented support for the _CLS object in the AcpiGetObjectInfo external
interface.

Updated the definitions of the TCPA and TPM2 ACPI tables to the more
recent TCG ACPI Specification, December 14, 2014. Table disassembler and
compiler also updated. Note: The TCPA "server" table is not supported by
the disassembler/table-compiler at this time.

ACPI 6.0: Added definitions for the new GIC version field in the MADT.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

  Current Release:
    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
  Previous Release:
    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total


2) iASL Compiler/Disassembler and Tools:

Disassembler: Fixed a problem with the new symbolic operator disassembler
where incorrect ASL code could be emitted in some cases for the "non-
commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
ShiftRight. The actual problem cases seem to be rather unusual in common
ASL code, however. David Box.

Modified the linux version of acpidump to obtain ACPI tables from not
just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
Zheng.

iASL: Fixed a problem where the user preprocessor output file (.i)
contained extra data that was not expected. The compiler was using this
file as a temporary file and passed through #line directives in order to
keep compiler error messages in sync with the input file and line number
across multiple include files. The (.i) is no longer a temporary file as
the compiler uses a new, different file for the original purpose.

iASL: Fixed a problem where comments within the original ASL source code
file were not passed through to the preprocessor output file, nor any
listing files.

iASL: Fixed some issues for the handling of the "#include" preprocessor
directive and the similar (but not the same) "Include" ASL operator.

iASL: Add support for the new OSDT in both the disassembler and compiler.

iASL: Fixed a problem with the constant folding support where a Buffer
object could be incorrectly generated (incorrectly formed) during a
conversion to a Store() operator.

AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
description text for the _REV predefined name. _REV now permanently
returns 2, as per the ACPI 6.0 specification.

Debugger: Enhanced the output of the Debug ASL object for references
produced by the Index operator. For Buffers and strings, only output the
actual byte pointed to by the index. For packages, only print the single
package element decoded by the index. Previously, the entire
buffer/string/package was emitted.

iASL/Table-compiler: Fixed a regression where the "generic" data types
were no longer recognized, causing errors.


----------------------------------------
15 May 2015. Summary of changes for version 20150515:

This release implements most of ACPI 6.0 as described below.

1) ACPICA kernel-resident subsystem:

Implemented runtime argument checking and return value checking for all
new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
_MTL, _PRR, _RDI, _RST, _TFP, _TSN.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

  Current Release:
    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
  Previous Release:
    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total


2) iASL Compiler/Disassembler and Tools:

iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
names (argument count validation and return value typechecking.)

iASL disassembler and table compiler: implemented support for all new
ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.

iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
tables: FADT, MADT.

iASL preprocessor: Added a new directive to enable inclusion of binary
blobs into ASL code. The new directive is #includebuffer. It takes a
binary file as input and emits a named ascii buffer object into the ASL
code.

AcpiHelp: Added support for all new ACPI 6.0 predefined names.

AcpiHelp: Added a new option, -d, to display all iASL preprocessor
directives.

AcpiHelp: Added a new option, -t, to display all known/supported ACPI
tables.
2015-08-18 09:53:33 +00:00
uebayasi
6019316b24 G/C defpseudo intrctl. 2015-08-18 09:43:38 +00:00
uebayasi
b318ac3975 G/C defpseudo fwiso. 2015-08-18 09:39:20 +00:00