248340 Commits

Author SHA1 Message Date
christos
914b3cbf1a use __HAVE_COMPAT_NETBSD32 2017-01-26 15:54:31 +00:00
wiz
fed872eca6 Fix a typo, add a comma. 2017-01-26 13:52:29 +00:00
ryoon
91ab8d2322 Add viornd(4) to virtio(4) man page 2017-01-26 13:38:28 +00:00
knakahara
46ddd00677 fix memory leak at wm_detach.
pointed out and reviewed by msaitoh@n.o.
2017-01-26 10:14:52 +00:00
martin
ee2ea00dd5 Restrict the forcing of COMPAT_NETBSD32 to _LP64 kernels - this is probably
not the right thing to do, but unbreaks the build for now.
2017-01-26 08:09:27 +00:00
martin
d57a70bd13 No COMPAT_NETBSD32 for rump 2017-01-26 07:54:05 +00:00
pgoyette
34fb8cb604 Add comment about possibly prompting for "release" portion of module
path at boot-loader time.
2017-01-26 04:24:20 +00:00
nat
10bab8a3fa Use sc_pr the mixing ring in full not just the first block.
Audio will pass the atf test again.
2017-01-26 04:15:38 +00:00
christos
9be065fb89 For LOCKDEBUG:
Always provide the location of the caller of the lock as __func__, __LINE__.
2017-01-26 04:11:56 +00:00
nat
7257364421 Don't hold the thread_lock between successive calls to sc_intr as it
breaks mixing.

This will help passing the atf test.  Changes to audio.c to ensue this
will be in a followup commit.
2017-01-26 04:10:27 +00:00
christos
655a10972a always compile in the COMPAT32 code; it is tiny and if we don't it breaks
the modules.
2017-01-26 03:54:54 +00:00
christos
46149e83cc don't return early holding a lock! 2017-01-26 03:54:01 +00:00
nonaka
78d84e817e Fix compile failure on i386 with DEBUG_MEMLOAD. 2017-01-26 01:36:35 +00:00
nonaka
b1c9a8a10f Fix compile failure on i386 with PAE. 2017-01-26 01:35:51 +00:00
christos
8b431b6f84 Define MODULAR so we can have syscalls autoload after the module autoloads.
XXX: This is toxic, and currently caused LOCKDEBUG crashes.
2017-01-26 01:32:34 +00:00
kamil
8943353e76 Update TODO.ptrace
Added:
 - reiterate over FreeBSD tests and add missing ones if applicable

Sponsored by <The NetBSD Foundation>
2017-01-26 01:12:13 +00:00
kamil
a55086ec09 Update TODO.ptrace
Drop:
 - add ATF tests for PIOD_READ_AUXV

Add new entry:
 - research what happens when a tracee masks signals (including SIGTRAP)
   and a breakpoint is triggered

Sponsored by <The NetBSD Foundation>
2017-01-26 01:04:23 +00:00
jakllsch
15a5ead236 Catch netbsd32_copyargs() up to changes in r1.441 src/sys/kern/kern_exec.c 2017-01-25 21:45:39 +00:00
christos
4705defbf3 es_arglen is already in bytes... 2017-01-25 17:57:14 +00:00
christos
44c43f62df The argument length is in bytes; don't use howmany() 2017-01-25 17:56:45 +00:00
christos
908d408b7e PR/51916: Kamil Rytarowski: Don't multiply es_arglen with ptrsz since it is
already in bytes and contains the maximum possible size:
	ELF_AUX_ENTRIES * sizeof(auxv) + MAXPATHLEN + ALIGN
2017-01-25 17:55:47 +00:00
jakllsch
d783875ca2 Improve/fix igsfb(4) support for 15BPP.
Use howmany(depth, NBBY) instead of (depth >> 3), so that 15 bits maps
to 2 bytes instead of 1.

While here, in a nearly-identical change, don't hard-code 8BPP into the
CyberPro blitter.
2017-01-25 17:31:55 +00:00
kamil
231f136ce0 Make the PIOD_READ_AUXV operation more clear
Describe how to set piod_offs.

Sponsored by <The NetBSD Foundation>
2017-01-25 17:12:56 +00:00
kamil
905db9de05 Add io_read_auxv1 in t_ptrace_wait{,3,4,6,id,pid}
io_read_auxv1:
    Verify PT_READ_AUXV called for tracee

