Commit Graph

303590 Commits

Author SHA1 Message Date
rin faa47e13db gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [12/21]
PR toolchain/43314: pc relative relocations are "off by 1*size" on vax

Address http://gnats.netbsd.org/43314
2023-10-07 12:04:50 +00:00
rin 57ffd19368 binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [11/21]
PR toolchain/43314: pc relative relocations are "off by 1*size" on vax

Address http://gnats.netbsd.org/43314
2023-10-07 12:04:09 +00:00
rin e3208e4195 binutils/gas: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [10/21]
Try not to emit relocations in the .eh_frame section
2023-10-07 12:02:50 +00:00
rin 5c422d1814 gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [9/21]
A reload for the address of an operand's address should not use the same
register as a reload of an operand's address if the two reloads are for
different operands

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.
2023-10-07 12:02:23 +00:00
rin 3325d1e00a gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [8/21]
Allow 64 bit operands addressed using post-increment addressing to be negated
2023-10-07 12:02:03 +00:00
rin c27d2fc634 gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [7/21]
Mark the output operands of the 'sbcdi3' instruction pattern as being
written before the instruction has finished using the input operands.
2023-10-07 12:01:43 +00:00
rin 2a88a001d4 gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [6/21]
load the address operand of a SUBREG into a register to allow virtual
registers to be instantiated

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.
2023-10-07 12:00:35 +00:00
rin 7eb2d76c0c gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [5/21]
Shift right by positive values that are less than HOST_BITS_PER_WIDE_INT
to avoid illegal instruction exceptions on VAX.

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.
2023-10-07 11:58:54 +00:00
rin ae12d8de82 gcc.old: PR port-vax/57646 patch provided by Kalvis Duckmanton [4/21]
Constrain offsets within subregister expressions to be a multiple of
the size of the data type requested. That is, offsets for a word sized
(2 byte) subregister may only be multiples of 2.

XXXRO: Hidden within ``#ifdef NB_FIX_VAX_BACKEND'' and enabled only for
vax at the moment.
2023-10-07 11:58:31 +00:00
rin 036a217363 gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [3/21]
Reduce expressions specifying an address of a 64 bit quantity to
a sequence of assignments to temporary variables; this allows virtual
registers to be inst antiated properly.
2023-10-07 11:57:56 +00:00
rin 7e3f0ee31d gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [2/21]
Add a special case to the zero_extract instruction to handle the case
where 32 bits are requested (i.e. the entire word). When printing a mask
operand, avoid generating values that might overflow a 32 bit word.
2023-10-07 11:57:27 +00:00
rin 2003b2587d gcc.old: vax: PR port-vax/57646 patch provided by Kalvis Duckmanton [1/21]
Save %r2..%r5 in the prologue of functions which call __builtin_eh_return().
Implement the eh_return() instruction. Ensure that the CFA is correct
2023-10-07 11:57:01 +00:00
rin f8587b7736 binutils/gas: vax: Cherry-pick upstream commits for binutils-gdb/30715
PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton

