265389 Commits

Author SHA1 Message Date
mrg
7075274071 memset(0) the structure, not the pointer itself, and what ever
data happens to be after the pointer's stack location.
2019-02-06 04:20:40 +00:00
msaitoh
d5850ca752 Fix a bug that all ports' MAC address become the last port's address on
Non-OF environment.

 The Saturn multi port card has only one VPD ROM and all ports share it.
If the card has four port, it has four "local-mac-address" entries.
Before this commit, the code keep the last one and use it for all ports.
The Saturn four port card has three bridge.

e.g.
----------------
003:02:0: Intel S21152BA,S21154AE/BE PCI-PCI Bridge (PCI bridge)
004:00:0: Intel S21152BA,S21154AE/BE PCI-PCI Bridge (PCI bridge)
004:04:0: Intel S21152BA,S21154AE/BE PCI-PCI Bridge (PCI bridge)
005:00:0: National Semiconductor Saturn (ethernet network, revision 0x30)
005:01:0: National Semiconductor Saturn (ethernet network, revision 0x30)
006:02:0: National Semiconductor Saturn (ethernet network, revision 0x30)
006:03:0: National Semiconductor Saturn (ethernet network, revision 0x30)
----------------

The card assign each port's PCI device number to match the port number.
Use it as the offset of "local-mac-address". Almost the same as FreeBSD.

OK'd by mrg and martin.
2019-02-06 04:14:03 +00:00
mrg
4ba74528f8 properly check SCI_CSR_DREQ in one place. 2019-02-06 04:07:31 +00:00
mrg
2ce4187fc5 update the sanitizer source lists for gcc 7. 2019-02-06 04:00:43 +00:00
mrg
ce6b781ad1 add sanitizer_procmaps_netbsd.cc 2019-02-06 03:59:09 +00:00
oster
2b4720682c Fix GET_INFO. Yes, can probably be simplified. 2019-02-06 03:37:13 +00:00
msaitoh
ad5216afc0 Regen. 2019-02-06 03:16:35 +00:00
msaitoh
633a7066af From OpenBSD:
- Add NetXen's vendor ID and devices.
- Add Sun Neptune.
2019-02-06 03:16:08 +00:00
jmcneill
afcdf04fa6 Add support for hardware cursors where we can.
As far as I can tell, alpha blending only works between overlay channels,
and not between layers on a channel. Unfortunately, RT-Mixer1 only has
a single UI channel, so this feature is limited to RT-Mixer0.
2019-02-06 03:07:08 +00:00
christos
d9e34aad07 use 'data' directly. 2019-02-06 03:01:48 +00:00
christos
703ff33d7c revert, somehow I got the generated file in the wrong directory. 2019-02-06 02:57:39 +00:00
christos
951a692637 fix objdir build 2019-02-06 02:55:54 +00:00
oster
9401c78850 Fix logic inversion. Progress, but still broken. 2019-02-06 02:49:50 +00:00
oster
b84abc1e7e Shuffle softc declarations to a different .h file. Create missing
rf_get_raid().  Things compile, but don't work correctly.
2019-02-06 02:49:09 +00:00
christos
728e0675b8 - Redo all the ioctl compat stuff to use a standard "ioctl" interface,
and provide methods to the private softc
- Provide a function for constructing a RF_Raid_t from an RF_Config_t
- Factor out the big inline ioctl code into functions
2019-02-05 23:28:02 +00:00
mrg
b6d4a8b2d9 mknative-gcc for GCC 7 and earm targets. 2019-02-05 21:50:10 +00:00
jmcneill
8dda12af70 Implement page flip API 2019-02-05 21:01:38 +00:00
christos
1dfa66f73b comment out the IFF_TRAILERS stuff that is no longer relevant and add
the missing flags.
2019-02-05 19:53:13 +00:00
christos
53fabda56e use -> instead of . 2019-02-05 19:42:31 +00:00
kamil
fdaf7bbf8c Add 2 new tests in t_fopen
Added:
 - fopen_nullptr (without COMPAT_10)
 - fopen_nullptr_compat10 (with COMPAT_10)

PR kern/53948

Reviewed by <mgorny>
2019-02-05 17:30:19 +00:00
christos
673de5b6e6 - Fix the FAIL_DISK handling (it would prolly trash the wrong disk before
since the request structs are different and the row in the old struct is
  the col in the new one).
- Restructure the way compat modules are loaded so that we only load them
  for the ioctls that need them. Put a comment explaining why...
- Set retcode after loading compat (now that the fail disk passthrough
  hack is gone), so that various ioctls don't always fail.