Sponsored by <The NetBSD Foundation>
2017-01-25 17:01:57 +00:00
jakllsch
59ca1c9f5f Map coprocessor registers before igsfb_hw_setup(), they are needed for
setting up the video mode.
2017-01-25 16:11:54 +00:00
jakllsch
f47d73c6a6 igsfb(4): use WSDISPLAY_BORDER_COLOR for overscan color 2017-01-25 15:51:07 +00:00
jakllsch
a943ceca49 Double size of WSDISPLAYIO_SFONT name buffer to 32 characters.
We've got a font known as "DejaVu Sans Mono", and that is 17 bytes
by the time it's NUL terminated.
2017-01-25 15:40:31 +00:00
jakllsch
1730769371 Add rasops15_putchar_aa() for greyscale fonts.
Based on rasops8_putchar_aa() and rasops32_putchar_aa().
2017-01-25 14:53:43 +00:00
christos
00db07f741 - don't use their ntoh{l,s}/hton{l,s} implementation
- fix their ntohl/htonl implementations to use unsigned int instead of
  unsigned long so they work on _LP64.
2017-01-25 14:46:16 +00:00
christos
d0198d293f new acpica 2017-01-25 13:43:58 +00:00
christos
2525631db5 implement new interfaces 2017-01-25 13:38:40 +00:00
christos
660602a827 merge conflicts 2017-01-25 13:38:21 +00:00
msaitoh
8fb4d0869d Call ixgbe_get_supported_physical_layer() before ixgbe_add_media_types() to
set new media types correctly.
2017-01-25 13:08:31 +00:00
christos
0b89cded03 One more time in the right place...
----------------------------------------
19 January 2017. Summary of changes for version 20170119:

This release is available at https://acpica.org/downloads

1) General ACPICA software:

Entire source code base: Added the 2017 copyright to all source code
legal/licensing module headers and utility/tool signons. This includes
the standard Linux dual-license header. This affects virtually every file
in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
the ACPICA test suite.


2) iASL Compiler/Disassembler and Tools:

iASL: Removed/fixed an inadvertent remark when a method argument
containing a reference is used as a target operand within the method (and
never used as a simple argument), as in the example below. Jeffrey Hugo.

    dsdt.asl   1507:    Store(0x1, Arg0)
    Remark   2146 -                ^ Method Argument is never used (Arg0)

All tools: Removed the bit width of the compiler that generated the tool
from the common signon for all user space tools. This proved to be
confusing and unnecessary. This includes similar removal of HARDWARE_NAME
from the generic makefiles (Thomas Petazzoni). Example below.

    Old:
    ASL+ Optimizing Compiler version 20170119-32
    ASL+ Optimizing Compiler version 20170119-64

    New:
    ASL+ Optimizing Compiler version 20170119

----------------------------------------
22 December 2016. Summary of changes for version 20161222:


1) ACPICA kernel-resident subsystem:

AML Debugger: Implemented a new mechanism to simplify and enhance
debugger integration into all environments, including kernel debuggers
and user-space utilities, as well as remote debug services. This
mechanism essentially consists of new OSL interfaces to support debugger
initialization/termination, as well as wait/notify interfaces to perform
the debugger handshake with the host. Lv Zheng.

    New OSL interfaces:
        AcpiOsInitializeDebugger (void)
        AcpiOsTerminateDebugger (void)
        AcpiOsWaitCommandReady (void)
        AcpiOsNotifyCommandComplete (void)

    New OS services layer:
        osgendbg.c -- Example implementation, and used for AcpiExec

Update for Generic Address Space (GAS) support: Although the AccessWidth
and/or BitOffset fields of the GAS are not often used, this change now
fully supports these fields. This affects the internal support for FADT
registers, registers in other ACPI data tables, and the AcpiRead and
AcpiWrite public interfaces. Lv Zheng.

Sleep support: In order to simplify integration of ACPI sleep for the
various host operating systems, a new OSL interface has been introduced.
AcpiOsEnterSleep allows the host to perform any required operations
before the final write to the sleep control register(s) is performed by
ACPICA. Lv Zheng.

    New OSL interface:
        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)

    Called from these internal interfaces:
        AcpiHwLegacySleep
        AcpiHwExtendedSleep

EFI support: Added a very small EFI/ACPICA example application. Provides
a simple demo for EFI integration, as well as assisting with resolution
of issues related to customer ACPICA/EFI integration. Lv Zheng. See:

    source/tools/efihello/efihello.c

Local C library: Implemented several new functions to enhance ACPICA
portability, for environments where these clib functions are not
available (such as EFI). Lv Zheng:
    putchar
    getchar
    strpbrk
    strtok
    memmove

Fixed a regression where occasionally a valid resource descriptor was
incorrectly detected as invalid at runtime, and a
AE_AML_NO_RESOURCE_END_TAG was returned.

Fixed a problem with the recently implemented support that enables
control method invocations as Target operands to many ASL operators.
Warnings of this form: "Needed type [Reference], found [Processor]" were
seen at runtime for some method invocations.

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: 141.5K Code, 58.5K Data, 200.0K Total
    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
  Previous Release:
    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total


