Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm64 disasm crc32 tests #6

Closed
wants to merge 63 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
1b91d63
ssh: fix OpenSSH 9.4 regression with multiplexed sessions
emaste Aug 20, 2023
ed3fb74
share/mk/bsd.cpu.mk: Add AMD Zen 4 for x86
Aug 20, 2023
0dc52b7
libc: export pthread_getname_np stub
fel1x-developer Aug 14, 2023
89e17c6
libc/gen/_pthread_stubs.c: Remove stray whitespaces
kostikbel Aug 20, 2023
adff403
LinuxKPI: 802.11: update compat code for updated drivers
May 16, 2023
734e82f
ath10k: specifically mark a debug workaround for an early firmware crash
May 17, 2023
eb50aa6
ath1xk_common: update common athk files from upstream
May 20, 2023
07724ba
ath10k: update driver from upstream
May 20, 2023
28348ca
ath11k: update driver from upstream
May 20, 2023
5c1def8
ath12k: import driver from upstream
Jun 11, 2023
cbb3ec2
mt76: update driver from upstream
May 23, 2023
e234027
rtw89: update driver from upstream
May 16, 2023
42e70f4
PMC_OP_CONFIGURELOG: cleanup logging process if aborting due to pm_flags
kostikbel Aug 20, 2023
9642d94
pf: reduce indentation
TuxPowered42 Aug 21, 2023
92d4152
pf: enable the syncookie feature for IPv6
TuxPowered42 Aug 21, 2023
1fd8c84
pf tests: test syncookies on IPv6
kprovost Aug 21, 2023
3c872a7
hwpmc: on process exit, ensure that the owned log is closed
kostikbel Aug 13, 2023
6bb7f05
rtld_malloc.c: change return type of cp2op() to void
kostikbel Jul 30, 2023
d60130b
rtld_malloc: increase overhead index to uint16
kostikbel Jul 25, 2023
c29ee08
rtld_malloc: add __crt_aligned_alloc_offset()
kostikbel Jul 22, 2023
feaae6b
rtld: switch from malloc_aligned() to __crt_aligned_alloc()
kostikbel Jul 30, 2023
2c135a2
e6000sw: support building without FDT
loos-br Aug 21, 2023
3b7ffac
pctrie: change for vm_radix compatibility
Aug 21, 2023
9b3517a
Import unifdef 2.11
dag-erling Aug 21, 2023
2b7d40e
Import unifdef 2.12
dag-erling Aug 21, 2023
0da4488
Add missing version.h.
dag-erling Aug 21, 2023
fb3ef04
Add 'contrib/unifdef/' from commit '0da44885831dc0a43c4ca6ff04a243099…
dag-erling Aug 21, 2023
343b776
unifdef: Reapply our 61287be18189.
dag-erling Aug 21, 2023
049b760
unifdef: Reapply our 7102ec5226e5.
dag-erling Aug 21, 2023
7addfaf
unifdef: Vendorize.
dag-erling Aug 21, 2023
9fbea87
lib/libc/amd64/string/stpcpy.S: add baseline implementation
clausecker Jul 5, 2023
245fee9
share/man/man7/simd.7: document SIMD-enhanced stpcpy()
clausecker Jul 7, 2023
8803f01
lib/libc/amd64/string/memcmp.S: add baseline implementation
clausecker Jul 12, 2023
b404e03
share/man/man7/simd.7: document new amd64 memcmp/bcmp baseline routines
clausecker Jul 14, 2023
4258eb5
x86: handle domains with no CPUs usable for intr delivery
emaste Aug 18, 2023
b376ef3
Update freebsd-yeet for mfc
bsdimp Aug 22, 2023
682d5a8
Delete trailing whitespace from $FreeBSD$ removal
bsdimp Aug 22, 2023
7ccaf76
riscv db_trace: Ensure trapframe pointer is suitably aligned.
bsdjhb Aug 22, 2023
834f73d
build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools…
bsdjhb Aug 22, 2023
7a56f5a
libcrypto: Don't embed $FreeBSD$ in generated assembly files
bsdjhb Aug 22, 2023
f3cac6c
libcrypto: Add new assembly files added in OpenSSL 3.0.
bsdjhb Aug 22, 2023
74d73bb
libcrypto: Generate new files added in OpenSSL 3.0.
bsdjhb Aug 22, 2023
3250c9d
libcrypto: Update assembly build glue for x86 for OpenSSL 3.0.
bsdjhb Aug 22, 2023
6f7e977
bhyve: add config option to load ACPI tables into memory
ckoehne Jul 27, 2022
4d004cc
Document strnstr()'s history.
Aug 22, 2023
c941b82
geom_linux_lvm: Check the offset of physical volume header
gmshake Aug 22, 2023
3b4da25
tools/build/make.py: Make flake8 clean
jrtc27 Aug 22, 2023
5157b45
tools/build/make.py: Grow the list of MI targets
jrtc27 Aug 22, 2023
9d6049d
etc: remove leftover leading empty comments, blank lines
Aug 22, 2023
949491f
if_ovpn: clear mbuf flags on rx
kprovost Aug 22, 2023
8c6104c
tcp_fill_info(): Change lock assertion on INPCB to locked only
sparcplug Aug 22, 2023
dc485b9
tcp_info: Add and export more FreeBSD-specific fields
sparcplug Aug 22, 2023
968a3db
kbdcontrol: Support building as a bootstrap tool on old and non-FreeBSD
jrtc27 Aug 22, 2023
c9b2751
arm: Add missing no-ctfconvert for fw_stub.awk target
jrtc27 Aug 22, 2023
4101bcf
libzstd: Explicitly define ZSTD_DISABLE_ASM
jrtc27 Aug 22, 2023
80e9ea4
Makefile.asm: Drop mention of $FreeBSD$ from instructions.
bsdjhb Aug 22, 2023
c7f73a1
ofed: mask seq_num identifier to occupy only 3 bytes
bsobczak Aug 22, 2023
8882b78
add pmap_active_cpus()
kostikbel Oct 7, 2021
74ccb8e
Add cpu_sync_core()
kostikbel Oct 7, 2021
4a69fc1
Add membarrier(2)
kostikbel Oct 7, 2021
c7df872
Regen
kostikbel Aug 22, 2023
ce63873
type01 add tests
toor1245 Aug 15, 2023
01a4693
update crc32 to type06
toor1245 Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -2384,15 +2384,11 @@ _bootstrap_tools_links+=crunchgen
# The ATKBD_DFLT_KEYMAP, UKBD_DFLT_KEYMAP and KBDMUX_DFLT_KEYMAP kernel options
# require kbdcontrol. Note that, even on FreeBSD, the host will lack kbdcontrol
# if built with WITHOUT_LEGACY_CONSOLE.
#
# XXX: kbdcontrol cannot currently be bootstrapped on non-FreeBSD systems
.if !defined(CROSSBUILD_HOST)
.if defined(BOOTSTRAP_ALL_TOOLS) || !exists(/usr/sbin/kbdcontrol)
_kbdcontrol= usr.sbin/kbdcontrol
.else
_bootstrap_tools_links+=kbdcontrol
.endif
.endif

