message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
fix tokens array size
Compiler warns about "excess elements in array initializer"
Fix this by setting the correct size of the array | @@ -25,8 +25,8 @@ typedef struct tokenDefinition_t {
#define NUM_TOKENS_AKROMA 0
#define NUM_TOKENS_ELLAISM 1
-#define NUM_TOKENS_ETHEREUM 1073
-#define NUM_TOKENS_ETHEREUM_CLASSIC 0
+#define NUM_TOKENS_ETHEREUM 1102
+#define NUM_TOKENS_ETHEREUM_CLASSIC 4
#define NUM_TOKENS_ETHERSOCIAL 0
#define NUM_TOKENS_ETHER1 0
#define NUM_TOKENS_PIRL 0
|
Add missing env_rwsem_up_write() in ocf_cleaner_run() | @@ -138,6 +138,7 @@ void ocf_cleaner_run(ocf_cleaner_t cleaner, ocf_queue_t queue)
}
if (_ocf_cleaner_run_check_dirty_inactive(cache)) {
+ env_rwsem_up_write(&cache->lock);
cleaner->end(cleaner, SLEEP_TIME_MS);
return;
}
|
fix: add the flag to suppress unused warning for gcc | @@ -70,8 +70,8 @@ else ifeq ($(CC),stensal-c)
else ifeq ($(CC),sfc)
LIBDISCORD_LDFLAGS += -lcurl-bearssl -lbearssl -static
CFLAGS += -DBEARSSL
- #LIBDISCORD_LDFLAGS += -lcurl-ssl -lssl -lcrypto -lm -static
else
+ CFLAGS += -Wno-unused-but-set-variable
LIBDISCORD_LDFLAGS += $(pkg-config --libs --cflags libcurl) -lcurl -lcrypto -lm
endif
|
grid: run tsc as test | "serve": "vite preview",
"lint": "eslint --cache \"**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "npm run lint -- --fix",
- "test": "echo \"No test yet\"",
+ "test": "tsc --noEmit",
"tsc": "tsc --noEmit"
},
"dependencies": {
|
Fix memleaks in tcp test | @@ -218,15 +218,6 @@ static coroutine void async_accept_routine(int listen_fd, int ch) {
errno_assert(rc == 0);
}
-static int async_accept(int listen_fd) {
- int ch[2];
- int rc = chmake(ch);
- errno_assert(rc == 0);
- int h = go(async_accept_routine(listen_fd, ch[0]));
- errno_assert(h >= 0);
- return ch[1];
-}
-
static int tcp_socketpair(int fd[2]) {
struct ipaddr server_addr;
@@ -237,18 +228,25 @@ static int tcp_socketpair(int fd[2]) {
int port = ipaddr_port(&server_addr);
assert(port > 0);
- int accept_done_ch = async_accept(listen_fd);
- assert(accept_done_ch != -1);
+ int ch[2];
+ rc = chmake(ch);
+ errno_assert(rc == 0);
+ int h = go(async_accept_routine(listen_fd, ch[0]));
+ errno_assert(h >= 0);
int client_fd = tcp_connect(&server_addr, now() + 1000);
- assert(client_fd != -1);
+ errno_assert(client_fd >= 0);
int server_fd;
- rc = chrecv(accept_done_ch, &server_fd, sizeof(server_fd), -1);
- assert(rc == 0);
+ rc = chrecv(ch[1], &server_fd, sizeof(server_fd), -1);
+ errno_assert(rc == 0);
assert(server_fd != -1);
- hclose(listen_fd);
- hclose(accept_done_ch);
+ rc = hclose(h);
+ errno_assert(rc == 0);
+ rc = hclose(ch[1]);
+ errno_assert(rc == 0);
+ rc = hclose(listen_fd);
+ errno_assert(rc == 0);
fd[0] = client_fd;
fd[1] = server_fd;
|
mpi-families/mvapich2: update buildrequires for IB to support sles12sp4 | @@ -58,15 +58,14 @@ Conflicts: %{pname}-%{compiler_family}%{PROJ_DELIM}
%if 0%{?sles_version} || 0%{?suse_version}
Buildrequires: ofed
+BuildRequires: rdma-core-devel infiniband-diags-devel
%endif
%if 0%{?rhel}
-Buildrequires: rdma-core-devel
+Buildrequires: rdma-core-devel libibmad-devel
%endif
Requires: prun%{PROJ_DELIM}
-
BuildRequires: bison
-BuildRequires: libibmad-devel
BuildRequires: zlib-devel
# Default library install path
|
adding libc sigdelset and sigismember | @@ -1516,7 +1516,7 @@ GO(sigaddset, iFpi)
GOW(sigaltstack, iFpp)
// sigandset
// sigblock // Weak
-// sigdelset
+GO(sigdelset, iFpi)
// __sigdelset
GO(sigemptyset, iFp)
GO(sigfillset, iFp)
@@ -1525,7 +1525,7 @@ GO(sigfillset, iFp)
// sigignore
// siginterrupt
// sigisemptyset
-// sigismember
+GO(sigismember, iFpi)
// __sigismember
GOM(siglongjmp, pFEip)
GOM(signal, pFEip) // Weak
|
zephyr/Makefile: Proxy ram_report, rom_report targets from Zephyr. | @@ -62,7 +62,8 @@ CFLAGS = $(Z_CFLAGS) \
include $(TOP)/py/mkrules.mk
-GENERIC_TARGETS = all zephyr run qemu qemugdb flash debug debugserver
+GENERIC_TARGETS = all zephyr run qemu qemugdb flash debug debugserver \
+ ram_report rom_report
KCONFIG_TARGETS = \
initconfig config nconfig menuconfig xconfig gconfig \
oldconfig silentoldconfig defconfig savedefconfig \
|
BIO_f_ssl.pod: Make clear where an SSL BIOs are expected as an argument | @@ -54,26 +54,26 @@ The SSL BIO is then reset to the initial accept or connect state.
If the close flag is set when an SSL BIO is freed then the internal
SSL structure is also freed using SSL_free().
-BIO_set_ssl() sets the internal SSL pointer of BIO B<b> to B<ssl> using
+BIO_set_ssl() sets the internal SSL pointer of SSL BIO B<b> to B<ssl> using
the close flag B<c>.
-BIO_get_ssl() retrieves the SSL pointer of BIO B<b>, it can then be
+BIO_get_ssl() retrieves the SSL pointer of SSL BIO B<b>, it can then be
manipulated using the standard SSL library functions.
BIO_set_ssl_mode() sets the SSL BIO mode to B<client>. If B<client>
is 1 client mode is set. If B<client> is 0 server mode is set.
-BIO_set_ssl_renegotiate_bytes() sets the renegotiate byte count
+BIO_set_ssl_renegotiate_bytes() sets the renegotiate byte count of SSL BIO B<b>
to B<num>. When set after every B<num> bytes of I/O (read and write)
the SSL session is automatically renegotiated. B<num> must be at
least 512 bytes.
-BIO_set_ssl_renegotiate_timeout() sets the renegotiate timeout to
-B<seconds>. When the renegotiate timeout elapses the session is
-automatically renegotiated.
+BIO_set_ssl_renegotiate_timeout() sets the renegotiate timeout of SSL BIO B<b>
+to B<seconds>.
+When the renegotiate timeout elapses the session is automatically renegotiated.
BIO_get_num_renegotiates() returns the total number of session
-renegotiations due to I/O or timeout.
+renegotiations due to I/O or timeout of SSL BIO B<b>.
BIO_new_ssl() allocates an SSL BIO using SSL_CTX B<ctx> and using
client mode if B<client> is non zero.
@@ -82,8 +82,7 @@ BIO_new_ssl_connect() creates a new BIO chain consisting of an
SSL BIO (using B<ctx>) followed by a connect BIO.
BIO_new_buffer_ssl_connect() creates a new BIO chain consisting
-of a buffering BIO, an SSL BIO (using B<ctx>) and a connect
-BIO.
+of a buffering BIO, an SSL BIO (using B<ctx>), and a connect BIO.
BIO_ssl_copy_session_id() copies an SSL session id between
BIO chains B<from> and B<to>. It does this by locating the
@@ -96,7 +95,7 @@ chain and calling SSL_shutdown() on its internal SSL
pointer.
BIO_do_handshake() attempts to complete an SSL handshake on the
--supplied BIO and establish the SSL connection.
+supplied BIO and establish the SSL connection.
For non-SSL BIOs the connection is done typically at TCP level.
If domain name resolution yields multiple IP addresses all of them are tried
after connect() failures.
|
KDB List-Tools: Update man page | .\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "KDB\-LIST\-TOOLS" "1" "December 2017" "" ""
+.TH "KDB\-LIST\-TOOLS" "1" "May 2019" "" ""
.
.SH "NAME"
\fBkdb\-list\-tools\fR \- List all external tools available to Elektra
\fBkdb list\-tools\fR
.
.SH "DESCRIPTION"
-This command lists all the externel tools that are available to Elektra\. In the first line it prints where external tools are located\.
+This command lists all the external tools that are available to Elektra\. In the first line it prints where external tools are located\.
.
.P
The tool itself is extern\.
|
Forbid DEPENDENCY_MANAGEMENT on modules whuch do not support it
Some code in arcadia adds DEPENDENCY_MANAGEMENT and EXCLUDE macroses to PROTO_LIBRARY. Those macroses are silently ignored before. This commit restrict use of them to modules supporting dependency management of their peers. | @@ -749,7 +749,7 @@ module _BASE_UNIT {
.IGNORED=GO_PROTO_PLUGIN
.NODE_TYPE=Bundle
.PEERDIR_POLICY=as_include
- .RESTRICTED=GRPC INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE PRIMARY_OUTPUT SECONDARY_OUTPUT
+ .RESTRICTED=GRPC INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE PRIMARY_OUTPUT SECONDARY_OUTPUT DEPENDENCY_MANAGEMENT EXCLUDE
.FINAL_TARGET=no
PEERDIR_TAGS=CPP_PROTO CPP_IDL PY2 PY2_NATIVE YQL_UDF_STATIC __EMPTY__
@@ -3008,6 +3008,7 @@ macro WITH_JDK() {
module _JAVA_PLACEHOLDER: _BASE_UNIT {
.CMD=TOUCH_JAVA_UNIT
.FINAL_TARGET=yes
+ .ALLOWED=DEPENDENCY_MANAGEMENT EXCLUDE
# HAS_MANAGEABLE_PEERS=yes TODO(svidyuk) fix all configure errors from ymake DEPENDENCY_MANAGEMENT support
PEERDIR_TAGS=JAVA_PROTO JAVA_IDL
PEERDIR(build/platform/java/jdk)
|
[mod_openssl] wolfSSL does not support SSLv2 | #include "sys-crypto.h"
-#ifdef HAVE_WOLFSSL_SSL_H
-#include <openssl/bio.h>
-#include <openssl/objects.h>
-#include <openssl/pem.h>
-#ifdef NO_OLD_SSL_NAMES
-#define SSL_OP_NO_SSLv2 WOLFSSL_OP_NO_SSLv2
-#endif
-#endif
-
#include <openssl/ssl.h>
+#include <openssl/bio.h>
#include <openssl/bn.h>
#include <openssl/err.h>
+#include <openssl/objects.h>
+#include <openssl/pem.h>
#include <openssl/rand.h>
#ifndef OPENSSL_NO_DH
#include <openssl/dh.h>
@@ -747,6 +741,7 @@ network_init_ssl (server *srv, void *p_d)
SSL_CTX_set_options(s->ssl_ctx, ssloptions);
SSL_CTX_set_info_callback(s->ssl_ctx, ssl_info_callback);
+ #ifndef HAVE_WOLFSSL_SSL_H /*(wolfSSL does not support SSLv2)*/
if (!s->ssl_use_sslv2 && 0 != SSL_OP_NO_SSLv2) {
/* disable SSLv2 */
if ((SSL_OP_NO_SSLv2
@@ -757,6 +752,7 @@ network_init_ssl (server *srv, void *p_d)
return -1;
}
}
+ #endif
if (!s->ssl_use_sslv3 && 0 != SSL_OP_NO_SSLv3) {
/* disable SSLv3 */
|
Free daemon struct in all telnetd_daemon error path | @@ -151,9 +151,8 @@ static int telnetd_daemon(int argc, FAR char *argv[])
sa.sa_flags = SA_NOCLDWAIT;
if (sigaction(SIGCHLD, &sa, NULL) < 0)
{
- int errval = errno;
- nerr("ERROR: sigaction failed: %d\n", errval);
- return -errval;
+ nerr("ERROR: sigaction failed: %d\n", errno);
+ goto errout_with_daemon;
}
/* Block receipt of the SIGCHLD signal */
@@ -162,9 +161,8 @@ static int telnetd_daemon(int argc, FAR char *argv[])
sigaddset(&blockset, SIGCHLD);
if (sigprocmask(SIG_BLOCK, &blockset, NULL) < 0)
{
- int errval = errno;
- nerr("ERROR: sigprocmask failed: %d\n", errval);
- return -errval;
+ nerr("ERROR: sigprocmask failed: %d\n", errno);
+ goto errout_with_daemon;
}
#endif /* CONFIG_SCHED_HAVE_PARENT */
@@ -173,10 +171,9 @@ static int telnetd_daemon(int argc, FAR char *argv[])
listensd = socket(daemon->family, SOCK_STREAM, 0);
if (listensd < 0)
{
- int errval = errno;
nerr("ERROR: socket() failed for family %u: %d\n",
- daemon->family, errval);
- return -errval;
+ daemon->family, errno);
+ goto errout_with_daemon;
}
/* Set socket to reuse address */
@@ -348,6 +345,7 @@ errout_with_acceptsd:
errout_with_socket:
close(listensd);
+errout_with_daemon:
free(daemon);
return 1;
}
|
dev-tools/cmake: bump to v3.12.2 | %define pname cmake
%define major_version 3.12
-%define minor_version 1
+%define minor_version 2
Summary: CMake is an open-source, cross-platform family of tools designed to build, test and package software.
Name: %{pname}%{PROJ_DELIM}
|
heap: increase the sl to reduce the fragmentation to acceptable level. | @@ -53,7 +53,7 @@ enum tlsf_config
** values require more memory in the control structure. Values of
** 4 or 5 are typical.
*/
- SL_INDEX_COUNT_LOG2 = 3,
+ SL_INDEX_COUNT_LOG2 = 5,
/* All allocation sizes and addresses are aligned to 4 bytes. */
ALIGN_SIZE_LOG2 = 2,
@@ -77,6 +77,14 @@ enum tlsf_config
FL_INDEX_MAX = 18, //Each pool can have up 256KB
#elif (TLSF_MAX_POOL_SIZE <= (512 * 1024))
FL_INDEX_MAX = 19, //Each pool can have up 512KB
+ #elif (TLSF_MAX_POOL_SIZE <= (1 * 1024 * 1024))
+ FL_INDEX_MAX = 20, //Each pool can have up 1MB
+ #elif (TLSF_MAX_POOL_SIZE <= (2 * 1024 * 1024))
+ FL_INDEX_MAX = 21, //Each pool can have up 2MB
+ #elif (TLSF_MAX_POOL_SIZE <= (4 * 1024 * 1024))
+ FL_INDEX_MAX = 22, //Each pool can have up 4MB
+ #elif (TLSF_MAX_POOL_SIZE <= (8 * 1024 * 1024))
+ FL_INDEX_MAX = 23, //Each pool can have up 8MB
#elif (TLSF_MAX_POOL_SIZE <= (16 * 1024 * 1024))
FL_INDEX_MAX = 24, //Each pool can have up 16MB
#else
|
Add missing divider flag | @@ -2475,7 +2475,7 @@ BOOLEAN DevicesTabPageCallback(
hwnd = CreateWindow(
PH_TREENEW_CLASSNAME,
NULL,
- WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | TN_STYLE_ICONS | TN_STYLE_DOUBLE_BUFFERED | thinRows | treelistBorder | treelistCustomColors,
+ WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | TN_STYLE_ICONS | TN_STYLE_DOUBLE_BUFFERED | TN_STYLE_ANIMATE_DIVIDER | thinRows | treelistBorder | treelistCustomColors,
0,
0,
3,
|
LuaJIT: Fix WITH_AMALG option failing during parallel builds
Addresses the "'fold_hash' undeclared" compile errors in
See also | @@ -306,6 +306,15 @@ IF(WIN32)
ELSE()
IF(WITH_AMALG)
add_executable(luajit ${LUAJIT_DIR}/src/luajit.c ${LUAJIT_DIR}/src/ljamalg.c ${DEPS})
+ # When using WITH_AMALG during a parallel build, its possible to run into
+ # false-positive "error: 'fold_hash' undeclared" compile errors due to a weird interaction
+ # when building two ljamalg.c at the same time.
+ #
+ # This adds a fake dependency from one to the other, forcing the build process to
+ # compile them sequentially rather than parallel.
+ #
+ # See https://github.com/torch/luajit-rocks/issues/39
+ add_dependencies(luajit luajit-5.1)
ELSE()
add_executable(luajit ${LUAJIT_DIR}/src/luajit.c ${SRC_LJCORE} ${DEPS})
ENDIF()
|
Disable stdout/stderr buffering on Windows
In MSYS2 on Windows, the output is buffered by default. Disable
buffering to print output immediately.
Note that in cmd.exe, it still prints nothing. | @@ -233,6 +233,12 @@ static SDL_bool parse_args(struct args *args, int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
+#ifdef __WINDOWS__
+ // disable buffering, we want logs immediately
+ // even line buffering (setvbuf() with mode _IOLBF) is not sufficient
+ setbuf(stdout, NULL);
+ setbuf(stderr, NULL);
+#endif
struct args args = {
.serial = NULL,
.help = SDL_FALSE,
|
[ci] Add GCC as a dependency for Verilator
Since the bootrom might be regenerated, we might need gcc even to build
verilator. | @@ -102,6 +102,7 @@ verilator_model:
- |
if ! $CI_PROJECT_DIR/.gitlab-ci.d/memora_retry.sh lookup verilator_model; then
# Download Verilator and add missing links
+ $CI_PROJECT_DIR/.gitlab-ci.d/memora_retry.sh get tc-riscv-gcc
$CI_PROJECT_DIR/.gitlab-ci.d/memora_retry.sh get verilator
ln -s $VERILATOR_ROOT/share/verilator/include $VERILATOR_ROOT/include
ln -s $VERILATOR_ROOT/share/verilator/bin/verilator_includer $VERILATOR_ROOT/bin/verilator_includer
|
[mod_openssl] default disable client renegotiation | @@ -2605,6 +2605,8 @@ mod_openssl_set_defaults_sockets(server *srv, plugin_data *p)
conf.ssl_verifyclient_enforce = p->defaults.ssl_verifyclient_enforce;
conf.ssl_verifyclient_depth = p->defaults.ssl_verifyclient_depth;
conf.ssl_read_ahead = p->defaults.ssl_read_ahead;
+ conf.ssl_disable_client_renegotiation
+ = p->defaults.ssl_disable_client_renegotiation;
int sidx = ps->cvlist[i].k_id;
for (int j = !p->cvlist[0].v.u2[1]; j < p->nconfig; ++j) {
|
ble_mesh: add error checks for scan start/stop | * SPDX-License-Identifier: Apache-2.0
*/
+#include <stdint.h>
+#include <errno.h>
+
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "freertos/task.h"
@@ -387,6 +390,8 @@ void bt_mesh_adv_init(void)
int bt_mesh_scan_enable(void)
{
+ int err;
+
struct bt_mesh_scan_param scan_param = {
.type = BLE_MESH_SCAN_PASSIVE,
#if defined(CONFIG_BLE_MESH_USE_DUPLICATE_SCAN)
@@ -400,12 +405,26 @@ int bt_mesh_scan_enable(void)
BT_DBG("%s", __func__);
- return bt_le_scan_start(&scan_param, bt_mesh_scan_cb);
+ err = bt_le_scan_start(&scan_param, bt_mesh_scan_cb);
+ if (err && err != -EALREADY) {
+ BT_ERR("starting scan failed (err %d)", err);
+ return err;
+ }
+
+ return 0;
}
int bt_mesh_scan_disable(void)
{
+ int err;
+
BT_DBG("%s", __func__);
- return bt_le_scan_stop();
+ err = bt_le_scan_stop();
+ if (err && err != -EALREADY) {
+ BT_ERR("stopping scan failed (err %d)", err);
+ return err;
+ }
+
+ return 0;
}
|
mesh: Fix clang uninitialized var warning
There's a BT_DBG that will output the value of pub_addr before its ever
set to anything. Remove output of pub_addr from BT_DBG(). | @@ -1299,8 +1299,7 @@ static void mod_pub_va_set(struct bt_mesh_model *model,
retransmit = net_buf_simple_pull_u8(buf);
mod_id = buf->om_data;
- BT_DBG("elem_addr 0x%04x pub_addr 0x%04x cred_flag %u",
- elem_addr, pub_addr, cred_flag);
+ BT_DBG("elem_addr 0x%04x cred_flag %u", elem_addr, cred_flag);
BT_DBG("pub_app_idx 0x%03x, pub_ttl %u pub_period 0x%02x",
pub_app_idx, pub_ttl, pub_period);
BT_DBG("retransmit 0x%02x (count %u interval %ums)", retransmit,
|
uart_console: console_queue_char() should chk if device is open | @@ -89,6 +89,10 @@ console_queue_char(struct uart_dev *uart_dev, uint8_t ch)
{
int sr;
+ if ((uart_dev->ud_dev->od_flags & OS_DEV_F_STATUS_OPEN) == 0) {
+ return;
+ }
+
OS_ENTER_CRITICAL(sr);
while (console_ring_is_full(&cr_tx)) {
/* TX needs to drain */
|
web ui: remove debug logs | @@ -79,11 +79,9 @@ export default class SettingsDialog extends Component {
}
ensureDefaultValue = (defaultStr) => {
- console.log('ensure default', defaultStr)
const { meta } = this.props
if (defaultStr) {
const err = validateType(meta, defaultStr)
- console.log('err', err)
if (err) {
return this.setState({ defaultError: err, defaultStr })
}
|
Whitelist cppcms links
Their website has been unreachable for a whole day and it is unknown
when it will be back online. | @@ -13,3 +13,9 @@ https://webdemo.libelektra.org
https://debian-stretch-repo.libelektra.org
https://crates.io/crates/elektra
https://crates.io/crates/elektra-sys
+
+# cppcms website has been down for quite a while for unknown reasons
+http://cppcms.com
+http://cppcms.com/wikipp/en/page/apt
+http://cppcms.com/wikipp/en/page/cppcms_1x_config
+http://cppcms.com/wikipp/en/page/cppcms_1x_build
|
[CUDA] Fix result of CL_DEVICE_MEM_BASE_ADDR_ALIGN query
The CUDA programming guide states that all memory allocations are
aligned to at least 256 bytes. | @@ -213,6 +213,7 @@ pocl_cuda_init (unsigned j, cl_device_id dev, const char *parameters)
dev->max_clock_frequency /= 1000;
}
+ dev->mem_base_addr_align = 2048;
dev->preferred_wg_size_multiple = 32;
dev->preferred_vector_width_char = 1;
dev->preferred_vector_width_short = 1;
|
Fix test_attribute_enum_value() to work for builds | @@ -4798,14 +4798,14 @@ START_TEST(test_attribute_enum_value)
NULL,
NULL
};
+ const XML_Char *expected = XCS("This is a \n \n\nyellow tiger");
XML_SetExternalEntityRefHandler(parser, external_entity_loader);
XML_SetUserData(parser, &dtd_data);
XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS);
/* An attribute list handler provokes a different code path */
XML_SetAttlistDeclHandler(parser, dummy_attlist_decl_handler);
- run_ext_character_check(text, &dtd_data,
- "This is a \n \n\nyellow tiger");
+ run_ext_character_check(text, &dtd_data, expected);
}
END_TEST
|
naive: l2 csv correct tx-data initialization
it seemed to work correctly before, but this makes it more clear that
we're doing the right thing | :: what nonce was actually submitted without the private key of the signer.
::
=| roll-tx-list=(list tx-data)
+ =| =tx-data
=| nonce-and-tx=[_| _|]
- =/ =tx-data :* blocknum.block timestamp.block-dat.block
- sender.roll-dat.roll keccak.roll *keccak *ship
- *proxy:naive *nonce:naive gas.roll-dat.roll *@
- | *action *ship
- ==
|-
=* effect-loop $
+ :: if we are processing a new transaction, initialize the parts of tx-data
+ :: that are identical for every transaction in the roll
+ =? tx-data =([| |] nonce-and-tx)
+ :* blocknum.block timestamp.block-dat.block sender.roll-dat.roll
+ keccak.roll *keccak *ship *proxy:naive *nonce:naive
+ gas.roll-dat.roll *@ | *action *ship
+ ==
:: if we've gotten both the %nonce and %tx diff from a transaction, add the
:: tx-data to the list of tx for the roll
::
?: =([& &] nonce-and-tx)
%= effect-loop
nonce-and-tx [| |]
- tx-data *_tx-data :: reset tx-data
roll-tx-list (snoc roll-tx-list tx-data)
==
:: if we've finished looping through the effects, add the tx list from the
==
::
=/ =diff:naive i.effects.roll-dat.roll
+ :: we ignore %operator, %dns, %point diffs
+ ::
?+ diff
- $(effects.roll-dat.roll t.effects.roll-dat.roll) :: we ignore %operator, %dns, %point diffs
+ $(effects.roll-dat.roll t.effects.roll-dat.roll)
:: %nonce is always the first diff from a given transaction.
::
[%nonce *]
|
proc/msg: Unmap memory, when processing kernel messages
JIRA: | @@ -155,6 +155,7 @@ static void *msg_map(int dir, kmsg_t *kmsg, void *data, size_t size, process_t *
static void msg_release(kmsg_t *kmsg)
{
process_t *process;
+ vm_map_t *map;
if (kmsg->i.bp != NULL) {
vm_pageFree(kmsg->i.bp);
@@ -170,9 +171,13 @@ static void msg_release(kmsg_t *kmsg)
kmsg->i.ep = NULL;
}
- if (kmsg->i.w != NULL) {
if ((process = proc_current()->process) != NULL)
- vm_munmap(process->mapp, kmsg->i.w, CEIL((unsigned long)kmsg->msg.i.data + kmsg->msg.i.size) - FLOOR((unsigned long)kmsg->msg.i.data));
+ map = process->mapp;
+ else
+ map = msg_common.kmap;
+
+ if (kmsg->i.w != NULL) {
+ vm_munmap(map, kmsg->i.w, CEIL((unsigned long)kmsg->msg.i.data + kmsg->msg.i.size) - FLOOR((unsigned long)kmsg->msg.i.data));
kmsg->i.w = NULL;
}
@@ -191,8 +196,7 @@ static void msg_release(kmsg_t *kmsg)
}
if (kmsg->o.w != NULL) {
- if ((process = proc_current()->process) != NULL)
- vm_munmap(process->mapp, kmsg->o.w, CEIL((unsigned long)kmsg->msg.o.data + kmsg->msg.o.size) - FLOOR((unsigned long)kmsg->msg.o.data));
+ vm_munmap(map, kmsg->o.w, CEIL((unsigned long)kmsg->msg.o.data + kmsg->msg.o.size) - FLOOR((unsigned long)kmsg->msg.o.data));
kmsg->o.w = NULL;
}
}
|
Add cgemm and zgemm unroll factors for core2 | @@ -124,6 +124,10 @@ if (DEFINED CORE AND CMAKE_CROSSCOMPILING AND NOT (${HOST_OS} STREQUAL "WINDOWSS
set(SGEMM_UNROLL_N 4)
set(DGEMM_UNROLL_M 4)
set(DGEMM_UNROLL_N 4)
+ set(CGEMM_DEFAULT_UNROLL_M 4)
+ set(CGEMM_DEFAULT_UNROLL_N 2)
+ set(ZGEMM_DEFAULT_UNROLL_M 2)
+ set(ZGEMM_DEFAULT_UNROLL_N 2)
elseif ("${TCORE}" STREQUAL "ARMV7")
file(APPEND ${TARGET_CONF_TEMP}
"#define L1_DATA_SIZE\t65536\n"
|
actually test for something in +test-nack | =^ moves5 alice (call alice ~[/alice] %hear (snag-packet 1 moves3))
=^ moves6 bob (call bob ~[/bob] %hear (snag-packet 0 moves5))
::
- ~
+ %+ expect-eq
+ !> [~[/alice] %give %done `error]
+ !> (snag 1 `(list move:alef)`moves5)
::
++ call
|= [vane=_alice =duct =task:alef]
|
sse4.1: check for SHUFFLE_VECTOR before using it in _mm_cvtepu32_epi64
Fixes | @@ -1020,7 +1020,7 @@ simde_mm_cvtepu32_epi64 (simde__m128i a) {
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
r_.neon_u64 = vmovl_u32(vget_low_u32(a_.neon_u32));
- #elif defined(SIMDE_VECTOR_SCALAR) && (SIMDE_ENDIAN_ORDER == SIMDE_ENDIAN_LITTLE)
+ #elif defined(SIMDE_VECTOR_SCALAR) && defined(SIMDE_SHUFFLE_VECTOR_) && (SIMDE_ENDIAN_ORDER == SIMDE_ENDIAN_LITTLE)
__typeof__(r_.u32) z = { 0, };
r_.i64 = HEDLEY_REINTERPRET_CAST(__typeof__(r_.i64), SIMDE_SHUFFLE_VECTOR_(32, 16, a_.u32, z, 0, 4, 1, 6));
#elif defined(SIMDE_CONVERT_VECTOR_)
|
base qual filter using >= to match previous behaviour | @@ -1572,7 +1572,7 @@ cdef class AlignmentFile(HTSFile):
_start <= refpos < _stop:
# only check base quality if _threshold > 0
- if (_threshold and quality and quality[qpos] > _threshold) or not _threshold:
+ if (_threshold and quality and quality[qpos] >= _threshold) or not _threshold:
if seq[qpos] == 'A':
count_a.data.as_ulongs[refpos - _start] += 1
if seq[qpos] == 'C':
|
acrn-config: print warning if MMIO BAR size above 4G
Currently MMIO BAR size not support size above 4G,
print warning to user to set the MMIO size in 4G region from BIOS.
Target-On:
Acked-by: Victor Sun | @@ -14,6 +14,18 @@ PCI_END_HEADER = r"""
#endif /* PCI_DEVICES_H_ */"""
+def get_value_after_str(line, key):
+ """ Get the value after cstate string """
+ idx = 0
+ line_in_list = line.split()
+ for idx_key, val in enumerate(line_in_list):
+ if val == key:
+ idx = idx_key
+ break
+
+ return line_in_list[idx + 1]
+
+
def parser_pci():
""" Parse PCI lines """
cur_bdf = 0
@@ -21,7 +33,8 @@ def parser_pci():
tmp_bar_dic = {}
pci_dev_dic = {}
pci_bar_dic = {}
- bar_value = bar_num = '0'
+ above_4G_mmio = False
+ bar_addr = bar_num = '0'
pci_lines = board_cfg_lib.get_info(
board_cfg_lib.BOARD_INFO_FILE, "<PCI_DEVICE>", "</PCI_DEVICE>")
@@ -29,8 +42,10 @@ def parser_pci():
# get pci bar information into pci_bar_dic
if "Region" in line and "Memory at" in line:
bar_num = line.split()[1].strip(':')
- bar_value = line.split()[4]
- tmp_bar_dic[int(bar_num)] = hex(int(bar_value, 16))
+ bar_addr = get_value_after_str(line, "at")
+ if int(bar_addr, 16) > 0xffffffff:
+ above_4G_mmio = True
+ tmp_bar_dic[int(bar_num)] = hex(int(bar_addr, 16))
else:
prev_bdf = cur_bdf
pci_bdf = line.split()[0]
@@ -52,6 +67,11 @@ def parser_pci():
# clear the tmp_bar_dic before store the next dic
tmp_bar_dic = {}
+ if above_4G_mmio:
+ board_cfg_lib.print_yel("Currently ACRN does not support BAR size above 4G, please double check below possible items in BIOS:\n\
+ 1. GPU Aperture size is less than 1GB;\n\
+ 2. the device MMIO mapping region is below 4GB", warn=True)
+
# output all the pci device list to pci_device.h
sub_name_count = collections.Counter(pci_dev_dic.values())
|
updated to reflect last change in SGDK | @@ -64,7 +64,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("40 sprites 16x16 (all dynamic)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -103,7 +102,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("40 sprites 16x16 (streamed animation)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -142,7 +140,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("40 sprites 16x16 (preloaded animation)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -195,7 +192,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("80 sprites 16x16 (streamed animation)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -236,7 +232,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("80 sprites 16x16 (preloaded animation)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -289,7 +284,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("40 sprites 32x32 (streamed)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -330,7 +324,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("40 sprites 32x32 (preloaded)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -384,7 +377,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("Donut animation (streamed)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -405,7 +397,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("Donut animation (preloaded)", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
@@ -437,7 +428,6 @@ u16 executeSpritesTest(u16 *scores)
VDP_clearPlane(BG_A, TRUE);
VDP_drawText("Big sprites test...", 1, 2);
SYS_enableInts();
- SYS_doVBlankProcess();
waitMs(5000);
SYS_disableInts();
|
npu2-opencapi: Rename functions used to reset an adapter
This is really to avoid confusion with a later patch and clarify
whether we're resetting the ODL or the adapter. | @@ -814,7 +814,7 @@ static void otl_enabletx(uint32_t gcid, uint32_t scom_base,
/* TODO: Abort if credits are zero */
}
-static void assert_reset(struct npu2_dev *dev)
+static void assert_adapter_reset(struct npu2_dev *dev)
{
uint8_t pin, data;
int rc;
@@ -869,7 +869,7 @@ err:
OCAPIERR(dev, "Error writing I2C reset signal: %d\n", rc);
}
-static void deassert_reset(struct npu2_dev *dev)
+static void deassert_adapter_reset(struct npu2_dev *dev)
{
uint8_t data;
int rc;
@@ -1164,14 +1164,14 @@ static int64_t npu2_opencapi_freset(struct pci_slot *slot)
/* fall-through */
case OCAPI_SLOT_FRESET_INIT:
reset_odl(chip_id, dev);
- assert_reset(dev);
+ assert_adapter_reset(dev);
pci_slot_set_state(slot,
OCAPI_SLOT_FRESET_ASSERT_DELAY);
/* assert for 5ms */
return pci_slot_set_sm_timeout(slot, msecs_to_tb(5));
case OCAPI_SLOT_FRESET_ASSERT_DELAY:
- deassert_reset(dev);
+ deassert_adapter_reset(dev);
pci_slot_set_state(slot,
OCAPI_SLOT_FRESET_DEASSERT_DELAY);
/* give another 5ms to device to be ready */
|
Use mbedtls_rsa_info directly in rsa_decrypt_wrap() | @@ -226,7 +226,6 @@ static int rsa_decrypt_wrap( void *ctx,
mbedtls_pk_context key;
int key_len;
unsigned char buf[MBEDTLS_PK_RSA_PRV_DER_MAX_BYTES];
- mbedtls_pk_info_t pk_info = mbedtls_rsa_info;
((void) f_rng);
((void) p_rng);
@@ -241,7 +240,7 @@ static int rsa_decrypt_wrap( void *ctx,
/* mbedtls_pk_write_key_der() expects a full PK context;
* re-construct one to make it happy */
- key.pk_info = &pk_info;
+ key.pk_info = &mbedtls_rsa_info;
key.pk_ctx = ctx;
key_len = mbedtls_pk_write_key_der( &key, buf, sizeof( buf ) );
if( key_len <= 0 )
|
log_warn => log_warning | @@ -69,7 +69,7 @@ int windows_service_start(void (*func)())
svc_main_func = func;
if (!StartServiceCtrlDispatcher(services)) {
- log_warn("WIN: Can not start service: Error %d", GetLastError());
+ log_warning("WIN: Can not start service: Error %d", GetLastError());
return 1;
} else {
return 0;
@@ -141,7 +141,7 @@ static BOOL WINAPI windows_console_handler(int event)
void windows_signals(void)
{
if (!SetConsoleCtrlHandler((PHANDLER_ROUTINE) windows_console_handler, TRUE)) {
- log_warn("WIN: Cannot set console handler. Error: %d", GetLastError());
+ log_warning("WIN: Cannot set console handler. Error: %d", GetLastError());
}
}
@@ -166,7 +166,7 @@ int windows_exec(const char* cmd)
&si, // Pointer to STARTUPINFO structure
&pi) // Pointer to PROCESS_INFORMATION structure
) {
- log_warn("CreateProcess failed: Error %d", GetLastError());
+ log_warning("CreateProcess failed: Error %d", GetLastError());
return 1;
}
|
[hardware] Download bender only if it doesn't exist | @@ -54,7 +54,7 @@ trace := $(patsubst ${buildpath}/%.dasm,${buildpath}/%.trace,$(wildcard ${buildp
VLOG_ARGS += -suppress vlog-2583 -suppress vlog-13314 -suppress vlog-13233
-build: lib ${buildpath}/${dpi_library}/mempool_dpi.so
+build: bender lib ${buildpath}/${dpi_library}/mempool_dpi.so
./bender script vsim --vlog-arg="$(VLOG_ARGS)" -t rtl -t asic -t mempool_test > ${buildpath}/compile.tcl
echo "exit" >> ${buildpath}/compile.tcl
cd ${buildpath} && $(questa_cmd) vsim -c -do compile.tcl
@@ -79,9 +79,12 @@ ${buildpath}/%.trace: ${buildpath}/%.dasm
# Bender
bender: Makefile
+ @[ -x ./bender ] && echo "Bender already exists." || \
+ (command -v bender >/dev/null 2>&1 && ln -sf $$(command -v bender) ./bender || \
curl --proto '=https' --tlsv1.2 -sSf https://iis-people.ee.ethz.ch/~andkurt/bender-init \
- | sh -s -- 0.13.3
- touch bender
+ | bash -s -- 0.19.0)
+ @touch bender
+ @echo "$$(./bender --version) available."
# DPIs
${buildpath}/${dpi_library}/%.o: tb/dpi/%.cpp
@@ -95,4 +98,4 @@ ${buildpath}/${dpi_library}/mempool_dpi.so: $(dpi)
clean:
rm -rf ${buildpath}
-.PHONY: build lib sim simc clean bender
+.PHONY: build lib sim simc clean
|
Clarify fps_only should not be used without other display params | @@ -353,7 +353,7 @@ Parameters that are enabled by default have to be explicitly disabled. These (cu
| `battery` | Display current battery percent and energy consumption |
| `battery_icon` | Display battery icon instead of percent |
| `battery_color` | Change the BATT text color |
-| `fps_only` | Show FPS without the engine name e.g. DXVK/VULAKAN etc. |
+| `fps_only` | Show FPS only. ***Not meant to be used with other display params*** |
| `gamepad_battery` | Display battey of wireless gamepads (xone,xpadneo,ds4) |
| `gamepad_battery_icon` | Display gamepad battery percent with icon. *enabled by default |
Example: `MANGOHUD_CONFIG=cpu_temp,gpu_temp,position=top-right,height=500,font_size=32`
|
autotest: consolidating source code somewhat | /*
- * Copyright (c) 2007 - 2015 Joseph Gaeddert
+ * Copyright (c) 2007 - 2020 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
#include "autotest/autotest.h"
#include "liquid.internal.h"
-//
-// AUTOTEST : design 2nd-order butterworth filter (design comes
-// from [Ziemer:1998] Example 9-7, pp. 440--442)
-//
+// design 2nd-order butterworth filter (design comes from [Ziemer:1998],
+// Example 9-7, pp. 440--442)
void autotest_iirdes_butter_2()
{
// initialize variables
@@ -76,10 +74,7 @@ void autotest_iirdes_butter_2()
}
}
-//
-// AUTOTEST : complex pair, n=6
-//
-
+// complex pair, n=6
void autotest_iirdes_cplxpair_n6()
{
float tol = 1e-8f;
@@ -128,10 +123,7 @@ void autotest_iirdes_cplxpair_n6()
}
-//
-// AUTOTEST : complex pair, n=20
-//
-
+// complex pair, n=20
void autotest_iirdes_cplxpair_n20()
{
float tol = 1e-8f;
@@ -207,9 +199,7 @@ void autotest_iirdes_cplxpair_n20()
}
}
-//
-// AUTOTEST :
-//
+// digital zeros/poles/gain to second-order sections
void autotest_iirdes_dzpk2sosf()
{
unsigned int n=4;
@@ -257,9 +247,7 @@ void autotest_iirdes_dzpk2sosf()
}
}
-//
-// AUTOTEST : iirdes_isstable
-//
+// iirdes_isstable
void autotest_iirdes_isstable_n2_yes()
{
// initialize pre-determined coefficient array
@@ -279,9 +267,7 @@ void autotest_iirdes_isstable_n2_yes()
}
-//
-// AUTOTEST : iirdes_isstable
-//
+// iirdes_isstable
void autotest_iirdes_isstable_n2_no()
{
// initialize unstable filter
|
slower adc to reduce dma2 traffic | @@ -94,7 +94,7 @@ void adc_init(void) {
// stream 2, channel 1 / stream 3, channel 1 for adc2
// stream 0, channel 2 / stream 1, channel 2 for adc3
//adc typedef for struct
-// ADC_CommonInitTypeDef ADC_CommonInitStructure; //we may want to use the common init to slow adc down & reduce dma bandwidth taken up on DMA2
+ ADC_CommonInitTypeDef ADC_CommonInitStructure; //we may want to use the common init to slow adc down & reduce dma bandwidth taken up on DMA2
ADC_InitTypeDef ADC_InitStructure;
//gpio struct
@@ -133,23 +133,17 @@ void adc_init(void) {
DMA_Init(DMA2_Stream0, &DMA_InitStructure);
}
-
-
-
// Enables or disables the ADC DMA request after last transfer
ADC_DMARequestAfterLastTransferCmd(ADC1, ENABLE);
// link it up
ADC_DMACmd(ADC1, ENABLE);
- //initialize adc
- //ADC_StructInit(&ADC_InitStructure); //potential bug contributing to corruption in dshot gpio writes
// ADC Common Init //we may want to use the common init to slow adc down
- //ADC_CommonInitStructure.ADC_Mode = ADC_Mode_Independent;
- //ADC_CommonInitStructure.ADC_Prescaler = ADC_Prescaler_Div2;
- //ADC_CommonInitStructure.ADC_DMAAccessMode = ADC_DMAAccessMode_Disabled;
- //ADC_CommonInitStructure.ADC_TwoSamplingDelay = ADC_TwoSamplingDelay_5Cycles;
- //ADC_CommonInit(&ADC_CommonInitStructure);
-
+ ADC_CommonInitStructure.ADC_Mode = ADC_Mode_Independent;
+ ADC_CommonInitStructure.ADC_Prescaler = ADC_Prescaler_Div8;
+ ADC_CommonInitStructure.ADC_DMAAccessMode = ADC_DMAAccessMode_Disabled;
+ ADC_CommonInitStructure.ADC_TwoSamplingDelay = ADC_TwoSamplingDelay_20Cycles;
+ ADC_CommonInit(&ADC_CommonInitStructure);
//adc struct
ADC_InitStructure.ADC_Resolution = ADC_Resolution_12b;
|
Remove "a" from ETC1 coding swizzle | @@ -103,13 +103,13 @@ use today.
| BC1 | `rgba` <sup>1</sup> | `.rgba` | |
| BC3 | `rgba` | `.rgba` | |
| BC3nm | `gggr` | `.ag` | |
-| BC4 | `rrr1` | `.r1` | |
+| BC4 | `rrr1` | `.r` | |
| BC5 | `rrrg` | `.ra` <sup>2</sup> | |
| BC6 | `rgb1` | `.rgb` | HDR profile only |
| BC7 | `rgba` | `.rgba` | |
| EAC_R11 | `rrr1` | `.r` | |
| EAC_RG11 | `rrrg` | `.ra` <sup>2</sup> | |
-| ETC1 | `rgba` | `.rgba` | |
+| ETC1 | `rgb1` | `.rgb` | |
| ETC2 | `rgba` <sup>1</sup> | `.rgb` | |
| ETC2+EAC | `rgba` | `.rgba` | |
| ETC2+EAC | `rgba` | `.rgba` | |
|
Fixes UART portmap for Arty. | @@ -72,8 +72,8 @@ class WithArtyJTAGHarnessBinder extends OverrideHarnessBinder({
class WithArtyUARTHarnessBinder extends OverrideHarnessBinder({
(system: HasPeripheryUARTModuleImp, th: ArtyFPGATestHarness, ports: Seq[UARTPortIO]) => {
withClockAndReset(th.clock_32MHz, th.ck_rst) {
- IOBUF(th.uart_txd_in, ports.head.txd)
- ports.head.rxd := IOBUF(th.uart_rxd_out)
+ IOBUF(th.uart_rxd_out, ports.head.txd)
+ ports.head.rxd := IOBUF(th.uart_txd_in)
}
}
})
|
engine/eng_lib.c: remove redundant #ifdef. | @@ -75,14 +75,10 @@ int engine_free_util(ENGINE *e, int not_locked)
if (e == NULL)
return 1;
-#ifdef HAVE_ATOMICS
- CRYPTO_DOWN_REF(&e->struct_ref, &i, global_engine_lock);
-#else
if (not_locked)
- CRYPTO_atomic_add(&e->struct_ref, -1, &i, global_engine_lock);
+ CRYPTO_DOWN_REF(&e->struct_ref, &i, global_engine_lock);
else
i = --e->struct_ref;
-#endif
engine_ref_debug(e, 0, -1);
if (i > 0)
return 1;
|
[mechanics] occ,mechanics_io: missing import for compute inertia | @@ -242,18 +242,18 @@ psiv = np.vectorize(psi)
#
def compute_inertia_and_center_of_mass(shapes, mass, io=None):
"""
- compute inertia from a list of Shape
+ Compute inertia from a list of Shapes.
"""
from OCC.GProp import GProp_GProps
from OCC.BRepGProp import brepgprop_VolumeProperties
from OCC.gp import gp_Ax1, gp_Dir
+ from siconos.mechanics import occ
props = GProp_GProps()
for shape in shapes:
iprops = GProp_GProps()
- iiprops = GProp_GProps()
if shape.data is None:
if io is not None:
@@ -266,74 +266,7 @@ def compute_inertia_and_center_of_mass(shapes, mass, io=None):
ishape = occ.OccContactShape(iishape).data()
# the shape relative displacement
- occ.occ_move(ishape, list(shape.translation) +\
- list(shape.orientation))
-
- brepgprop_VolumeProperties(iishape, iprops)
-
- density = None
-
- if hasattr(shape, 'mass') and shape.mass is not None:
- density = shape.mass / iprops.Mass()
-
- elif shape.parameters is not None and \
- hasattr(shape.parameters, 'density'):
- density = shape.parameters.density
- else:
- density = 1.
-
- assert density is not None
- props.Add(iprops, density)
-
- assert (props.Mass() > 0.)
-
- global_density = mass / props.Mass()
- computed_com = props.CentreOfMass()
- I1 = global_density * props.MomentOfInertia(
- gp_Ax1(computed_com, gp_Dir(1, 0, 0)))
- I2 = global_density * props.MomentOfInertia(
- gp_Ax1(computed_com, gp_Dir(0, 1, 0)))
- I3 = global_density * props.MomentOfInertia(
- gp_Ax1(computed_com, gp_Dir(0, 0, 1)))
-
- inertia = [I1, I2, I3]
- center_of_mass = np.array([computed_com.Coord(1),
- computed_com.Coord(2),
- computed_com.Coord(3)])
-
- return inertia, center_of_mass
-
-
-#
-# inertia
-#
-def compute_inertia_and_center_of_mass(shapes, mass, io=None):
- """
- compute inertia from a list of Shape
- """
- from OCC.GProp import GProp_GProps
- from OCC.BRepGProp import brepgprop_VolumeProperties
- from OCC.gp import gp_Ax1, gp_Dir
-
- props = GProp_GProps()
-
- for shape in shapes:
-
- iprops = GProp_GProps()
- iiprops = GProp_GProps()
-
- if shape.data is None:
- if io is not None:
- shape.data = io._shape.get(shape.shape_name, new_instance=True)
- else:
- warn('cannot get shape {0}'.format(shape.shape_name))
- return None
-
- iishape = shape.data
-
- ishape = occ.OccContactShape(iishape).data()
- # the shape relative displacement
- occ.occ_move(ishape, list(shape.translation) +\
+ occ.occ_move(ishape, list(shape.translation) +
list(shape.orientation))
brepgprop_VolumeProperties(iishape, iprops)
|
Update documentation URL in README | @@ -17,7 +17,7 @@ built upon the [craftinginterpreters tutorial](http://www.craftinginterpreters.c
Dictu means `simplistic` in Latin.
### Dictu documentation
-Documentation for Dictu can be found [here](https://jason2605.github.io/Dictu/)
+Documentation for Dictu can be found [here](https://dictu-lang.com/)
## Running Dictu
```bash
|
Allow providing space sepatated tasks | @@ -9,6 +9,7 @@ less likely to be useful.
import argparse
import sys
import traceback
+import re
import check_test_cases
@@ -157,7 +158,7 @@ def main():
help='Analysis to be done. By default, run all tasks. '
'With one or more TASK, run only those. '
'TASK can be the name of a single task or '
- 'coma-separated list of tasks. ')
+ 'comma/space-separated list of tasks. ')
parser.add_argument('--list', action='store_true',
help='List all available tasks and exit.')
options = parser.parse_args()
@@ -172,7 +173,7 @@ def main():
if options.task == 'all':
tasks = TASKS.keys()
else:
- tasks = options.task.split(',')
+ tasks = re.split(r'[, ]+', options.task)
for task in tasks:
if task not in TASKS:
|
retry on new blocks | ==
?: ?!(connected.u.provider)
(weld (retry-reqs block.s) retry-txbu)
- ?: (lte block.btc-state block.s) ~
+ ?. (lth block.btc-state block.s) ~
~& > "got new block, retrying {<(lent (retry-reqs block.s))>} reqs "
(retry-reqs block.s)
::
|
Fixes missing link against pthread | @@ -14,7 +14,7 @@ libIlmThread_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ -no-undefined
if LIB_SUFFIX_EXISTS
libIlmThread_la_LDFLAGS += -release @LIB_SUFFIX@
endif
-libIlmThread_la_LIBADD = ../Iex/libIex.la
+libIlmThread_la_LIBADD = ../Iex/libIex.la $(PTHREAD_LIBS)
libIlmThreadincludedir = $(includedir)/OpenEXR
|
NVMe init fix (changed max page size) | @@ -519,7 +519,7 @@ if (SSD1_USED and not ssd1initdone ):
data = (data >> 20) & 0xf
print ('max page size %x' % data)
#data = (4<<20) | (6<<16)| data
- data = (4<<20) | (6<<16) | (0x7<<6) # the nvme host doesn't support max page size
+ data = (4<<20) | (6<<16) | (0x5<<7) # the nvme host doesn't support max page size
NVME_Drive.write(SSD1,0x14,data) # writing SSD0 controller register
queue_entries = (((ADMIN_Q_ENTRIES-1)<<16) | (ADMIN_Q_ENTRIES-1));
NVME_Drive.write(SSD1,0x24,queue_entries) # AQA register
|
corrected 'null-terminated string' comment | @@ -369,7 +369,7 @@ osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAtt
/// Get name of a thread.
/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId.
-/// \return name as NULL terminated string.
+/// \return name as null-terminated string.
const char *osThreadGetName (osThreadId_t thread_id);
/// Return the thread ID of the current running thread.
@@ -495,7 +495,7 @@ osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument,
/// Get name of a timer.
/// \param[in] timer_id timer ID obtained by \ref osTimerNew.
-/// \return name as NULL terminated string.
+/// \return name as null-terminated string.
const char *osTimerGetName (osTimerId_t timer_id);
/// Start or restart a timer.
@@ -529,7 +529,7 @@ osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr);
/// Get name of an Event Flags object.
/// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew.
-/// \return name as NULL terminated string.
+/// \return name as null-terminated string.
const char *osEventFlagsGetName (osEventFlagsId_t ef_id);
/// Set the specified Event Flags.
@@ -572,7 +572,7 @@ osMutexId_t osMutexNew (const osMutexAttr_t *attr);
/// Get name of a Mutex object.
/// \param[in] mutex_id mutex ID obtained by \ref osMutexNew.
-/// \return name as NULL terminated string.
+/// \return name as null-terminated string.
const char *osMutexGetName (osMutexId_t mutex_id);
/// Acquire a Mutex or timeout if it is locked.
@@ -608,7 +608,7 @@ osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, cons
/// Get name of a Semaphore object.
/// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew.
-/// \return name as NULL terminated string.
+/// \return name as null-terminated string.
const char *osSemaphoreGetName (osSemaphoreId_t semaphore_id);
/// Acquire a Semaphore token or timeout if no tokens are available.
@@ -644,7 +644,7 @@ osMemoryPoolId_t osMemoryPoolNew (uint32_t block_count, uint32_t block_size, con
/// Get name of a Memory Pool object.
/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew.
-/// \return name as NULL terminated string.
+/// \return name as null-terminated string.
const char *osMemoryPoolGetName (osMemoryPoolId_t mp_id);
/// Allocate a memory block from a Memory Pool.
@@ -696,7 +696,7 @@ osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, con
/// Get name of a Message Queue object.
/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew.
-/// \return name as NULL terminated string.
+/// \return name as null-terminated string.
const char *osMessageQueueGetName (osMessageQueueId_t mq_id);
/// Put a Message into a Queue or timeout if Queue is full.
|
fix catboost python package build | @@ -9,6 +9,8 @@ PYTHON_ADDINCL()
# add only headers for dynamic linking
ADDINCL(
contrib/python/numpy/numpy/core/include
+ contrib/python/numpy/numpy/core/src/common
+ contrib/python/numpy/numpy/core/src/npymath
)
PEERDIR(
|
WiFi api definition: file doc added | @@ -870,6 +870,7 @@ and 8-bit Java bytecodes in Jazelle state.
<api Cclass="CMSIS Driver" Cgroup="WiFi" Capiversion="1.0.0-beta" exclusive="0">
<description>WiFi driver</description>
<files>
+ <file category="doc" name="CMSIS/Documentation/Driver/html/group__wifi__interface__gr.html" />
<file category="header" name="CMSIS/Driver/Include/Driver_WiFi.h" />
</files>
</api>
|
removed code in run_linear_hash.c for testing purposes | @@ -5,6 +5,8 @@ main(
) {
/* runalltests_linear_hash(); */
/* runalltests_flat_file_handler(); */
+
+ /*
ion_key_type_t key_type = key_type_numeric_signed;
ion_key_size_t key_size = sizeof(int);
ion_value_size_t value_size = sizeof(int);
@@ -54,5 +56,7 @@ main(
linear_hash_insert(key, value, insert_hash_to_bucket(key, linear_hash), linear_hash);
linear_hash_close(linear_hash);
+ */
+
return 0;
}
|
Fix str check for py2 | @@ -1303,7 +1303,7 @@ def stringify_builtin_metrics(params):
val = params[f]
if isinstance(val, BuiltinMetric):
params[f] = val.to_string()
- elif isinstance(val, str):
+ elif isinstance(val, STRING_TYPES):
continue
elif isinstance(val, Sequence):
params[f] = stringify_builtin_metrics_list(val)
@@ -2466,7 +2466,7 @@ class CatBoost(_CatBoostBase):
if tmp_dir is None:
tmp_dir = tempfile.mkdtemp()
- if isinstance(metrics, str) or isinstance(metrics, BuiltinMetric):
+ if isinstance(metrics, STRING_TYPES) or isinstance(metrics, BuiltinMetric):
metrics = [metrics]
metrics = stringify_builtin_metrics_list(metrics)
with log_fixup(log_cout, log_cerr), plot_wrapper(plot, [res_dir]):
@@ -6114,7 +6114,7 @@ class BatchMetricCalcer(_MetricCalcerBase):
else:
delete_temp_dir_flag = False
- if isinstance(metrics, str) or isinstance(metrics, BuiltinMetric):
+ if isinstance(metrics, STRING_TYPES) or isinstance(metrics, BuiltinMetric):
metrics = [metrics]
metrics = stringify_builtin_metrics_list(metrics)
self._create_calcer(metrics, ntree_start, ntree_end, eval_period, thread_count, tmp_dir, delete_temp_dir_flag)
|
Configurations/10-main.conf: improve Makefile readability on AIX and Solaris. | @@ -232,7 +232,7 @@ my %targets = (
ex_libs => add(threads("-pthread")),
bn_ops => "BN_LLONG",
shared_cflag => "-fPIC",
- shared_ldflag => add("-shared -static-libgcc"),
+ shared_ldflag => add_before("-shared -static-libgcc"),
},
"solaris64-x86_64-gcc" => {
# -shared -static-libgcc might appear controversial, but modules
@@ -254,7 +254,7 @@ my %targets = (
bn_ops => "SIXTY_FOUR_BIT_LONG",
perlasm_scheme => "elf",
shared_cflag => "-fPIC",
- shared_ldflag => add("-shared -static-libgcc"),
+ shared_ldflag => add_before("-shared -static-libgcc"),
multilib => "/64",
},
@@ -285,7 +285,7 @@ my %targets = (
bn_ops => "SIXTY_FOUR_BIT_LONG",
perlasm_scheme => "elf",
shared_cflag => "-KPIC",
- shared_ldflag => add("-G -dy -z text"),
+ shared_ldflag => add_before("-G -dy -z text"),
multilib => "/64",
},
@@ -301,7 +301,7 @@ my %targets = (
ex_libs => add(threads("-pthread")),
bn_ops => "BN_LLONG RC4_CHAR",
shared_cflag => "-fPIC",
- shared_ldflag => add("-shared"),
+ shared_ldflag => add_before("-shared"),
},
"solaris-sparcv8-gcc" => {
inherit_from => [ "solaris-sparcv7-gcc", asm("sparcv8_asm") ],
@@ -336,7 +336,7 @@ my %targets = (
ex_libs => add(threads("-lpthread")),
bn_ops => "BN_LLONG RC4_CHAR",
shared_cflag => "-KPIC",
- shared_ldflag => add("-G -dy -z text"),
+ shared_ldflag => add_before("-G -dy -z text"),
},
####
"solaris-sparcv8-cc" => {
@@ -1143,7 +1143,7 @@ my %targets = (
ex_libs => threads("-pthread"),
bn_ops => "BN_LLONG RC4_CHAR",
perlasm_scheme => "aix32",
- shared_ldflag => add("-shared -static-libgcc"),
+ shared_ldflag => add_before("-shared -static-libgcc"),
AR => add("-X32"),
RANLIB => add("-X32"),
},
@@ -1156,7 +1156,7 @@ my %targets = (
ex_libs => threads("-pthread"),
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
perlasm_scheme => "aix64",
- shared_ldflag => add("-shared -static-libgcc"),
+ shared_ldflag => add_before("-shared -static-libgcc"),
AR => add("-X64"),
RANLIB => add("-X64"),
},
|
Fixed PLUGIN_DISABLE bug | @@ -74,7 +74,7 @@ AC_DEFUN([PLUGIN_DISABLED],
AC_HELP_STRING([--enable-$1-plugin], [Build $1 plugin]),
[enable_$1_plugin=yes ],
[enable_$1_plugin=no])
- AM_CONDITIONAL(m4_toupper((ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes")
+ AM_CONDITIONAL(m4_toupper(ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes")
m4_append([list_of_plugins], [$1], [, ])
])
|
plugs leak in -A filesystem boot event handling | @@ -1393,7 +1393,7 @@ _pier_boot_vent(u3_boot* bot_u)
if ( c3__into == u3h(u3t(ovo)) ) {
c3_assert( 0 == len_w );
len_w++;
- ovo = u3k(u3t(pil_q));
+ ovo = u3t(pil_q);
}
new = u3nc(u3k(ovo), new);
|
Truncate device name at code point boundary
Just in case. | @@ -89,7 +89,7 @@ public final class DesktopConnection implements Closeable {
byte[] buffer = new byte[DEVICE_NAME_FIELD_LENGTH + 4];
byte[] deviceNameBytes = deviceName.getBytes(StandardCharsets.UTF_8);
- int len = Math.min(DEVICE_NAME_FIELD_LENGTH - 1, deviceNameBytes.length);
+ int len = StringUtils.getUtf8TruncationIndex(deviceNameBytes, DEVICE_NAME_FIELD_LENGTH - 1);
System.arraycopy(deviceNameBytes, 0, buffer, 0, len);
// byte[] are always 0-initialized in java, no need to set '\0' explicitly
|
vppinfra: fix OOM check in bihash
The OOM check must consider the end of alloced arena and
not the start when checking for overflow.
Type: fix | @@ -26,7 +26,7 @@ static inline void *BV (alloc_aligned) (BVT (clib_bihash) * h, uword nbytes)
rv = alloc_arena_next (h);
alloc_arena_next (h) += nbytes;
- if (rv >= alloc_arena_size (h))
+ if (alloc_arena_next (h) > alloc_arena_size (h))
os_out_of_memory ();
return (void *) (uword) (rv + alloc_arena (h));
|
sdmmc: fix possible null dereference in output parameter assignement, whilst it was null checked as an input parameter | @@ -567,6 +567,9 @@ esp_err_t sdmmc_io_get_cis_data(sdmmc_card_t* card, uint8_t* out_buffer, size_t
esp_err_t ret = ESP_OK;
WORD_ALIGNED_ATTR uint8_t buf[CIS_GET_MINIMAL_SIZE];
+ /* Pointer to size is a mandatory parameter */
+ assert(inout_cis_size);
+
/*
* CIS region exist in 0x1000~0x17FFF of FUNC 0, get the start address of it
* from CCCR register.
@@ -585,7 +588,7 @@ esp_err_t sdmmc_io_get_cis_data(sdmmc_card_t* card, uint8_t* out_buffer, size_t
* existing.
*/
size_t max_reading = UINT32_MAX;
- if (inout_cis_size && *inout_cis_size != 0) {
+ if (*inout_cis_size != 0) {
max_reading = *inout_cis_size;
}
|
Reset font pixel density in errhand; | @@ -220,6 +220,7 @@ function lovr.errhand(message, traceback)
lovr.graphics.setBackgroundColor(.11, .10, .14)
lovr.graphics.setColor(.85, .85, .85)
local font = lovr.graphics.getFont()
+ font:setPixelDensity()
font:setFlipEnabled(false)
local wrap = .7 * font:getPixelDensity()
local width, lines = font:getWidth(message, wrap)
|
changelog: mention test improvements | ## v1.0.2
-Released 2020-05-25
+Released 2020-05-28
- Relaxed version constraint for aeson, allowing `aeson-1.5.*`.
+- Update CI tests to check with GHC versions 8.0 through 8.10.
+ Compilation with GHC 7.10 is no longer tested.
+
+- Bump to stackage LTS-14.
+
## v1.0.1
Released 2020-04-03
|
config: on exit, release parsers | @@ -345,6 +345,11 @@ void flb_config_exit(struct flb_config *config)
}
#endif
+#ifdef FLB_HAVE_PARSER
+ /* parsers */
+ flb_parser_exit(config);
+#endif
+
if (config->storage_path) {
flb_free(config->storage_path);
}
|
[FIX] Linting when using conditionnal directives
fix linting when using conditionnal directives | #define LUOS_ASSERTION
-#if defined UNIT_TEST
+#if defined(UNIT_TEST)
extern void unittest_assert(char *file, uint32_t line);
#define LUOS_ASSERT(expr) \
if (!(expr)) \
@@ -24,10 +24,9 @@ extern void unittest_assert(char *file, uint32_t line);
if (!(expr)) \
Luos_assert(__FILE__, __LINE__)
#else
-#define LUOS_ASSERT(expr)
+#define LUOS_ASSERT(expr) ()
#endif
-
/* This structure is used to manage node assertion informations
*/
typedef struct __attribute__((__packed__))
@@ -43,7 +42,6 @@ typedef struct __attribute__((__packed__))
};
} luos_assert_t;
-
/*******************************************************************************
* Variables
******************************************************************************/
|
YANG parser BUGFIX invalid variable used for pointer arithmetics | if (BUF) {(TARGET) = lydict_insert_zc((CTX)->ctx, WORD);}\
else {(TARGET) = lydict_insert((CTX)->ctx, WORD, LEN);}
-#define MOVE_INPUT(CTX, DATA, COUNT) (*(data))+=COUNT;(CTX)->indent+=COUNT
+#define MOVE_INPUT(CTX, DATA, COUNT) (*(DATA))+=COUNT;(CTX)->indent+=COUNT
/**
* @brief Loop through all substatements providing, return if there are none.
|
Map add test | @@ -224,7 +224,7 @@ static void test_array_push(void **state) {
cbor_item_t *array = cbor_new_indefinite_array();
cbor_item_t *string = cbor_build_string("Hello!");
- assert_false(cbor_array_push(array, cbor_move(string)));
+ assert_false(cbor_array_push(array, string));
assert_int_equal(cbor_array_allocated(array), 0);
assert_null(array->data);
assert_int_equal(array->metadata.array_metadata.end_ptr, 0);
@@ -235,6 +235,27 @@ static void test_array_push(void **state) {
4, MALLOC, MALLOC, MALLOC, REALLOC_FAIL);
}
+static void test_map_add(void **state) {
+ WITH_MOCK_MALLOC(
+ {
+ cbor_item_t *map = cbor_new_indefinite_map();
+ cbor_item_t *key = cbor_build_uint8(0);
+ cbor_item_t *value = cbor_build_bool(true);
+
+ assert_false(cbor_map_add(map, (struct cbor_pair) {
+ .key = key,
+ .value = value
+ }));
+ assert_int_equal(cbor_map_allocated(map), 0);
+ assert_null(map->data);
+
+ cbor_decref(&map);
+ cbor_decref(&key);
+ cbor_decref(&value);
+ },
+ 4, MALLOC, MALLOC, MALLOC, REALLOC_FAIL);
+}
+
int main(void) {
#if CBOR_CUSTOM_ALLOC
cbor_set_allocs(instrumented_malloc, instrumented_realloc, free);
@@ -252,6 +273,7 @@ int main(void) {
cmocka_unit_test(test_bytestring_add_chunk),
cmocka_unit_test(test_string_add_chunk),
cmocka_unit_test(test_array_push),
+ cmocka_unit_test(test_map_add),
};
#else
// Can't do anything without a custom allocator
|
Fix MiscEncodingHandler() to work in builds | @@ -5820,12 +5820,12 @@ MiscEncodingHandler(void *data,
int i;
int high_map = -2; /* Assume a 2-byte sequence */
- if (!strcmp(encoding, "invalid-9") ||
- !strcmp(encoding, "ascii-like") ||
- !strcmp(encoding, "invalid-len") ||
- !strcmp(encoding, "invalid-a") ||
- !strcmp(encoding, "invalid-surrogate") ||
- !strcmp(encoding, "invalid-high"))
+ if (!xcstrcmp(encoding, XCS("invalid-9")) ||
+ !xcstrcmp(encoding, XCS("ascii-like")) ||
+ !xcstrcmp(encoding, XCS("invalid-len")) ||
+ !xcstrcmp(encoding, XCS("invalid-a")) ||
+ !xcstrcmp(encoding, XCS("invalid-surrogate")) ||
+ !xcstrcmp(encoding, XCS("invalid-high")))
high_map = -1;
for (i = 0; i < 128; ++i)
@@ -5834,28 +5834,28 @@ MiscEncodingHandler(void *data,
info->map[i] = high_map;
/* If required, put an invalid value in the ASCII entries */
- if (!strcmp(encoding, "invalid-9"))
+ if (!xcstrcmp(encoding, XCS("invalid-9")))
info->map[9] = 5;
/* If required, have a top-bit set character starts a 5-byte sequence */
- if (!strcmp(encoding, "invalid-len"))
+ if (!xcstrcmp(encoding, XCS("invalid-len")))
info->map[0x81] = -5;
/* If required, make a top-bit set character a valid ASCII character */
- if (!strcmp(encoding, "invalid-a"))
+ if (!xcstrcmp(encoding, XCS("invalid-a")))
info->map[0x82] = 'a';
/* If required, give a top-bit set character a forbidden value,
* what would otherwise be the first of a surrogate pair.
*/
- if (!strcmp(encoding, "invalid-surrogate"))
+ if (!xcstrcmp(encoding, XCS("invalid-surrogate")))
info->map[0x83] = 0xd801;
/* If required, give a top-bit set character too high a value */
- if (!strcmp(encoding, "invalid-high"))
+ if (!xcstrcmp(encoding, XCS("invalid-high")))
info->map[0x84] = 0x010101;
info->data = data;
info->release = NULL;
- if (!strcmp(encoding, "failing-conv"))
+ if (!xcstrcmp(encoding, XCS("failing-conv")))
info->convert = failing_converter;
- else if (!strcmp(encoding, "prefix-conv"))
+ else if (!xcstrcmp(encoding, XCS("prefix-conv")))
info->convert = prefix_converter;
else
info->convert = NULL;
|
fix set key exchange mode issue | @@ -1275,25 +1275,37 @@ static int ssl_tls1_3_finalize_server_hello( mbedtls_ssl_context *ssl )
* following rules:
*
* 1) IF PRE_SHARED_KEY extension was received
- * THEN set MBEDTLS_KEY_EXCHANGE_PSK
+ * THEN set KEY_EXCHANGE_MODE_PSK_EPHEMERAL;
* 2) IF PRE_SHARED_KEY extension && KEY_SHARE was received
- * THEN set MBEDTLS_KEY_EXCHANGE_ECDHE_PSK
+ * THEN set KEY_EXCHANGE_MODE_PSK;
* 3) IF KEY_SHARES extension was received && SIG_ALG extension received
- * THEN set MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA
+ * THEN set KEY_EXCHANGE_MODE_EPHEMERAL
* ELSE unknown key exchange mechanism.
*/
-
if( ssl->handshake->extensions_present & MBEDTLS_SSL_EXT_PRE_SHARED_KEY )
{
if( ssl->handshake->extensions_present & MBEDTLS_SSL_EXT_KEY_SHARE )
- ssl->handshake->tls1_3_kex_modes = MBEDTLS_SSL_TLS13_KEY_EXCHANGE_MODE_PSK_EPHEMERAL;
+ {
+ /* Condition 2) */
+ ssl->handshake->tls1_3_kex_modes =
+ MBEDTLS_SSL_TLS13_KEY_EXCHANGE_MODE_PSK_EPHEMERAL;
+ }
else
- ssl->handshake->tls1_3_kex_modes = MBEDTLS_SSL_TLS13_KEY_EXCHANGE_MODE_PSK;
+ {
+ /* Condition 1) */
+ ssl->handshake->tls1_3_kex_modes =
+ MBEDTLS_SSL_TLS13_KEY_EXCHANGE_MODE_PSK;
+ }
+ }
+ else if( ( ssl->handshake->extensions_present & MBEDTLS_SSL_EXT_KEY_SHARE ) )
+ {
+ /* Condition 3) */
+ ssl->handshake->tls1_3_kex_modes =
+ MBEDTLS_SSL_TLS13_KEY_EXCHANGE_MODE_EPHEMERAL;
}
- else if( ssl->handshake->extensions_present & MBEDTLS_SSL_EXT_KEY_SHARE )
- ssl->handshake->tls1_3_kex_modes = MBEDTLS_SSL_TLS13_KEY_EXCHANGE_MODE_EPHEMERAL;
else
{
+ /* ELSE case */
MBEDTLS_SSL_DEBUG_MSG( 1, ( "Unknown key exchange." ) );
return( MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE );
}
|
allocator: remove unnecessary scope | @@ -43,7 +43,7 @@ ra_free(allocator *ra)
}
}
-#define ra_alloc(RA, SZ) { \
+#define ra_alloc(RA, SZ) \
assert(SZ >= 0); \
nsz = 256 * 1024; \
if (SZ > nsz) \
@@ -60,7 +60,6 @@ ra_free(allocator *ra)
RA->nextp = RA->memory_region; \
RA->sz = nsz; \
RA->next = NULL; \
- }
/**
* Allocate a new allocator.
|
Transition ~fed from Tlon to "Iceman." | 0w0 :: 233, ~dyn, Tlon
0w0 :: 234, ~dem, Tlon
0w0 :: 235, ~lux, Tlon Investor 15
- 0w0 :: 236, ~fed, Tlon
+ 0w0 :: 236, ~fed, Iceman
0w0 :: 237, ~sed, Tlon
0w0 :: 238, ~bec, Tlon
0w0 :: 239, ~mun, Tlon
|
vm-nommu: remove defines. | @@ -171,7 +171,7 @@ void _page_init(pmap_t *pmap, void **bss, void **top)
proc_lockInit(&pages.lock);
- pages.freesz = VADDR_MAX - (unsigned int)(*bss);
+ pages.freesz = pmap_getMaxVAdrr() - (unsigned int)(*bss);
pages.bootsz = 0;
pages.freeq = (*bss);
@@ -181,7 +181,7 @@ void _page_init(pmap_t *pmap, void **bss, void **top)
(*top) = max((*top), (*bss));
/* Prepare memory hash */
- pages.allocsz = (unsigned int)(*bss) - VADDR_MIN;
+ pages.allocsz = (unsigned int)(*bss) - pmap_getMinVAdrr();
pages.freesz -= pages.freeqsz * sizeof(page_t);
/* Show statistics one the console */
|
tests/run-multitests: Update for Pycopy. | @@ -13,10 +13,10 @@ import pyboard
if os.name == "nt":
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3.exe")
- MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/windows/micropython.exe")
+ MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/windows/pycopy.exe")
else:
CPYTHON3 = os.getenv("MICROPY_CPYTHON3", "python3")
- MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/unix/micropython")
+ MICROPYTHON = os.getenv("MICROPY_MICROPYTHON", "../ports/unix/pycopy")
PYTHON_TRUTH = CPYTHON3
|
publish-js: account for missing group | @@ -179,7 +179,7 @@ export class Notebook extends Component {
const group = props.groups[notebook?.['writers-group-path']];
- const role = roleForShip(group, window.ship);
+ const role = group ? roleForShip(group, window.ship) : undefined;
const subsComponent = (this.props.ship.slice(1) === window.ship) || (role === 'admin')
? (<Link to={subs} className={tabStyles.subscribers}>
|
vlapic: unmap vlapic base only for SOS
as SOS mapped all memory at the beginning, so trap vlapic need unmap its
memory; for UOS, there is no need as UOS never mapped it. | @@ -1970,6 +1970,8 @@ int vlapic_create(struct vcpu *vcpu)
if (is_vcpu_bsp(vcpu)) {
uint64_t *pml4_page =
(uint64_t *)vcpu->vm->arch_vm.nworld_eptp;
+ /* only need unmap it from SOS as UOS never mapped it */
+ if (is_vm0(vcpu->vm))
ept_mr_del(vcpu->vm, pml4_page,
DEFAULT_APIC_BASE, CPU_PAGE_SIZE);
|
Update changelog.` | @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
## Unreleased - ???
- Update meson build script to fix bug on Debian's version of meson
+- Add `xprint`, `xprin`, `xprintf`, and `xprinf`.
## 1.11.3 - 2020-08-03
- Add `JANET_HASHSEED` environment variable when `JANET_PRF` is enabled.
|
Take care of HV counter latching (when light guns are in use) | @@ -412,6 +412,10 @@ void _vint_callback()
// detect if we are too late
bool late = FALSE;
+
+ // we cannot detect late frame if HV latching is enabled..
+ if (!VDP_getHVLatching())
+ {
// V28 mode
if (VDP_getScreenHeight() == 224)
{
@@ -424,6 +428,7 @@ void _vint_callback()
// V Counter outside expected range ? (rollback in PAL mode can mess up the test here..)
if ((vcnt < 240) || (vcnt > (240 + VINT_ALLOWED_LINE_DELAY))) late = TRUE;
}
+ }
// interrupt happened too late ?
if (late)
@@ -457,7 +462,6 @@ void _vint_callback()
// call user callback (pre V-Int)
if (VIntCBPre) VIntCBPre();
-
u16 vintp = VIntProcess;
// may worth it
if (vintp)
|
Adds convert to map for celix::Properties | @@ -259,6 +259,38 @@ namespace celix {
std::size_t size() const {
return celix_properties_size(cProps.get());
}
+
+ /**
+ * @brief Converts the properties a (new) std::string, std::string map.
+ */
+ std::map<std::string, std::string> convertToMap() const {
+ std::map<std::string, std::string> result{};
+ for (const auto& pair : *this) {
+ result[pair.first] = pair.second;
+ }
+ return result;
+ }
+
+ /**
+ * @brief Converts the properties a (new) std::string, std::string unordered map.
+ */
+ std::unordered_map<std::string, std::string> convertToUnorderedMap() const {
+ std::unordered_map<std::string, std::string> result{};
+ for (const auto& pair : *this) {
+ result[pair.first] = pair.second;
+ }
+ return result;
+ }
+
+ /**
+ * @brief cast the celix::Properties to a std::string, std::string map.
+ * @warning This method is added to ensure backwards compatibility with the celix::dm::Properties, but the
+ * use of this cast should be avoided.
+ * This method will eventually be removed.
+ */
+ operator std::map<std::string, std::string>() const {
+ return convertToMap();
+ }
private:
explicit Properties(celix_properties_t* props) : cProps{props, [](celix_properties_t*) { /*nop*/ }} {}
|
I did some more cleanup on the 2.13 release notes. | @@ -49,7 +49,7 @@ enhancements and bug-fixes that were added to this release.</p>
<li>Corrected a bug plotting SAMRAI data where blank plots would get generated when curvilinear mesh blocks are completely surrounded by a layer of ghost zones.</li>
<li>Added a reader for the SPCTH (Spy) file format.</li>
<li>Updated the Blueprint reader to use Conduit v0.3.0 and incorporate Mesh Blueprint changes.</li>
- <li>The VTK reader can now handle '.pvtk' files.</li>
+ <li>Enhanced the VTK reader to support '.pvtk' files.</li>
</ul>
<a name="Plot_changes"></a>
|
[swig] off-by-1 error | @@ -45,7 +45,7 @@ static char* format_msg_concat(const char* msg1, const char* msg2)
{
strncpy(error_msg, msg1, strlen(msg1)+1);
strncat(error_msg, "\n", 2);
- strncat(error_msg, msg2, strlen(msg2) - 1);
+ strncat(error_msg, msg2, strlen(msg2));
return error_msg;
}
|
naive: wrong key L2 %escape on L1 works | [escape.net sponsor.net]:(~(got by points.state) ~larsyx-mapmeg)
==
::
+:: the following tests are for sponsorship actions between two L1 points
+++ test-red-l1-escape-l2-adopt ^- tang
+ =/ rr-adopt [rigred-own %adopt ~rabsum-ravtyd]
+ %+ expect-eq
+ !> [~ %.y ~rigred]
+ ::
+ !>
+ =| =^state:naive
+ =^ f state (init-red-full state)
+ =^ f state (n state (escape-requested:l1 ~rabsum-ravtyd ~rigred))
+ =^ f state (n state %bat q:(gen-tx 0 rr-adopt %rigred-key-0))
+ [escape.net sponsor.net]:(~(got by points.state) ~rabsum-ravtyd)
+::
+++ test-red-l2-escape-l1-adopt ^- tang
+ =/ rr-escape [[~rabsum-ravtyd %own] %escape ~rigred]
+ %+ expect-eq
+ !> [[~ ~rigred] %.y ~holrut]
+ ::
+ !>
+ =| =^state:naive
+ =^ f state (init-red-full state)
+ =^ f state (n state %bat q:(gen-tx 1 rr-escape %holrut-rr-key-0))
+ =^ f state (n state (escape-accepted:l1 ~rigred ~rabsum-ravtyd))
+ [escape.net sponsor.net]:(~(got by points.state) ~rabsum-ravtyd)
+::
+++ test-l1-adoption-wrong-keys
+ :: this is really bad
+ =/ rr-escape [[~rabsum-ravtyd %own] %escape ~rigred]
+ =/ rr-adopt [rigred-own %adopt ~rabsum-ravtyd]
+ ::
+ %+ expect-eq
+ !> [~ %.y ~holrut]
+ ::
+ !>
+ =| =^state:naive
+ =^ f state (init-red-full state)
+ =^ f state (n state %bat q:(gen-tx 1 rr-escape %wrong-key))
+ =^ f state (n state %bat q:(gen-tx 0 rr-adopt %wrong-key))
+ [escape.net sponsor.net]:(~(got by points.state) ~rabsum-ravtyd)
+::
++ test-marbud-l2-change-keys-new ^- tang
=/ new-keys [%configure-keys encr auth suit |]
=| =^state:naive
|
Wrap app_fips_init_lcl.h with ACVP_NO_RUNTIME | #ifndef LIBACVP_APP_FIPS_INIT_LCL_H
#define LIBACVP_APP_FIPS_INIT_LCL_H
+#ifdef ACVP_NO_RUNTIME
+
#ifdef __cplusplus
extern "C"
{
@@ -102,5 +104,7 @@ static void fips_algtest_init_nofips(void)
}
#endif
+#endif // ACVP_NO_RUNTIME
+
#endif // LIBACVP_APP_FIPS_INIT_LCL_H
|
lib/protocol_ftp.c: remove HTTP proxy stuff (was commented out)
closes
Forget about FTP over HTTP, this is just too obscure to even test | @@ -36,7 +36,6 @@ static gftp_textcomboedt_data gftp_proxy_type[] = {
{N_("AUTHENTICATE"), "USER %hu@%hh\nPASS %hp\nSITE AUTHENTICATE %pu\nSITE RESPONSE %pp\n", 0},
{N_("user@host port"), "USER %hu@%hh %ho\nPASS %hp\n", 0},
{N_("user@host NOAUTH"), "USER %hu@%hh\nPASS %hp\n", 0},
- ///{N_("HTTP Proxy"), "http", 0},
{N_("Custom"), "", GFTP_TEXTCOMBOEDT_EDITABLE},
{NULL, NULL, 0}
};
@@ -1757,17 +1756,6 @@ static int ftp_site (gftp_request * request, int specify_site, const char *comma
static int ftp_set_config_options (gftp_request * request)
{
DEBUG_PRINT_FUNC
- char *proxy_config;
- ///int ret;
-
- gftp_lookup_request_option (request, "proxy_config", &proxy_config);
-
- if (strcmp (proxy_config, "http") == 0)
- {
- ///if ((ret = gftp_protocols[GFTP_PROTOCOL_HTTP].init (request)) < 0)
- /// return (ret);
- gftp_set_request_option (request, "proxy_config", "ftp");
- }
return (0);
}
|
Add more SceGpioForDriver NIDs | @@ -5268,3 +5268,8 @@ modules:
nid: 0xF0EF5743
functions:
ksceGpioQueryIntr: 0x010DC295
+ ksceGpioSetPortMode: 0x372022A4
+ ksceGpioSetIntrMode: 0xBBEA1DDC
+ ksceGpioPortSet: 0xD454A584
+ ksceGpioPortClear: 0xF6310435
+ ksceGpioAcquireIntr: 0x35AAD77A
|
Jenkins: Increase test timeout
This update closes | @@ -1173,7 +1173,7 @@ def withDockerEnv(image, opts=[], cl) {
}
docker.withRegistry("https://${REGISTRY}",
'docker-hub-elektra-jenkins') {
- timeout(activity: true, time: 5, unit: 'MINUTES') {
+ timeout(activity: true, time: 10, unit: 'MINUTES') {
def cpu_count = cpuCount()
withEnv(["MAKEFLAGS='-j${cpu_count+2} -l${cpu_count*2}'",
"CTEST_PARALLEL_LEVEL='${cpu_count+2}'",
|
feature(ci): Build split w/ display enabled for testing. | @@ -55,6 +55,7 @@ jobs:
- splitreus62_right
- tg4x
- tidbit
+ cmake-args: [""]
include:
- board: dz60rgb_rev1
- board: nrf52840_m2
@@ -62,6 +63,14 @@ jobs:
- board: planck_rev6
- board: proton_c
shield: clueboard_california
+ - board: nice_nano
+ shield: kyria_left
+ cmake-args: -DCONFIG_ZMK_DISPLAY=y
+ skip-archive: true
+ - board: nice_nano
+ shield: kyria_right
+ cmake-args: -DCONFIG_ZMK_DISPLAY=y
+ skip-archive: true
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -104,8 +113,9 @@ jobs:
echo ::set-output name=shield-arg::${SHIELD_ARG}
echo ::set-output name=artifact-name::${ARTIFACT_NAME}
- name: Build (west build)
- run: west build -s app -b ${{ matrix.board }} -- ${{ steps.variables.outputs.shield-arg }}
+ run: west build -s app -b ${{ matrix.board }} -- ${{ steps.variables.outputs.shield-arg }} ${{ matrix.cmake-args }}
- name: Archive artifacts
+ if: ${{ !matrix.skip-archive }}
uses: actions/upload-artifact@v2
with:
name: "${{ steps.variables.outputs.artifact-name }}"
|
config: do not remove collectors on exit | @@ -378,13 +378,6 @@ void flb_config_exit(struct flb_config *config)
}
}
- /* Collectors */
- mk_list_foreach_safe(head, tmp, &config->collectors) {
- collector = mk_list_entry(head, struct flb_input_collector, _head);
- mk_list_del(&collector->_head);
- flb_input_collector_destroy(collector);
- }
-
flb_env_destroy(config->env);
/* Program name */
|
Don't use a wildcard in Makefile if you are going to overwrite it | @@ -60,7 +60,7 @@ OUTPUT_NAME = $(shell basename $(PROJECT))
SDL_LIBS = `sdl2-config --libs`
# Glom all .cpp files from the testbed
-TESTBED_SRC_FILES := $(wildcard $(TESTBED)/*.cpp)
+TESTBED_SRC_FILES := $(TESTBED)/Main.cpp
# Glom all .cpp files from our desired project
PROJECT_SRC_FILES := $(wildcard $(PROJECT)/*.cpp)
@@ -74,10 +74,10 @@ ifeq ($(ENABLE_FFMPEG), true)
FFMPEG_LIBS = -Wl,-Bstatic -lavformat -lavcodec -lavdevice -lavfilter -lavutil -lswresample -lswscale -Wl,-Bdynamic -llzma -lz
LDFLAGS += -L$(FFMPEG)/lib $(FFMPEG_LIBS)
CPPFLAGS += -I$(FFMPEG)/include
+TESTBED_SRC_FILES += $(TESTBED)/VideoCapture.cpp
else
FFMPEG_LIBS =
CPPFLAGS += -DNO_FFMPEG_CAPTURE
-TESTBED_SRC_FILES = $(TESTBED)/Main.cpp
endif
LDFLAGS += $(SDL_LIBS) -lpthread
|
external/libcxx: Add #ifdef statement in ctime
asctime, ctime, localtime needs CONFIG_LIBC_LOCALTIME | @@ -78,11 +78,15 @@ namespace std
using ::clock_gettime;
using ::mktime;
using ::time;
+#if defined(CONFIG_LIBC_LOCALTIME) || defined(CONFIG_TIME_EXTENDED)
using ::asctime;
using ::ctime;
+ #endif
using ::gmtime;
using ::gmtime_r;
+#ifdef CONFIG_LIBC_LOCALTIME
using ::localtime;
+#endif
using ::timer_create;
using ::timer_delete;
using ::timer_settime;
|
EVP_PKEY_get0_engine documentation | @@ -9,7 +9,7 @@ EVP_PKEY_assign_RSA, EVP_PKEY_assign_DSA, EVP_PKEY_assign_DH,
EVP_PKEY_assign_EC_KEY, EVP_PKEY_assign_POLY1305, EVP_PKEY_assign_SIPHASH,
EVP_PKEY_get0_hmac, EVP_PKEY_get0_poly1305, EVP_PKEY_get0_siphash,
EVP_PKEY_type, EVP_PKEY_id, EVP_PKEY_base_id, EVP_PKEY_set_alias_type,
-EVP_PKEY_set1_engine - EVP_PKEY assignment functions
+EVP_PKEY_set1_engine, EVP_PKEY_get0_engine - EVP_PKEY assignment functions
=head1 SYNOPSIS
@@ -45,6 +45,7 @@ EVP_PKEY_set1_engine - EVP_PKEY assignment functions
int EVP_PKEY_type(int type);
int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);
+ ENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);
int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *engine);
=head1 DESCRIPTION
@@ -81,6 +82,8 @@ often seen in practice.
EVP_PKEY_type() returns the underlying type of the NID B<type>. For example
EVP_PKEY_type(EVP_PKEY_RSA2) will return B<EVP_PKEY_RSA>.
+EVP_PKEY_get0_engine() returns a reference to the ENGINE handling B<pkey>.
+
EVP_PKEY_set1_engine() sets the ENGINE handling B<pkey> to B<engine>. It
must be called after the key algorithm and components are set up.
If B<engine> does not include an B<EVP_PKEY_METHOD> for B<pkey> an
|
doc: fix wording in DESIGN.md | @@ -4,7 +4,7 @@ This document describes the design of Elektra's C-API and provides hints for
binding writers. It is not aimed at plugin writers, since it does not
talk about the implementation details of Elektra.
-Elektra [aims](GOALS.md) at following design principles:
+Elektra [aims](GOALS.md) to fulfill the following design principles:
1. To make the API futureproof so that it can remain compatible and stable
over a long period of time,
|
dpdk: bump to 18.02 | @@ -24,7 +24,7 @@ DPDK_MLX5_PMD ?= n
B := $(DPDK_BUILD_DIR)
I := $(DPDK_INSTALL_DIR)
-DPDK_VERSION ?= 17.11
+DPDK_VERSION ?= 18.02
PKG_SUFFIX ?= vpp1
DPDK_BASE_URL ?= http://fast.dpdk.org/rel
DPDK_TARBALL := dpdk-$(DPDK_VERSION).tar.xz
|
Travis: Treat warnings as errors (Linux/Clang) | @@ -84,6 +84,7 @@ before_script:
- SYSTEM_DIR="$PWD/kdbsystem"
- mkdir build && cd build
- CMAKE_OPT=()
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then CMAKE_OPT+=("-DCOMMON_FLAGS=-Werror"); fi;
- echo $PATH
- plugins="ALL;-jni";
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
pack: gelf: initialize 'val_len' variable | @@ -495,7 +495,7 @@ flb_sds_t flb_msgpack_to_gelf(flb_sds_t *s, msgpack_object *o,
const char *key = NULL;
int key_len;
const char *val = NULL;
- int val_len;
+ int val_len = 0;
int quote = FLB_FALSE;
int custom_key = FLB_FALSE;
|
Ensure we exchange cookies in s_server even if SCTP is disabled | @@ -2262,11 +2262,10 @@ static int sv_body(int s, int stype, int prot, unsigned char *context)
BIO_ctrl(sbio, BIO_CTRL_DGRAM_MTU_DISCOVER, 0, NULL);
# ifndef OPENSSL_NO_SCTP
- if (prot != IPPROTO_SCTP) {
+ if (prot != IPPROTO_SCTP)
+# endif
/* Turn on cookie exchange. Not necessary for SCTP */
SSL_set_options(con, SSL_OP_COOKIE_EXCHANGE);
- }
-# endif
} else
#endif
sbio = BIO_new_socket(s, BIO_NOCLOSE);
|
RSA: only run generate key test if we have MPI HW support
Test would take too long and time out on C2. | @@ -559,7 +559,6 @@ static void rsa_key_operations(int keysize, bool check_performance, bool generat
mbedtls_rsa_free(&rsa);
}
-#endif // CONFIG_MBEDTLS_HARDWARE_MPI
TEST_CASE("mbedtls RSA Generate Key", "[mbedtls][timeout=60]")
{
@@ -598,3 +597,5 @@ TEST_CASE("mbedtls RSA Generate Key", "[mbedtls][timeout=60]")
#endif //CONFIG_MBEDTLS_MPI_USE_INTERRUPT
}
+
+#endif // CONFIG_MBEDTLS_HARDWARE_MPI
|
Fix CI master check | @@ -48,7 +48,7 @@ search () {
done
}
-submodules=("ariane" "boom" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chip" "sha3" "sifive-blocks" "sifive-cache" "testchipip" "sodor")
+submodules=("ariane" "boom" "gemmini" "hwacha" "icenet" "nvdla" "rocket-chip" "sha3" "sifive-blocks" "sifive-cache" "testchipip" "riscv-sodor")
dir="generators"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
then
|
hfuzz-cc: use clang-15 if it exists | @@ -179,6 +179,8 @@ static int execCC(int argc, char** argv) {
if (isCXX) {
/* Try the default one, then the newest ones (hopefully) in order */
hf_execvp("clang++", argv);
+ hf_execvp("clang++-15.0", argv);
+ hf_execvp("clang++-15", argv);
hf_execvp("clang++-14.0", argv);
hf_execvp("clang++-14", argv);
hf_execvp("clang++-13.0", argv);
@@ -205,6 +207,8 @@ static int execCC(int argc, char** argv) {
} else {
/* Try the default one, then the newest ones (hopefully) in order */
hf_execvp("clang", argv);
+ hf_execvp("clang-15.0", argv);
+ hf_execvp("clang-15", argv);
hf_execvp("clang-14.0", argv);
hf_execvp("clang-14", argv);
hf_execvp("clang-13.0", argv);
|
Fix hardfault when DCache is disabled with no callback | @@ -241,6 +241,7 @@ static void invalidate_cache(void)
if(disp->driver.clean_dcache_cb) disp->driver.clean_dcache_cb(&disp->driver);
else {
#if __CORTEX_M >= 0x07
+ if((SCB->CCR) & (uint32_t)SCB_CCR_DC_Msk)
SCB_CleanInvalidateDCache();
#endif
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.