2) iASL Compiler/Disassembler and Tools:

Disassembler: Enhanced output by adding the capability to detect and
disassemble ASL Switch/Case statements back to the original ASL source
code instead of if/else blocks. David Box.

AcpiHelp: Split a large file into separate files based upon
functionality/purpose. New files are:
    ahaml.c
    ahasl.c

----------------------------------------
17 November 2016. Summary of changes for version 20161117:


1) ACPICA kernel-resident subsystem:

Table Manager: Fixed a regression introduced in 20160729, "FADT support
cleanup". This was an attempt to remove all references in the source to
the FADT version 2, which never was a legal version number. It was
skipped because it was an early version of 64-bit support that was
eventually abandoned for the current 64-bit support.

Interpreter: Fixed a problem where runtime implicit conversion was
incorrectly disabled for the ASL operators below. This brings the
behavior into compliance with the ACPI specification:
    FromBCD
    ToBCD
    ToDecimalString
    ToHexString
    ToInteger
    ToBuffer

Table Manager: Added a new public interface, AcpiPutTable, used to
release and free an ACPI table returned by AcpiGetTable and related
interfaces. Lv Zheng.

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: 140.5K Code, 58.5K Data, 198.9K Total
    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
  Previous Release:
    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total


2) iASL Compiler/Disassembler and Tools:

Disassembler: Fixed a regression for disassembly of Resource Template.
Detection of templates in the AML stream missed some types of templates.

iASL: Fixed a problem where an Access Size error was returned for the PCC
address space when the AccessSize of the GAS register is greater than a
DWORD. Hoan Tran.

iASL: Implemented several grammar changes for the operators below. These
changes are slated for the next version of the ACPI specification:
    RefOf        - Disallow method invocation as an operand
    CondRefOf    - Disallow method invocation as an operand
    DerefOf      - Disallow operands that use the result from operators
that
                   do not return a reference (Changed TermArg to
SuperName).

iASL: Control method invocations are now allowed for Target operands, as
per the ACPI specification. Removed error for using a control method
invocation as a Target operand.

Disassembler: Improved detection of Resource Templates, Unicode, and
Strings within Buffer objects. These subtypes do not contain a specific
opcode to indicate the originating ASL code, and they must be detected by
other means within the disassembler.

iASL: Implemented an optimization improvement for 32-bit ACPI tables
(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
only after 64-bit to 32-bit truncation. A truncation warning message is
still emitted, however.

AcpiXtract: Implemented handling for both types of line terminators (LF
or CR/LF) so that it can accept AcpiDump output files from any system.
Peter Wu.

AcpiBin: Added two new options for comparing AML files:
    -a: compare and display ALL mismatches
    -o: start compare at this offset into the second file
2017-01-25 13:03:49 +00:00
roy
2ebbf64e54 Document baudrate(3). 2017-01-25 12:42:05 +00:00
roy
1899e6576b And more functions .... 2017-01-25 12:21:18 +00:00
roy
9ab26a1db5 Note the substantial work by others on the curses library. 2017-01-25 12:05:26 +00:00
roy
cb39f3d94a Document recently added functions in curses.3 2017-01-25 12:00:57 +00:00
roy
de49f4c9e2 Reference curses_slk(3). 2017-01-25 11:44:55 +00:00
martin
b0e7a0cd0a Add missing argument 2017-01-25 08:20:15 +00:00
martin
7b256f0e16 toupper() takes an unsigned char. 2017-01-25 08:14:07 +00:00
msaitoh
e919ca4c6e Remove debug printf()s. 2017-01-25 07:49:23 +00:00
msaitoh
d077bfe0e4 Fix SFP+ insersion or replacement stuff. 2017-01-25 07:46:53 +00:00
msaitoh
11b02bab64 ifmedia_removeall(): Clear ifm_cur and ifm_media after removing all ifmedia
entries.
2017-01-25 07:19:24 +00:00
msaitoh
072c3839f8 ifmedia_init(): Clear ifm_media with IFM_NONE instead of 0. 2017-01-25 07:17:19 +00:00
martin
b28e9ab593 auich_round_blocksize: never return 0 as blocksize 2017-01-25 06:33:52 +00:00
pgoyette
c787106c30 Add "SOS" 2017-01-25 03:23:29 +00:00
christos
98c1dc9935 fix locking against myself in module autoload; module autoload calls
if_clone_attach which takes the lock again.
2017-01-25 03:04:21 +00:00
ozaki-r
87e988a7d8 Use bpf_ops for bpf_mtap_softint
By doing so we don't need to care whether a kernel enables bpfilter or not.
2017-01-25 01:04:23 +00:00
christos
5910062ea1 new tcpdump/libpcap 2017-01-24 23:31:03 +00:00