.if ${MK_DISK_IMAGE_TOOLS_BOOTSTRAP} != "no"
_etdump= usr.bin/etdump
Expand Down
1 change: 1 addition & 0 deletions Makefile.libcompat
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ build${libcompat}: .PHONY
DESTDIR= \
OBJTOP=${LIB${_LIBCOMPAT}_OBJTOP} \
OBJROOT='$${OBJTOP}/' \
UNIVERSE_TOOLCHAIN_PATH=${UNIVERSE_TOOLCHAIN_PATH} \
MAKEOBJDIRPREFIX= \
-DNO_LINT \
-DNO_CPU_CFLAGS \
Expand Down
7 changes: 7 additions & 0 deletions contrib/unifdef/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Changelog
unifdef
unifdef.exe
unifdef.txt
unifdef-*
version.h
version.sh
59 changes: 59 additions & 0 deletions contrib/unifdef/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
language: c

sudo: false

os:
- linux
- osx

compiler:
- gcc
- clang

matrix:
include:
## Ubuntu 14.04 Trusty (beta), sudo required!
- os: linux
dist: trusty
sudo: required
compiler: gcc
env: TRUSTY="yes"
- os: linux
dist: trusty
sudo: required
compiler: clang
env: TRUSTY="yes"
## MinGW / wine
- os: linux
sudo: required
compiler: i586-mingw32msvc-gcc
env: BUILD_MINGW="yes"
allow_failures:
- compiler: i586-mingw32msvc-gcc

