Commit Graph

268809 Commits

Author SHA1 Message Date
rin 877241d59b Fix hand-crafted trap instruction in cpu_Debugger() for big endian. 2019-07-21 16:12:59 +00:00
rin 476eec093f Fix panic due to inconsistent lock states of tty_lock in zsparam().
Tested on mac68k.
2019-07-21 16:10:37 +00:00
rin 2b1514363b Fix build for !WSDISPLAY_COMPAT_RAWKBD. 2019-07-21 16:08:13 +00:00
rin 272639de87 Fallback to non-EFI boot script if EFI bootloader is absent.
Note that we do not currently build EFI bootloader for earmv7hf-eb,
as it requires little-endian version of toolchain.
2019-07-21 16:05:24 +00:00
rin dd918b78bd The device cannot recognize break signal. Use +++++ (five plus signs) as
cnmagic in the same manner with bcm2835_com.c.
2019-07-21 15:57:23 +00:00
rin e682cb736a Describe how to enter ddb for evbarm.
Bump date.
2019-07-21 15:51:58 +00:00
hannken c7790bc1b7 Always use "netbsd" as kernel name, dt_module_update() already takes
care to load data from the booted kernel image.
2019-07-21 15:38:06 +00:00
hannken f705610493 Try to load module "dtrace" before opening "/dev/dtrace/dtrace".
Fixes PR kern/54387: DTrace Kernel module does not autoload on first use ...
2019-07-21 15:37:27 +00:00
kre 311f349816 Stop assuming that printf handles options in any way at all
(it doesn't - that is, shouldn't) which includes processing -- as an
"end of options".  The first arg is (always) the format string.

Remove/fix tests that assumed the contrary.

Problem (with printf) pointed out on tech-userlevel by Thierry Laronde.
2019-07-21 15:25:59 +00:00
kre b6a771f35e Stop assuming that printf handles options in any way at all
(it doesn't - that is, shouldn't) which includes processing -- as an
"end of options".  The first arg is (always) the format string.

Remove call to getopt() (but still do associated changes to argc/argv)

Note: for now this is #if 0's out instead of being deleted, the old
code should be fully removed sometime soon.

