Commit Graph

268372 Commits

Author SHA1 Message Date
mrg 44e76680c9 s/Static/static/ 2019-06-22 04:45:04 +00:00
mrg 2ec2d544e1 move the software-only parts of cdce(4) out of if_cdcereg.h.
(if_cdcereg.h probably can go entirely.  it's almost empty,
but at least these definitions have some relationship with
the hardware bits.)
2019-06-22 04:35:46 +00:00
sevan 9a98dd643a BFD COA CST DS DSCP IST MAB MCLAG TDR 2019-06-21 22:04:26 +00:00
christos 72ea5dba1a refactor disk ioctl stuff to make it smaller. 2019-06-21 21:54:39 +00:00
kamil e81678c69d Sync (c) note in GDB:sh-nbsd-tdep.c with upstream
This file is now GPLv3+, not GPLv2+.
2019-06-21 19:20:18 +00:00
martin c1762e2d7a Use the raw partition for installboot, not the root partition. 2019-06-21 16:57:12 +00:00
pgoyette df08af8af4 Replicate change in .en as requested by martin@ 2019-06-21 15:59:14 +00:00
pgoyette a4ce0c87c9 Typo - distinguish has a 'g' not a 'q' 2019-06-21 15:53:16 +00:00
pgoyette 149c8d8910 Typos, grammar. 2019-06-21 15:52:05 +00:00
kamil da062e4b24 Restore ability to create regular files with mknod(2)
This behavior is requested in ATF tests.
2019-06-21 14:58:32 +00:00
kamil 8ce1514e5e Instruct tools/rpcgen about new path for rpc headers
Fixes build on Gentoo.
2019-06-21 14:56:39 +00:00
mrg c2c0fad7d4 fix issues seen with transfers being reused before they are finished
being used.

adapt locking to the modern world.  some what inspired by if_smsc.c:
- add locks for softc, rx and tx
- add safe detach support
- safe detach vs mii lock requires 2 methods to lock the MII lock,
- check axen_dying and new axen_stopping more often
- consolidate checks to reduce the number of error paths that need
  to release a resource
- move axen_watchdog() out of if_timer into the tick task to
  prepare for MPSAFEification

TODO:
- remove spl usage
- enable mpsafe

special thanks to skrll and mlelstv for clearing up various
confusion and providing examples.
2019-06-21 14:19:46 +00:00
hannken 9c87a63a8c Disable assertion: illumos 7793 ztest fails assertion in dmu_tx_willuse_space 2019-06-21 10:59:50 +00:00
isaki b9ac8c833e Use hztoms() instead of incorrect calculation.
This makes spkr work on HZ=1024 like alpha.
2019-06-21 09:34:30 +00:00
maya 874624a318 Update to working instructions.
thx mrg for the build_install suggestion.
2019-06-21 07:05:02 +00:00
kamil bd08c835ff Revert previous
There is fallout in gdb that will be investigated before relanding this.
2019-06-21 04:28:12 +00:00
kamil 14d51c2ac0 Enhance reliability of ptrace(2) in a debuggee with multiple LWPs
Stop competing between threads which one emits event signal quicker and
overwriting the signal from another thread.

This fixes missed in action signals.

NetBSD truss can now report reliably all TRAP_SCE/SCX/etc events without
reports of missed ones.

This was one of the reasons why debuggee with multiple threads misbehaved
under a debugger.
2019-06-21 04:02:57 +00:00
jnemeth e003a26f4c Add a third argument to the "cfn" function that is an argument to
gpt_change_ent().  The purpose of the third argument is to specify
whether the entry to be changed is a primary GPT entry or a secondary
GPT entry.  It is assumed that a secondary GPT entry will always
follow a corresponding primary entry.

This is in preparation for an upcoming change that will require it.
2019-06-21 02:14:59 +00:00
nonaka 7ab6c1dfd5 PR/54147: Increase BOOTINFO_MAXSIZE to 16Kib.
Some systems require a larger bootinfo size for memory descriptors.
2019-06-21 02:08:55 +00:00
kamil 21a72dea25 Eliminate PS_NOTIFYSTOP remnants from the kernel
This flag used to be useful in /proc (BSD4.4-style) debugging semantics.
Traced child events were notified without signaling the parent.

This property was removed in NetBSD-8.0 and had no users.

This change simplifies the signal code, removing dead branches.