2019-02-05 17:13:37 +00:00
maxv
0cfadc3649 Ah, I had warnings disabled, fix the build. 2019-02-05 17:03:10 +00:00
wiz
fd79f0a9b0 Mark up NULL with Dv. Remove empty line. 2019-02-05 15:03:35 +00:00
mrg
788862effb - arm64 works
- alpha seems to work in simple testing
- armeb builds
- powerpc64 has ICE building libgcc2.
2019-02-05 14:07:24 +00:00
mrg
4e57bba316 re-port host_detect_local_cpu() to netbsd. 2019-02-05 14:01:46 +00:00
mrg
f68b80937a add gcc-7 specific header. 2019-02-05 13:57:25 +00:00
maxv
b25fe2ccb5 Sync with reality, and improve. 2019-02-05 13:56:32 +00:00
kamil
8456dc86a1 The panic for fopen(NULL, ... is back, fix it
Restore the original behavior before merging the compat refactoring branch.

Now:
 - no compat_10 -> perform pathbuf_copyin() and report EFAULT
 - compat_10 and error -> report error
 - compat_10 and success -> return file descriptor for "."

PR kern/53948
2019-02-05 13:50:10 +00:00
mrg
504bd058ec use adrp not adr, since the data is not pc-rel. fixes brk(2). 2019-02-05 13:02:35 +00:00
maxv
ed8fc6e9ad Add 12 tests for libnvmm's I/O Assist. 2019-02-05 13:00:03 +00:00
mrg
62aa7e873f provide empty version of Aarch64GetESR() for non-linux arm64. 2019-02-05 12:56:43 +00:00
mrg
5808b8ea5a regen mknative-gcc gcc7 and arm64. 2019-02-05 12:42:08 +00:00
mrg
e803a145ed update ppc64 status: mknativeg-gcc worked. 2019-02-05 12:08:12 +00:00
mrg
52aaee15a8 mknative-gcc for GCC 7 and ppc64. 2019-02-05 12:01:43 +00:00
mrg
e9814784dc update for GCC 7 - mirror changes in freebsd64.h in recent times. 2019-02-05 12:01:11 +00:00
mrg
97b7d44928 arm (oabi) works.
ppc64 has tools/gcc build failure.
2019-02-05 11:44:18 +00:00
mrg
b2f04367f0 show_version() doesn't return, but fallthru checker doesn't know
and coplains.  disable the error.
2019-02-05 11:37:18 +00:00
mrg
4fc46031fa appease the gcc7 fallthru checker. 2019-02-05 11:33:13 +00:00
mrg
e909d204a0 add missing break; after "100NEW" configuration.
don't also set "133OLD", since the 100NEW cards don't support 133.
2019-02-05 11:30:07 +00:00
mrg
d4b6efcf43 fix a >15 year old code rework bug, and add a missing break;.
the code in rev 1.7 looks like it does in this change, but rev 1.8 would
write the I443 AGP_INTEL_AGPCTRL value, and then the other value.
2019-02-05 11:20:21 +00:00
mrg
f09e0846f7 avoid a fallthru checker complaint and make one case like the rest. NFCI. 2019-02-05 11:11:32 +00:00
mrg
5042235ddc arm and armeb are mostly done. earmv4 kernels build.
(still have earm vs libgcc issue.)
2019-02-05 11:02:44 +00:00
mrg
fe9dd32d6b add new gcc7 arm headers: arm_cmse.h and arm_fp16.h 2019-02-05 10:54:14 +00:00
mrg
5aac6dba60 - call update_modifier() explicitly for the scrolling keys up event. 2019-02-05 10:04:49 +00:00
hannken
bd6f3d517a Implement the ZFS control directory ".zfs" and its subdirectory 'snapshot".
Automatically mount snapshots on access of ".zfs/snapshot/<snapname>".
2019-02-05 09:55:48 +00:00
hannken
930703cbc3 Prepare the implementation of the ZFS control directory ".zfs".
- Move the stub routines from zfs_stub.c to zfs_ctldir.c and
  remove now empty file zfs_stub.c

- Add stub routines for zfsctl_loadvnode() to initialize control
  nodes and zfsctl_snapshot() to retrieve ".zfs/snapshot".

- Add an initial vnode operations vector for control nodes.

- Implement lookup into ".zfs" and lookup ".." from ".zfs/snapshot/<snap>".

- Change nodeid of mounted snapshots to the snapshot object id.

- Respect "-u" flag to "zfs rename <snapshot> ...".
2019-02-05 09:54:36 +00:00
hannken
2b2eb8edaf zfs_netbsd_reclaim(): validate "z_log" before zil_commit(). 2019-02-05 09:50:18 +00:00
hannken
88bcb4546a Allow dounmount() with file system already suspended.
Remove no longer valid test for layered mounts,
ZFS will unmount snapshots bottom up.
2019-02-05 09:49:44 +00:00
mrg
5e1416b38a remove duplicated line in previously. noticed by paulg. 2019-02-05 09:45:38 +00:00
pgoyette
ca7733f665 If the openat_10 hook is present and it returns success, continue with
the rest of the syscall; don't return prematurely, as we'll report
success (return value 0) but won't have set up the fd.
2019-02-05 09:34:38 +00:00