install:
- env | grep -v "encrypted" | LC_ALL=C sort
- if test "${BUILD_MINGW}" = "yes"; then
sudo apt-get -qq update &&
sudo apt-get -qq install wine;
fi

script:
- if test "${BUILD_MINGW}" != "yes"; then
make &&
make test &&
make release;
else
export CC=i586-mingw32msvc-gcc;
echo -e '#!/bin/bash\nexec wine $0.exe "$@"' > unifdef;
chmod ugo+x unifdef;
make version.h &&
make -f win32/Makefile.mingw test;
fi

branches:
only:
- master
- next
- /^travis.*/
- /^tmp.*/
85 changes: 85 additions & 0 deletions contrib/unifdef/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
unifdef copyright licence
-------------------------

All files in this package are distributed under the two-clause BSD
copyright licence, except for the manual page unifdef.1 and the
portability support code in the FreeBSD subdirectory, which all have
a three-clause BSD copyright licence.

Unifdef was derived from software contributed to Berkeley by Dave
Yost. It was rewritten to support ANSI C by Tony Finch. The original
version of unifdef.c carried the four-clause BSD copyright licence.
None of its code remains in this version (though some of the names
remain) so it now carries the more liberal two-clause licence.

Unless otherwise stated, the files in this package are:

Copyright (c) 2002 - 2020 Tony Finch <dot@dotat.at>

unifdefall.sh is:

Copyright (c) 2002 - 2013 Tony Finch <dot@dotat.at>
Copyright (c) 2009 - 2010 Jonathan Nieder <jrnieder@gmail.com>

Some files in the tests directory are:

Copyright 2004, 2008 Bob Proulx <bob@proulx.com>

The two-clause BSD copyright licence applying to all the above files is:

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

The three-clause BSD copyright licence for the manual page unifdef.1
and the portability support code from FreeBSD is below. The fourth
advertising clause that used to appear between clauses 2 and 3 was
rescinded by the University of California Berkeley in 1999.
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Copyright (c) 1985 - 1994
The Regents of the University of California. All rights reserved.
Copyright (c) 2002 - 2012 Tony Finch <dot@dotat.at>. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

- end -
138 changes: 138 additions & 0 deletions contrib/unifdef/FreeBSD/err.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/

#include "unifdef.h"

void
err(int eval, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
verrc(eval, errno, fmt, ap);
va_end(ap);
}

void
verr(int eval, const char *fmt, va_list ap)
{
verrc(eval, errno, fmt, ap);
}

void
errc(int eval, int code, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
verrc(eval, code, fmt, ap);
va_end(ap);
}

void
verrc(int eval, int code, const char *fmt, va_list ap)
{
fprintf(stderr, "%s: ", _getprogname());
if (fmt != NULL) {
vfprintf(stderr, fmt, ap);
fprintf(stderr, ": ");
}
fprintf(stderr, "%s\n", strerror(code));
exit(eval);
}

void
errx(int eval, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
verrx(eval, fmt, ap);
va_end(ap);
}

void
verrx(int eval, const char *fmt, va_list ap)
{
fprintf(stderr, "%s: ", _getprogname());
if (fmt != NULL)
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
exit(eval);
}

void
warn(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vwarnc(errno, fmt, ap);
va_end(ap);
}

void
vwarn(const char *fmt, va_list ap)
{
vwarnc(errno, fmt, ap);
}

void
warnc(int code, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vwarnc(code, fmt, ap);
va_end(ap);
}

void
vwarnc(int code, const char *fmt, va_list ap)
{
fprintf(stderr, "%s: ", _getprogname());
if (fmt != NULL) {
vfprintf(stderr, fmt, ap);
fprintf(stderr, ": ");
}
fprintf(stderr, "%s\n", strerror(code));
}

void
warnx(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vwarnx(fmt, ap);
va_end(ap);
}

void
vwarnx(const char *fmt, va_list ap)
{
fprintf(stderr, "%s: ", _getprogname());
if (fmt != NULL)
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
}
Loading