(1/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8c8224dc1637a3e695c17e4c1026247196813c48
----
commit 8c8224dc163
Author: Kalvis Duckmanton <kalvisd at gmail>
Date:   Sat Aug 12 14:27:00 2023 +0930

PR30715, VAX: md_create_long_jump

    PR 30715
    * config/tc-vax.c (md_create_long_jump): Use pc-relative addressing.
    * testsuite/gas/vax/broken_word.d,
    * testsuite/gas/vax/broken_word.s: New test.
    * testsuite/gas/vax/vax.exp: Run it.
----

(2/2) https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=33efa77ecf7b040973657408f92325a4db13b9e5
----
commit 33efa77ecf7
Author: Alan Modra <amodra at gmail>
Date:   Mon Aug 14 17:05:01 2023 +0930

Re: PR30715, VAX: md_create_long_jump

Tidy comment formatting.
----
2023-10-07 11:26:09 +00:00
andvar 47d85a15a6 Remove fpsp include and #ifdef FPSP blocks for news68k.
FPSP is necessary for 040/060 only, and news68k doesn't have such hardware.

Noted by Izumi Tsutsui.
2023-10-06 21:10:12 +00:00
msaitoh 4ab64dd855 ixgbe: Cleanup. No fucntional change.
Remove unused code, fix whitespace and modify comment to reduce against
FreeBSD(mainly from ix-3.3.35).
2023-10-06 14:48:08 +00:00
msaitoh 2b2265d3a3 ixgbe: Enable interrupt after setting IFF_RUNNING. Same as FreeBSD x-3.3.35. 2023-10-06 14:46:31 +00:00
msaitoh f8fe5503d4 ixgbe: Remove NO_82599_SUPPORT and NO_X540_SUPPORT support. NFCI.
From FreeBSD ix-3.3.35. Note that this file is not used in NetBSD.
2023-10-06 14:45:27 +00:00
msaitoh 786dff6564 ixgbe: Modify error message of wrong TX/RX descriptor size.
- Based from FreeBSD ix-3.3.35. I think ix-3.3.35's RING_INCREMENT(== 32)
    is wrong. It should be 8(DBA_ALIGN / sizeof(union ixgbe_adv_[tr]x_desc)).
    Linux also uses 8.
2023-10-06 14:44:08 +00:00
msaitoh 14dc06b4fe ixgbe: Simplify definitions. No functional change.
Both DEFAULT_{TX,RX}D and PERFORM_{TX,RX}D are 2048. Use DEFAULT_{TX,RX}D.
Same as FreeBSD.
2023-10-06 14:42:51 +00:00
msaitoh f04f7e6f11 ixg(4): Filter out spurious link up indication
- Extend SFP+ cage crosstalk fix by re-checking link state after 5ms delay
   to filter out spurious link up indication by transceiver with no fiber
   cable connected.
 - From FreeBSD:
     In-tree: 04a5e6d7cadd06b10169c3c3a560649e7dc7444c
     Out of tree: ix-3.3.33.
2023-10-06 14:41:24 +00:00
msaitoh 02c09a82ba ixg(4): Add 82599 LS once again.
- From:
        FreeBSD: 9228ac3a69c4c7401a743e6465e118101a2beeb0
        DPDK:    549ccd3dc01539e060597b503f2b65b272de3347
 - This was removed 5 years ago. From the commit message:
   > Remove IXGBE_DEV_ID_82599_LS(0x154f) support again. I don't know why. This
   > was added in ix-3.2.18.tar.gz(NetBSD: ixgbe_82599.c rev. 1.20) and
   > removed in ix-3.3.6.tar.gz.
2023-10-06 14:40:06 +00:00
msaitoh 615f58d6f2 ixg(4): Remove unused and old function. No functional change.
- From FreeBSD's ix-3.3.32.
2023-10-06 14:38:03 +00:00
msaitoh 55485da1d7 ixgbe: Rename some definitions, modify comment. No functional change.
Apply changes from FreeBSD's ix-3.3.31 and ixv-1.5.32.
    - struct adapter *adapter -> struct ixgbe_softc *sc
    - master -> primary
    - black -> block
2023-10-06 14:37:04 +00:00
msaitoh 62d0d54656 ixg(4): Update FCTRL after writing multicast filter. Same as other OSes.
From FreeBSD 395cc55d896654b8f75071e71e856b22aed87da5.
2023-10-06 14:35:25 +00:00
msaitoh 2c2500e8f5 ixv(4): Add new IXGBE_VF_GET_LINK_STATE message support.
PF can control vf's link state by this change. Note that Linux's PF driver
can't control the link to force up (i.e. ip link set XXX vf Y state enable).
From FreeBSD ixv-1.5.30.
2023-10-06 14:34:23 +00:00
msaitoh c0b404c89a ixv(4): Improve error check.
ixgbe_vf.c rev. 1.31 changed the behavior of the ixgbe_check_mac_link_vf()
function. It was from FreeBSD's ixv-1.5.25 to resolve mailbox collision
problem. The change had a problem that error checks have not done at all if
the API version >= 1.5. Fix it. From FreeBSD ixv-1.5.27.
2023-10-06 14:32:05 +00:00
rin 8f88bf1093 doc/CHANGES: Note igc(4) addition
Will be pulled up to netbsd-10 soon, and this entry will migrate to
CHANGES.prev also.
2023-10-06 13:39:56 +00:00
skrll d40146f873 Convert the l2->l_md.md_astpending assignments into KASSERTs.
l_md is zeroised by lwp_create with

         memset(&l2->l_startzero, 0, sizeof(*l2) -
                    offsetof(lwp_t, l_startzero));
2023-10-06 11:53:26 +00:00
skrll f9ac86e626 Trailing whitespace 2023-10-06 11:45:37 +00:00
skrll 6ec65fcfd4 Trailing whitespace. 2023-10-06 11:45:16 +00:00
martin c7be6fd2c8 Fix previous and restore setting of "user" flag from trapframe. 2023-10-06 09:53:02 +00:00
roy cab253a88f Note update to dhcpcd-10.0.3 2023-10-06 08:53:14 +00:00
roy 500f169515 sync with dhcpcd-10.0.3 2023-10-06 08:49:42 +00:00
skrll 6f5d0134ba Not all RISC-V CPUs have ASIDs 2023-10-06 08:48:49 +00:00
skrll b81e6fb41c Support CPUs that might not have ASIDs in the common pmap. 2023-10-06 08:48:16 +00:00
roy c747e301ef Import dhcpcd-10.0.3 with the following changes:
DHCP: Don't crash on a test run
dhcpcd: Fix off-by-one overflow when read() writes full BUFSIZ
privsep: fix strlcpy overflow in psp_ifname
privsep: Fix a FD leak when processes exit
dhcpcd: Use a local variable instead of the optind
dhcpcd: Guard against handling many SIGTERM/SIGINT
DHCP6: Send correct amount of used buffer for prefix exclude option
options: andsf6 is DHCPv6, not DHCP
options: introduce the uri option as opposed to a string
DHCP6: Set all requested addrs as not stale when starting discovery
2023-10-06 08:46:21 +00:00
simonb b95bf550a5 Reduce upstream diffs - remove a gcc warnings " = 0" change. This
was a problem in 2006, doesn't appear to be a problem anymore.
2023-10-06 07:33:49 +00:00
simonb 0c995ed233 Reduce upstream diffs. 2023-10-06 07:31:30 +00:00
simonb b36f9237e6 Reduce upstream diffs - tabs vs space. 2023-10-06 07:29:42 +00:00
simonb 3d8a4f7f3d Reduce upstream diffs. 2023-10-06 07:26:47 +00:00
simonb 76b1013682 Reduce upstream diffs - remove a gcc warnings " = 0" change. This
was a problem in 2006, doesn't appear to be a problem anymore.
2023-10-06 07:13:13 +00:00
simonb 085b99e6c5 Reduce upstream diffs. 2023-10-06 07:05:59 +00:00
simonb 3ffde58357 Reduce upstream diffs. 2023-10-06 06:25:22 +00:00
simonb 9f87808a51 Tweaks. 2023-10-06 06:05:07 +00:00
simonb 88994fbd25 Note update to less-643. 2023-10-06 06:03:52 +00:00
simonb fc2769974b Clean up fluffed cvs import :/. 2023-10-06 05:59:49 +00:00
simonb 3b7a046f2e Many tweaks to 10-year-old script cherry-picking from many other
foo2netbsd scripts.
2023-10-06 05:58:21 +00:00
simonb 8772e2fde6 Handle new /include/ dir for defines.h, add extra .c files for less, lesskey. 2023-10-06 05:57:16 +00:00
simonb 796d7cc2ca Updated autoconf generated files for less-643. 2023-10-06 05:54:41 +00:00
simonb 838f578846 Resolve conflicts from less-643 import. 2023-10-06 05:49:49 +00:00