Commit Graph

263171 Commits

Author SHA1 Message Date
maxv
62a5bd239e Take RAX from the VMCB and not the VCPU state, the latter is not
synchronized and contains old values.
2018-11-14 19:14:40 +00:00
wiz
a1961053ec Sort sections. New sentence, new line. 2018-11-14 18:28:18 +00:00
hannken
d22a72be5c Apply the recent fixes to {send,recv}mmsg() to their compat variants. 2018-11-14 17:51:37 +00:00
riastradh
44773f2a69 Define _LP64 or _ILP32 for all architectures.
Rather than write out a table for each architecture, rely on the C
compiler to define _LP64 for 64-bit ones, on the assumption that
anything not LP64 is ILP32, and on CTASSERTs to verify this
assumption so that if it's wrong it'll fail safely with a noisy build
failure.

Gives zfs half a chance of building on, e.g., powerpc.
2018-11-14 17:09:08 +00:00
mlelstv
51aec893ad In validate_bootsel, the code assumed that arr[j][i] can be accessed
with something like arr[0][j*ARRAYWIDTH+i]. gcc no longer allows such
hacks and discards the code silently because of undefined behaviour.
2018-11-14 12:05:29 +00:00
jmcneill
836620abab Define __HAVE_PCI_MSI_MSIX 2018-11-14 11:02:52 +00:00
skrll
64184be9c1 Some fixes for QEMU/hppa.
Don't call desidhash_l on pcxl2 as it doesn't support it.  QEMU emulates
this cpu and would trap on illegal instruction for the diag in desidhash_l

Allow a FPU to be missing... more fixes are likely here.

QEMU doesn't set C bit properly yet
2018-11-14 10:58:04 +00:00
martin
25d7bb6a49 Add debug files for recent xserver addition 2018-11-14 08:44:34 +00:00
skrll
9d641f50b8 defflag XHCI_DISABLE_MSIX 2018-11-14 06:56:30 +00:00
knakahara
3d0c03bef5 let ATF detect a bug fixed by if_vla.c:r1.132. 2018-11-14 05:07:48 +00:00
msaitoh
8be8ad3944 - Add new wm_gmii_{hv,i82544}_{read,write}reg_locked() and use them in
wm_gmii_{hv,i82544}_{read,write}reg(). *_locked() functions are not
  mii(4) API functions, so it's not required to keep the mii API. Change
  the PHY register type from int to uint16_t. It also change the usage of
  return value. It returns zero on success and non-zero on error.
- Check the return value of *_locked() function and treat it.
- Use *writereg_locked() function to reduce race condition in
  wm_init_lcd_from_nvm().
- Add comment.
2018-11-14 03:41:20 +00:00
kre
0b70db4e58 Add a test for the bug in PR bin/53712 ( " { } > out " core dump )
Tested with both fixed, and unfixed, versions of /bin/sh (and in
posix mode, where that is a syntax error).
2018-11-14 02:37:51 +00:00
martin
c4cf3d8d86 Slightly enhance previous: create two utility functions checking for
partitionability and boot code requirements, use a generic match helper
function for both and fully check the device name.
2018-11-14 02:30:00 +00:00
jmcneill
93f5645a78 Update GICD_CTLR reg bit definitions to reflect the layout of the register
when either in non-secure state or for a system that only supports a single
state.
2018-11-13 22:25:28 +00:00
skrll
b3b36747d3 Apply -fno-delete-null-pointer-checks so PAGE0 is handled correctly
netinstall.lif works again
2018-11-13 21:22:37 +00:00
skrll
e5167a0bf7 Trailing whitespace 2018-11-13 21:20:11 +00:00
skrll
32fb419ab7 On second/third thoughts we can use the pages before the kernel
everywhere.
2018-11-13 20:48:14 +00:00
jmcneill
77715e1a23 Fix intrctl for pics with non-0 irqbase 2018-11-13 20:24:48 +00:00
jdolecek
456ea4f981 use pci_intr_establish_xname() 2018-11-13 20:12:45 +00:00
jdolecek
f798e483bb whitespace fix, NFC 2018-11-13 19:39:04 +00:00
jakllsch
a8e9e1a9cb Add AXP803 current and maximum battery capacity sensors 2018-11-13 19:06:05 +00:00
scole
5b582482a6 Mention macppc 601 needs to use separate boot floppies, kernels, and specific kernel on CD 2018-11-13 18:48:25 +00:00
jakllsch
eec37234f1 Use semantically-correct "_lo" in AXP_ADC_RAW macro. 2018-11-13 18:27:32 +00:00
bouyer
a5c25858d1 Skip mbr for xbd and raid devices, as it was before Nov. 5 commits.
anita xen installs should work again.
2018-11-13 17:22:04 +00:00
mlelstv
3118701f5e Fix some error handling, json support, keyring handling. 2018-11-13 14:52:30 +00:00
skrll
9f7f145236 Fix/add KASSERTS to work with a system of MAXCPUS. Add some comments to
explain things.