NFCI
2019-06-21 01:03:51 +00:00
martin 35a9731f3d Avoid creating a (tiny) swap partition by default on overall too small
disks.
2019-06-20 19:26:41 +00:00
martin c063bdda5f Avoid architecture specific ifdefs in main code, move to MD macros. 2019-06-20 18:32:32 +00:00
maxv 61683f02cb Add KASLR support in UEFI. 2019-06-20 17:33:30 +00:00
christos 5db0dcccf9 Add error checking for previous memory allocation failure. 2019-06-20 17:12:37 +00:00
christos cd3ba776bd PR/54314: Frank Kardel: LOCKDEBUG: Mutex error: assert_sleepable,70:
spin lock held when loading NPF
2019-06-20 17:08:52 +00:00
martin 671c5ec58b Disklabel partitions may start at the beginning of the disk (or the
NetBSD partition).
2019-06-20 16:57:25 +00:00
christos 9847dbabc8 remove format warning. 2019-06-20 15:59:40 +00:00
christos b43b048451 use proper format strings in replace(). 2019-06-20 15:58:59 +00:00
christos 59ed32779d add more printflikes() (rin) and remove unused function.
cVS: ----------------------------------------------------------------------
2019-06-20 15:56:41 +00:00
christos 71eaa79905 mount is an array and can't be NULL (rin) 2019-06-20 15:52:07 +00:00
christos c9f05d422a devdev is an array, remove NULL check (rin) 2019-06-20 15:49:20 +00:00
msaitoh cbf17a5716 Fix panic on attach. This bug was added in rev. 1.56. I think it's not
required to call txp_set_filter() in the attach function.
2019-06-20 15:25:28 +00:00
skrll ebc5b22cbe Toolify 2019-06-20 14:33:04 +00:00
isaki e0eeaafc81 Rewrite t_pad test.
Previous version compared the pad's output binary passed mulaw-slinear
conversion and frequency conversion with the prepared "good result".
In such case, a test may fail when the implemantation changes.  In fact,
the frequency conversion algorithm was changed in isaki-audio2, so
output waveforms is not completely the same (but that's no problem with
the audio waveforms).
New version uses slinear_le/2ch/44100Hz input data and compares the
output binary with the input data.  pad with no conversions should
output the same binary.
Fix PR kern/54187.
2019-06-20 12:14:46 +00:00
uki 6e7f222be9 Mark "xbase-obsolete" to obsolete files 2019-06-20 12:09:28 +00:00
martin ec547ea245 Re-add msg_clear() accidently dropped in previous. 2019-06-20 11:31:12 +00:00
martin cad3861523 When biosboot is used on an existing wedge and we are switching to
the gpt of the parent device, do not pass the size of the wedge to
gpt_open, it certainly is smaller than the whole device.
Fixes bin/54312.
2019-06-20 10:56:38 +00:00
mrg 2fc98dfbe9 minor clean up, almost NFCI:
- use const, __func__, more
- axen_mii_lock is a normal mutex not rwlock, and make sure it's
  properly cleaned up for failed attach
- check axen_dying in axen_miibus_statchg()
- rename axen_ax88179_eeprom() to axen_get_eaddr() and move the code
  here into the support the current method.
- adjust some comments
2019-06-20 10:46:24 +00:00
martin 08878476cc Do not try to close a NULL gpt. Fixes the core dump part of PR bin/54312 2019-06-20 10:41:58 +00:00
mrg 4d79f33340 delete GCC 6.5. every platform has been on GCC 7 for a while now. 2019-06-20 10:29:53 +00:00
hkenken f1a047b06b Add support for clk subsystem in imx6 CCM driver. 2019-06-20 08:16:19 +00:00
wiz e92fdad11f fifo -> FIFO. Sort errors. 2019-06-20 06:59:32 +00:00
kamil 22444929d0 Welcome to 8.99.47!
New function do_posix_mknodat() that is called from the netbsd32 compat
module.
2019-06-20 03:34:38 +00:00
pgoyette aa59c1fcb7 Update sets lists for new ufs module 2019-06-20 03:31:55 +00:00
kamil 177438b064 Add mkfifo{,at}(2) mode in mknod{,at}(2) as requested by POSIX
mknod with mode & S_IFIFO and dev=0 shall behave like mkfifo.

Update the documentation to reflect this state.

Add ATF tests.

This is an in-kernel implementation as typically user-space programs use
mkfifo(2) directly, however whenever there is need to bypass libc (like in
valgrind) then portable POSIX software calls the mknod syscall.

Noted on tech-kern@ by Greg Troxel.
2019-06-20 03:31:53 +00:00
pgoyette 31dfde78a5 Split the ufs code out of the ffs module and into its own module.
Adapt chfs and ext2fs modules accordingly.
2019-06-20 03:31:29 +00:00
christos 5648d7c706 unifdef -ULFS_READWRITE ufs_readwrite.c 2019-06-20 00:52:05 +00:00
christos c3875562ca unifdef -DLFS_READWRITE ulfs_readwrite.c 2019-06-20 00:49:11 +00:00
christos 0e1db64433 Introduce _fmt_ flavors of the menu functions that take a formatting string
so we can use fmtcheck(3) to check the formats of the messages strings.
2019-06-20 00:45:18 +00:00
christos 24ecf24e51 Use _fmt_ msg_ methods when formats are needed. 2019-06-20 00:43:55 +00:00