Problem pointed out on tech-userlevel by Thierry Laronde.
2019-07-21 15:25:39 +00:00
kre da8bc57f2b Correct a typo. It is atf_require_prog not atf_require_pfog ... 2019-07-21 15:00:18 +00:00
martin 2ab231eed3 scripting_vprintf: to simplify things for gcc (and avoid "may be used
uninitialized" warnings) just always copy the va_list and use one
copy for the first pass, the other for the second.
2019-07-21 12:23:18 +00:00
rjs 6aef75e147 Add ftcolor.h to build from freetype2. 2019-07-21 12:15:13 +00:00
martin f1271f8172 When changing the user geometry, do not alter the disklabel internal
geometry information. On drives only capable of doing CHS addressing,
we rely on this data.
2019-07-21 11:56:20 +00:00
maya c4f47eb4fb Merge bzip2 1.0.8
1.0.7 (27 Jun 19)
~~~~~~~~~~~~~~~~~

* Fix undefined behavior in the macros SET_BH, CLEAR_BH, & ISSET_BH

* bzip2: Fix return value when combining --test,-t and -q.

* bzip2recover: Fix buffer overflow for large argv[0]

* bzip2recover: Fix use after free issue with outFile (CVE-2016-3189)

* Make sure nSelectors is not out of range (CVE-2019-12900)

1.0.8 (13 Jul 19)
~~~~~~~~~~~~~~~~~

* Accept as many selectors as the file format allows.
  This relaxes the fix for CVE-2019-12900 from 1.0.7
  so that bzip2 allows decompression of bz2 files that
  use (too) many selectors again.

* Fix handling of large (> 4GB) files on Windows.

* Cleanup of bzdiff and bzgrep scripts so they don't use
  any bash extensions and handle multiple archives correctly.

* There is now a bz2-files testsuite at
  https://sourceware.org/git/bzip2-tests.git
2019-07-21 11:52:14 +00:00
martin 7ea9bb0be0 Reintroduce scripting for writing the disklabel 2019-07-21 11:36:34 +00:00
martin da49a2c5db scripting_fprintf: when we traverse the va_list twice, we need to save
it before the first and reset it before the second pass.
2019-07-21 11:35:36 +00:00
maya c12ab3f140 Import bzip2 1.0.8 2019-07-21 11:35:13 +00:00
maya 4bc990b409 Create up to pci19.
We probably don't need more than one pci file, but the code needs to be
changed for it, which might introduce problems, and we're just before a
branch.

Not needed for evbarm because it uses devpubd by default.

Stopgap fix for PR xsrc/54388.
2019-07-21 11:14:18 +00:00
mrg b2e4dc91f2 remove unused structure members. this brings most <foo>_chain and
<foo>_cdata structures into being identical for usb ethernet drivers.

upl(4) and url(4) need more work.
2019-07-21 10:27:56 +00:00
mrg 3cab9eef29 remove unused axe_accum and axe_idx members of struct axe_chain. 2019-07-21 09:38:28 +00:00
mrg ba5b08dff9 move DWCGMAC_MPSAFE into dwc_gmac_var.h and introduce an
additional define that is 0 or FDT_INTR_MPSAFE that the
frontends can use when passing to fdtbus_intr_establish().

with NET_MPSAFE enabled, this avoids hangs seen on rock64,
as well as finishing the MPSAFE port for this driver.

XXX: still don't know why the existing hangs occur.
2019-07-21 08:24:32 +00:00
mrg 5e2dcd85b1 add missing 'struct reg;' forward decl. 2019-07-20 20:59:05 +00:00
mrg a7a2d40a8a don't descend into gm20x unless MKNOUVEAUFIRMWARE != "no" 2019-07-20 20:49:06 +00:00
mrg 9d9d771525 add util-macros src dir. 2019-07-20 20:25:35 +00:00
wiz c4e128da50 Install the nouveau gm206 firmware as used by my graphics card.
Also add the other gm20x nouveau firmwares to the source tree
to make it easier to add them for someone who can test them.

Installed if MKNOUVEAUFIRMWARE is set to 'yes'.
This defaults to no except on amd64 and i386 (like for radeon).
2019-07-20 19:09:21 +00:00
christos dfefb900a0 Restore the ability to debug a 32 bit process from a 64 bit debugger:
- add a function to validate a 64 bit context in 32 bit mode to write registers
- remove 32 bit checks from read and write register functions
- check for pc to fit in 32 bits.
proposed in tech-kern, ok maxv.
2019-07-20 18:25:11 +00:00
christos 3ce1b34236 add a register validation hook for ptrace on netbsd32 to be used for
64 -> 32 debugging.
2019-07-20 18:23:05 +00:00
bouyer 10bccfac7a Add newfs_msdos to amd64 install media, proposed on port-amd64@ back in
december.
newfs_msdos is needed to make a UEFI bootable disk.
2019-07-20 15:55:40 +00:00
bouyer 8129437f91 Don't kmem_alloc()/kmem_free() with spin lock held: call can_pcbsetfilter()
without canp_mtx; take it here and check canp_state before updating the
canp_filters.
2019-07-20 15:34:41 +00:00
sevan 4b86db61e8 CACLS DIA ICACLS 2019-07-20 13:29:36 +00:00
mrg 38eac6775d update for freetype 2.10.0 2019-07-20 03:54:50 +00:00
mrg 8811cab792 updates for freetype 2.10.0 2019-07-20 02:06:12 +00:00
hkenken 64d2f95e5c Fixed compile error. 2019-07-19 12:14:15 +00:00
bouyer 7aac0383ea Don't allocate edid informations on stack, it's too large (struct edid_info is
near 3KB), and causes a stack overflow, corrupting proc0's struct pcb.
2019-07-19 10:54:26 +00:00
knakahara b7e1580146 vmx(4) can be set IFEF_MPSAFE now.
I tested bidirectional forwarding with some ioctls.
2019-07-19 08:49:44 +00:00
knakahara d846875160 Store IFF_ALLMULTI in ec->ec_flags instead of ifp->if_flags.
See such as if_wm.c:1.636.
2019-07-19 08:46:32 +00:00
knakahara 005f86ba70 vmx(4) enable jumbo frame.
I tested 1600 mtu to/from Linux vmxnet3.
2019-07-19 08:31:41 +00:00
mrg 498e2674f8 revert previous. meant to delete that change... 2019-07-19 04:18:49 +00:00
mrg 3011319df8 call ure_stop_locked(), not ure_stop(), from ure_init_locked() to
avoid locking botch.  fixes assert reported by sc.dying.
2019-07-19 04:17:34 +00:00
kamil 615deb79c3 Enhance locking of ptrace_update_lwp
Replace lwp_delref() + mutex_enter() with: mutex_enter() + lwp_delref2().
This avoids extra taking and exiting from a mutex.

Add missing mutex_exit() for LW_SYSTEM.

Do not switch lwp for PT_SET_SIGINFO. This operation is not needed and
avoids panic for >2 LWPs as p_lock is attempted to be entered again in a
critical section.
2019-07-18 20:10:46 +00:00
palle 101d6b7d00 sun4v: added some missing comments to the code in pcbspill 2019-07-18 18:21:45 +00:00
msaitoh c654cc41b9 Use unsigned to fix compile error on i386. 2019-07-18 12:04:16 +00:00
hannken 823dcab2e3 Make namei() work with no root dir yet.
From David Holland with minor tweaks from me.

Should fix PR kern/54378 (panic with TLB miss when attempting to reboot)
2019-07-18 09:39:40 +00:00
msaitoh dd462ecddb Note piixpm(4), amdsmn(4) and amdzentemp(4). 2019-07-18 09:07:59 +00:00
msaitoh 36bfd4aa4c Add support for Ryzen 2xxx and 3xxx. 2019-07-18 08:53:41 +00:00
msaitoh 13977e7ff9 Regen. 2019-07-18 08:51:49 +00:00
msaitoh 47cd7b2277 - Intel C620 Virtual Switch Port for Termal Sensor is not 0x37c6 but 0x37c7.
- Add Some AMD Ryzen 3xxx's devices.
2019-07-18 08:50:50 +00:00
msaitoh 1c73a23a90 Remove whitespace for consistency. 2019-07-18 07:49:26 +00:00
skrll 3c5d9b0040 Simplify conditionals when clearing the CONTIG flag in pmapboot_enter and
update the comments to be a little clearer.
2019-07-18 06:47:36 +00:00