Discussed with rmind
2018-11-13 11:06:19 +00:00
mlelstv
be56c11f44 Framebuffer definitions for multiboot protocol. 2018-11-13 11:01:54 +00:00
mlelstv
d8bcdfdb84 use generic usbdevices.config 2018-11-13 11:00:55 +00:00
mlelstv
819a20c4d5 compute interrupt timer depending on bus clock. 2018-11-13 10:51:49 +00:00
mlelstv
695baa5ba5 Fix race in attachment. 2018-11-13 10:35:32 +00:00
jmcneill
d838922e97 Save a few pages by only allocating LPI pending tables for "ncpu" instead of "MAXCPU" CPUs. 2018-11-13 10:33:03 +00:00
mrg
b5c3365f79 only warn once per call to uvm_pglistalloc_simple() if waiting. 2018-11-13 10:31:01 +00:00
mlelstv
7fc8c73ad7 Handle abort paths gracefully on detach. 2018-11-13 10:30:57 +00:00
jmcneill
393f75b302 Physical end should be the end of the last range, not the first. 2018-11-13 10:30:35 +00:00
martin
53fe79071f Too much magic involved - revert previous. 2018-11-13 09:24:37 +00:00
martin
94c721a4e0 Need some minimalistic support for additional things that ../Makefile
requires, even if we do nothing here
2018-11-13 09:14:14 +00:00
martin
9b49821e7c Move conditionals for libnvmm to subdir makefile, requested boy mrg. 2018-11-13 09:00:08 +00:00
maxv
f0cdb4272b Fix kernel info leak. There are 2 bytes of padding in struct if_msghdr.
[  944.607323] kleak: Possible leak in copyout: [len=176, leaked=2]
[  944.617335] #0 0xffffffff80b7c44a in kleak_note <netbsd>
[  944.627332] #1 0xffffffff80b7c4ca in kleak_copyout <netbsd>
[  944.627332] #2 0xffffffff80c91698 in sysctl_iflist_if <netbsd>
[  944.637336] #3 0xffffffff80c91d3c in sysctl_iflist <netbsd>
[  944.647343] #4 0xffffffff80c93855 in sysctl_rtable <netbsd>
[  944.647343] #5 0xffffffff80b5b328 in sysctl_dispatch <netbsd>
[  944.657346] #6 0xffffffff80b5b62e in sys___sysctl <netbsd>
[  944.667354] #7 0xffffffff8025ab3c in sy_call <netbsd>
[  944.667354] #8 0xffffffff8025ad6e in sy_invoke <netbsd>
[  944.677365] #9 0xffffffff8025adf4 in syscall <netbsd>
2018-11-13 07:45:43 +00:00
maxv
0b8018b8b9 Fix kernel info leak. There are 2x4 bytes of padding in struct itimerval.
[  738.451860] kleak: Possible leak in copyout: [len=32, leaked=8]
[  738.481840] #0 0xffffffff80b7c42a in kleak_note <netbsd>
[  738.491821] #1 0xffffffff80b7c4aa in kleak_copyout <netbsd>
[  738.501806] #2 0xffffffff80b6154e in sys___getitimer50 <netbsd>
[  738.511778] #3 0xffffffff80b61e39 in sys___setitimer50 <netbsd>
[  738.521781] #4 0xffffffff8025ab3c in sy_call <netbsd>
[  738.521781] #5 0xffffffff8025ad6e in sy_invoke <netbsd>
[  738.531808] #6 0xffffffff8025adf4 in syscall <netbsd>
2018-11-13 07:16:33 +00:00
maxv
875892b9bd Fix kernel info leak. There are 4 bytes of padding in struct kevent.
[  287.537676] kleak: Possible leak in copyout: [len=40, leaked=4]
[  287.537676] #0 0xffffffff80b7c41a in kleak_note <netbsd>
[  287.547673] #1 0xffffffff80b7c49a in kleak_copyout <netbsd>
[  287.557677] #2 0xffffffff80b1d32d in kqueue_scan.isra.1.constprop.2 <netbsd>
[  287.557677] #3 0xffffffff80b1dc6a in kevent1 <netbsd>
[  287.567683] #4 0xffffffff80b1dcb0 in sys___kevent50 <netbsd>
[  287.567683] #5 0xffffffff8025ab3c in sy_call <netbsd>
[  287.577688] #6 0xffffffff8025ad6e in sy_invoke <netbsd>
[  287.587693] #7 0xffffffff8025adf4 in syscall <netbsd>
2018-11-13 06:58:14 +00:00
maya
c587647461 Revert my own rev 1.2, the missing include was only when building the 32-bit
compat library, we no longer do this.
2018-11-13 06:57:14 +00:00
ryo
926a162de8 turn on MODULAR by default on aarch64 2018-11-13 06:06:29 +00:00
scole
737f9c1026 add ppc601 kernel to macppc iso 2018-11-13 03:03:22 +00:00
jakllsch
2fb1e9d44c Avoid using the "interrupt-map" table on our own interrupts.
This is needed by the rk3399.dtsi's pcie0 node, which needs to map its
interrupts an entity other than itself.

Suggested by jmcneill@
2018-11-13 01:06:37 +00:00
jdolecek
7804de8da0 pass correct status + error to *_atapi_phase_complete(), so that
the function is actually able to recognize when there was an error;
tested via reading a cd0 device in QEMU with ejected cdrom

bug was introduced with jdolecek-ncq branch

fixes PR kern/53724 by Andreas Gustafsson
2018-11-12 20:54:03 +00:00
scole
061a76feb8 install kernel for ppc601 floppies and iso 2018-11-12 20:07:47 +00:00
scole
9f49f956e1 Add scroll support, wsmouse 2018-11-12 20:03:42 +00:00
scole
395178c744 PR 51495/port-macppc
Allow ppc601 to boot off hard disk
2018-11-12 20:00:46 +00:00
jdolecek
65a96d6bf9 hold channel lock during whole ata_dmaerr()/ata_downgrade_mode() -
according to code inspection this is safe, none of the set_modes
hooks execute anything which would be taking the lock

adresses PR kern/53714 by Andreas Gustafsson
2018-11-12 18:51:01 +00:00
maxv
767a8c0176 Add a comment explaining an important rule. Just to better highlight that
this rule is actually not respected.
2018-11-12 18:10:36 +00:00