message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Remove wrong file in ESP32 CMake | @@ -19,7 +19,6 @@ list(APPEND TARGET_ESP32_NANOCLR_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/nanoHAL.cp
# append target HAL source files
list(APPEND TARGET_ESP32_NANOCLR_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/targetHAL_Time.cpp")
-list(APPEND TARGET_ESP32_NANOCLR_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/targetHAL_Network.cpp")
# ... |
in_windows_exporter_metrics: use new CFL timer api | @@ -929,7 +929,7 @@ int we_perflib_update_counters(struct flb_we *ctx,
int result;
- timestamp = cmt_time_now();
+ timestamp = cfl_time_now();
result = we_perflib_query(ctx, query, &measurement);
|
add k210 to ci queue | @@ -145,6 +145,7 @@ jobs:
- {RTT_BSP: "hc32l196", RTT_TOOL_CHAIN: "sourcery-arm"}
- {RTT_BSP: "tae32f5300", RTT_TOOL_CHAIN: "sourcery-arm"}
- {RTT_BSP: "bluetrum/ab32vg1-ab-prougen", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf"}
+ - {RTT_BSP: "k210", RTT_TOOL_CHAIN: "sourcery-riscv-none-embed"}
steps:
- uses: actions... |
DSC: Fix *NIX build issues | [BuildOptions]
# While there are no PCDs as of now, there at least are some custom macros.
DEFINE OCPKG_BUILD_OPTIONS_GEN = -D DISABLE_NEW_DEPRECATED_INTERFACES $(OCPKG_BUILD_OPTIONS)
- DEFINE OCPKG_ANAL_OPTIONS_GEN = -DANALYZER_UNREACHABLE=__builtin_unreachable -DANALYZER_NORETURN=__attribute__((noreturn))
+ DEFINE OC... |
Fix dead code in sslLogCallback relating to should_log variable.
Coverity scans found that the should_log logic in sslLogCallback
is not working as expected because the variable is not correctly
initialised (the conditional code before logging always sets the
value to 1, which it already is). | @@ -82,8 +82,8 @@ redisContextFuncs redisContextSSLFuncs;
* Callback used for debugging
*/
static void sslLogCallback(const SSL *ssl, int where, int ret) {
- const char *retstr = "";
- int should_log = 1;
+ const char *retstr;
+ int should_log = 0;
/* Ignore low-level SSL stuff */
if (where & SSL_CB_ALERT) {
|
Reword description for GUC dtx_phase2_retry_second | @@ -3951,8 +3951,10 @@ struct config_int ConfigureNamesInt_gp[] =
{
{"dtx_phase2_retry_second", PGC_SUSET, GP_ARRAY_TUNING,
- gettext_noop("Maximum number of timeout during two phase commit after which master PANICs."),
- NULL,
+ gettext_noop("Maximum time for which coordinator tries to finish a prepared transaction"),... |
Travis: Please begin using Trusty. | @@ -2,21 +2,12 @@ language: cpp
os:
- linux
sudo: false
+dist: trusty
notifications:
email:
on_success: change # [always|never|change] # default: change
on_failure: always # [always|never|change] # default: always
-addons:
- apt:
- sources:
- # The cmake Travis has doesn't like the add_executable line.
- # This is the ... |
Update docs/Chipyard-Basics/Configs-Parameters-Mixins.rst [skip ci] | @@ -103,6 +103,31 @@ implementation. The lazy module defines all the logical connections between
generators and exchanges configuration information among them, while the
module implementation performs the actual Chisel RTL elaboration.
+In the MySoC example class, the "outer" ``MySoC`` instantiates the "inner"
+``MySoC... |
Add a function call, cause we can | #define N 10
+__device__ int foo(int i) { return i + 1; }
+
__global__ void addVector(int *vectorA, int *vectorB, int *vectorC) {
int i = hipBlockIdx_x;
if (i < N) {
- vectorC[i] = vectorA[i] + vectorB[i];
+ vectorC[i] = vectorA[i] + vectorB[i] + foo(i);
}
}
|
admin/prun: register openmpi4 variant | @@ -257,6 +257,8 @@ elif [ $LMOD_FAMILY_MPI == "openmpi" ];then
launch_openmpi $EXEC $ARGS
elif [ $LMOD_FAMILY_MPI == "openmpi3" ];then
launch_openmpi $EXEC $ARGS
+elif [ $LMOD_FAMILY_MPI == "openmpi4" ];then
+ launch_openmpi $EXEC $ARGS
else
_error "Unsupported or unknown MPI family -> $LMOD_FAMILY_MPI"
fi
|
Update TSCH Readme file | @@ -89,25 +89,9 @@ To use TSCH, first make sure your platform supports it.
Currently, `jn516x`, `sky`, `z1`, `cc2538dk`, `zoul`, `openmote-cc2538`, `srf06-cc26xx`, and `cooja` are the supported platforms.
To add your own, we refer the reader to the next section.
-To add TSCH to your application, first include the TSCH ... |
u3: adds u3qdb_wyt declaration | # define u3qdb_tap u3qdi_tap
u3_noun u3qdb_uni(u3_noun, u3_noun);
u3_noun u3qdb_urn(u3_noun, u3_noun);
+# define u3qdb_wyt u3qdi_wyt
u3_noun u3qdi_apt(u3_noun);
u3_noun u3qdi_bif(u3_noun, u3_noun);
|
actions: fix install dir | @@ -66,7 +66,9 @@ jobs:
brew postinstall dbus
brew services restart dbus
cmake -E make_directory ${{runner.workspace}}/build
- echo "INSTALL_DIR=${{runner.workspace}}/build/install" >> $GITHUB_ENV
+ export INSTALL_DIR=${{runner.workspace}}/build/install
+ echo $INSTALL_DIR
+ echo "INSTALL_DIR=$INSTALL_DIR" >> $GITHUB_E... |
Using engine's task instead of listen's task. | @@ -1033,6 +1033,10 @@ nxt_router_listen_socket_close(nxt_task_t *task, void *obj, void *data)
joint = listen->socket.data;
nxt_queue_remove(&listen->link);
+
+ /* 'task' refers to listen->task and we cannot use after nxt_free() */
+ task = &task->thread->engine->task;
+
nxt_free(listen);
nxt_router_listen_socket_relea... |
Return an error when trying to add rules that contain undefined permission groups. | ++ perm
|= {pax/path rit/rite}
^+ +>
+ =/ mis/(set @ta)
+ %+ roll
+ =- ~(tap in -)
+ ?- -.rit
+ $r who:(fall red.rit *rule)
+ $w who:(fall wit.rit *rule)
+ $rw (~(uni in who:(fall red.rit *rule)) who:(fall wit.rit *rule))
+ ==
+ |= {w/whom s/(set @ta)}
+ ?: |(?=($& -.w) (~(has by cez) p.w)) s
+ (~(put in s) p.w)
+ ?^ m... |
dojo: BMI260 motion sensor tuning
Tuning standard ref of BMI260 motion sensor.
BRANCH=cherry
TEST=ectool motionsense | @@ -88,6 +88,12 @@ static const mat33_fp_t lid_standard_ref = {
{ 0, 0, FLOAT_TO_FP(-1)}
};
+static const mat33_fp_t bmi260_standard_ref = {
+ { 0, FLOAT_TO_FP(-1), 0},
+ { FLOAT_TO_FP(1), 0, 0},
+ { 0, 0, FLOAT_TO_FP(1)}
+};
+
struct motion_sensor_t motion_sensors[] = {
/*
* Note: bmi160: supports accelerometer and gy... |
added devices, known as working | @@ -94,12 +94,19 @@ Manufacturers do change chipsets without changing model numbers. Sometimes they
This list is for information purposes only and should not be regarded as a binding presentation of the products:
| VENDOR MODEL | ID |
-| -------------------- | -----------------------------------------------------------... |
fix the position of ] in IPv6 stringify | @@ -144,8 +144,8 @@ void json_write_pair_c(FILE *out, const char *name, size_t name_len, const h2olo
// e.g. [2001:0db8:85a3::8a2e:0370:7334]:12345"
fputs("\"[", out);
fwrite(addr, 1, addr_len, out);
+ fputs("]\"", out);
fputc(':', out);
fprintf(out, "%" PRId32, port);
- fputs("]\"", out);
}
}
|
Validate length before use it, not vice versa.
r353060 should have contained this...
This fixes | #ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 353123 2019-10-05 13:28:01Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 353303 2019-10-08 11:07:16Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -343,11 +343,11 @@ sctp_process_asconf_delete_ip(struct... |
Properly return error on EVP_PKEY_CTX_set_dh_nid and EVP_PKEY_CTX_set_dhx_rfc5114
Fixes | @@ -1004,8 +1004,11 @@ static int fix_dh_nid(enum state state,
return 0;
if (state == PRE_CTRL_TO_PARAMS) {
- ctx->p2 = (char *)ossl_ffc_named_group_get_name
- (ossl_ffc_uid_to_dh_named_group(ctx->p1));
+ if ((ctx->p2 = (char *)ossl_ffc_named_group_get_name
+ (ossl_ffc_uid_to_dh_named_group(ctx->p1))) == NULL) {
+ ERR_... |
Nissa: modify Amber LED RGB setting
<R, G, B> = <70, 30, 0>
BRANCH=none
TEST=check Amber LED as expected | color-map-blue = < 0 0 100>;
color-map-yellow = < 0 50 50>;
color-map-white = <100 100 100>;
- color-map-amber = <100 5 0>;
+ color-map-amber = < 70 30 0>;
brightness-range = <100 100 100 0 0 0>;
|
docs: fix documentation wrongly stating ESP_SLEEP_WAKEUP_GPIO is light sleep only
ESP_SLEEP_WAKEUP_GPIO is also a valid deep sleep wakeup cause on targets
with SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
Closes | @@ -75,7 +75,7 @@ typedef enum {
ESP_SLEEP_WAKEUP_TIMER, //!< Wakeup caused by timer
ESP_SLEEP_WAKEUP_TOUCHPAD, //!< Wakeup caused by touchpad
ESP_SLEEP_WAKEUP_ULP, //!< Wakeup caused by ULP program
- ESP_SLEEP_WAKEUP_GPIO, //!< Wakeup caused by GPIO (light sleep only)
+ ESP_SLEEP_WAKEUP_GPIO, //!< Wakeup caused by GPI... |
Add correct flags for CLANG_CL | @@ -2385,15 +2385,7 @@ SSE41_CFLAGS=
AVX_CFLAGS=
AVX2_CFLAGS=
when ($ARCH_X86_64 || $ARCH_I386) {
- when ($MSVC) {
- SSE2_CFLAGS=/D__SSE2__=1
- SSE3_CFLAGS=/D__SSE3__=1
- SSSE3_CFLAGS=/D__SSSE3__=1
- SSE41_CFLAGS=/D__SSE41__=1
- AVX_CFLAGS=/arch:AVX
- AVX2_CFLAGS=/arch:AVX2
- }
- elsewhen ($CLANG || $GCC) {
+ when ($CL... |
BugID:17787848:[PreValidate] Add SYSINFO_ARCH/SYSINFO_MCU define for yts certificate | @@ -183,6 +183,8 @@ endif
GLOBAL_CFLAGS += -DSYSINFO_PRODUCT_MODEL=\"$(CONFIG_SYSINFO_PRODUCT_MODEL)\"
GLOBAL_CFLAGS += -DSYSINFO_DEVICE_NAME=\"$(CONFIG_SYSINFO_DEVICE_NAME)\"
+GLOBAL_CFLAGS += -DSYSINFO_ARCH=\"$(HOST_ARCH)\"
+GLOBAL_CFLAGS += -DSYSINFO_MCU=\"$(HOST_MCU_FAMILY)\"
# Keil project support
$(NAME)_KEIL_VEN... |
Use `runpy` to run modules | This script asks user for input and runs the given command.
"""
-import importlib
import os
import os.path
import sys
import traceback
import pyto
+import runpy
if len(sys.argv) == 1:
usage = "Usage: <module-name> [<args>]"
@@ -31,28 +31,11 @@ def main():
bin = os.path.expanduser("~/Documents/stash_extensions/bin")
sys... |
apps/examples/procfs_test: Fix wrong entry function name
Fix wrong entry function name to 'procfs_test_main' | @@ -200,7 +200,7 @@ static int read_pid_entry(FAR const char *dirpath, FAR struct dirent *entryp, FA
#ifdef CONFIG_BUILD_KERNEL
int main(int argc, FAR char *argv[])
#else
-int proc_test_main(int argc, char *argv[])
+int procfs_test_main(int argc, char *argv[])
#endif
{
int ret;
|
Specify input types actions | res)
(defn reverse
- "Reverses the order of the elements in a given array or tuple and returns it
+ "Reverses the order of the elements in a given array or buffer and returns it
mutated."
[t]
(def len-1 (- (length t) 1))
(defn reversed
"Reverses the order of the elements in a given array or tuple and returns
- a new ar... |
only frequencies between 2400 and 7000MHz are valid | @@ -819,7 +819,7 @@ if(eapolmsgerrorcount > 0) fprintf(stdout, "EAPOL messages (malformed packets).
c = 0;
fprintf(stdout, "\nfrequency statistics (frequency: received packets)\n"
"--------------------------------------------------\n");
-for(p = 0; p < 0xffff; p ++)
+for(p = 2400; p < 7000; p ++)
{
if(usedfrequency[p] ... |
tls13:server:Add finalize write_server_hello and dummy body | @@ -759,6 +759,21 @@ static int ssl_tls13_prepare_server_hello( mbedtls_ssl_context *ssl )
return( ret );
}
+static int ssl_tls13_write_client_hello_body( mbedtls_ssl_context *ssl,
+ unsigned char *buf,
+ unsigned char *end,
+ size_t *out_len )
+{
+ return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
+}
+
+
+static int ssl_... |
fixing kink~ | * For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
-/* CHECKED negative float in 2nd inlet: "illegal slope value %f",
- but no complaints for signal input -- this is impossible in Pd.
- The only thing we could do (and a bit stup... |
cr50: prepare to release 0.4.20
BRANCH=cr50
TEST=none | "timestamp": 0,
"epoch": 0, // FWR diversification contributor, 32 bits.
"major": 4, // FW2_HIK_CHAIN counter.
- "minor": 19, // Mostly harmless version field.
+ "minor": 20, // Mostly harmless version field.
"applysec": -1, // Mask to and with fuse BROM_APPLYSEC.
"config1": 13, // Which BROM_CONFIG1 actions to take be... |
esp32/machine_pin: Add new PULL_HOLD pin pull mode. | #include "machine_rtc.h"
#include "modesp32.h"
+// Used to implement gpio_hold_en() functionality; value should be distinct from all IDF pull modes
+#define GPIO_PULLHOLD (8)
+
typedef struct _machine_pin_obj_t {
mp_obj_base_t base;
gpio_num_t id;
@@ -168,7 +171,15 @@ STATIC mp_obj_t machine_pin_obj_init_helper(const m... |
Current directory variable $(CURDIR) instead of "/path/to/vplanet/" (in right branch)
This will allow anybody to immediately use the copied line without having to edit it. | @@ -22,7 +22,7 @@ default:
@echo 'tsch: set path=($$path /path/to/vplanet/)'
@echo 'csh : set path=($$path /path/to/vplanet/)'
@echo 'or permanently add the VPLanet directory to the $$PATH by editing the appropriate environment file. e.g.:'
- @echo 'bash: echo '"'"'export PATH=$$PATH:/path/to/vplanet/'"'"' >> ~/.bashrc... |
NetKVM: LockFreeQueue: Fix Dequeue methods | @@ -248,6 +248,11 @@ public:
TEntryType *Dequeue()
{
TEntryType * ptr = m_Queue.Dequeue();
+ if (ptr == nullptr)
+ {
+ FillQueue();
+ ptr = m_Queue.Dequeue();
+ }
DecrementCount(ptr != nullptr);
return ptr;
}
@@ -257,6 +262,11 @@ public:
TEntryType *DequeueMC()
{
TEntryType * ptr = m_Queue.DequeueMC();
+ if (ptr == nul... |
CI: rework compile test | @@ -29,7 +29,7 @@ TOOLS= tools sky
TOOLSDIR=../../tools
TESTLOGS=$(patsubst %,%.testlog, $(TOOLS))
-all: summary
+all: clean summary
tools.testlog:
@echo -n Building tool: $(basename $@)
|
Add vendor string Shanghai as the successor to Centaur | @@ -283,6 +283,7 @@ int get_vendor(void){
if (!strcmp(vendor, "CyrixInstead")) return VENDOR_CYRIX;
if (!strcmp(vendor, "NexGenDriven")) return VENDOR_NEXGEN;
if (!strcmp(vendor, "CentaurHauls")) return VENDOR_CENTAUR;
+ if (!strcmp(vendor, " Shanghai ")) return VENDOR_CENTAUR;
if (!strcmp(vendor, "RiseRiseRise")) retu... |
Documentation: add pointer to the documentation generation in GSG
Add a pointer to the documentation generation tutorial from the
Getting Started Guide (in the "Building ACRN") section. | @@ -514,6 +514,9 @@ The build results are found in the ``build`` directory.
artefacts, set the ``O`` (that is capital letter 'O') to the
desired value. Example: ``make O=build-uefi PLATFORM=uefi``.
+Generating the documentation is decribed in details in the :ref:`acrn_doc`
+tutorial.
+
You can also build these componen... |
[apps] Remove initial latency from benchmark B | @@ -245,6 +245,11 @@ void systolic_rcp_pe(const uint32_t rep_count,
// Set data offset depending on PE position
data_offset = 0;
+ // Start benchmark (remove initial latency from benchmark)
+ // (we could use any data, data_* chosen arbitrarily)
+ blocking_queue_push(queue_next_horz, &data_horz);
+ blocking_queue_push(... |
Fix dangling pointer reference in stream_cleanup_files.
We can't access the entry after it is removed from dynahash.
Author: Peter Smith
Discussion: | @@ -2740,14 +2740,14 @@ stream_cleanup_files(Oid subid, TransactionId xid)
{
char path[MAXPGPATH];
StreamXidHash *ent;
+ bool found = false;
- /* Remove the xid entry from the stream xid hash */
+ /* By this time we must have created the transaction entry */
ent = (StreamXidHash *) hash_search(xidhash,
(void *) &xid,
-... |
some sfx processing minor fixes | #define MIN_PERIOD_VALUE 10
#define MAX_PERIOD_VALUE 4096
#define BASE_NOTE_FREQ 440.0
-#define BASE_NOTE_POS 49
+#define BASE_NOTE_POS 49.0
#define ENVELOPE_FREQ_SCALE 2
#define NOTES_PER_MUNUTE (TIC_FRAMERATE / NOTES_PER_BEET * 60)
#define min(a,b) ((a) < (b) ? (a) : (b))
@@ -89,14 +89,14 @@ static void update_amp(bl... |
docs: update on expression with stack api usage regard the stack setup. | @@ -33,17 +33,12 @@ The usage may looks like the code below:
//Allocate a stack buffer, from heap or as a static form:
portSTACK_TYPE *shared_stack = malloc(8192 * sizeof(portSTACK_TYPE));
- //points to the top of stack, that is it the last word of allocated buffer:
- portSTACK_TYPE *ext_stack_top = (portSTACK_TYPE *)&... |
Don't test SRP when it's disabled | @@ -363,11 +363,15 @@ SKIP: {
"NPN handshake test");
}
+SKIP: {
+ skip "No SRP support in this OpenSSL build", 1
+ if disabled("srp");
+
#Test 20: SRP extension
-#Note: We are not actually going to perform an SRP handshake (TLSProxy does not
-#support it). However it is sufficient for us to check that the SRP extension... |
usrsock_server: combine response and events when socket setup case | @@ -234,6 +234,7 @@ static int usrsock_rpmsg_socket_handler(struct rpmsg_endpoint *ept,
{
struct usrsock_request_socket_s *req = data;
struct usrsock_rpmsg_s *priv = priv_;
+ uint16_t events = 0;
int i;
int retr;
int ret = -ENFILE;
@@ -250,6 +251,10 @@ static int usrsock_rpmsg_socket_handler(struct rpmsg_endpoint *ept,... |
dssframesync: fixing braces/scope | @@ -298,8 +298,10 @@ int dsssframesync_execute_seekpn(dsssframesync _q, float complex _x)
float complex * v = qdetector_cccf_execute(_q->detector, _x);
// check if frame has been detected
+ printf("seeking pn...\n");
if (v == NULL)
return LIQUID_OK;
+ printf("FRAME DETECTED\n");
// get estimates
_q->tau_hat = qdetector... |
Fixed typos in Kconfig
mesage -> message
memmory -> memory | @@ -89,7 +89,7 @@ config RT_USING_I2C
if RT_USING_I2C
config RT_I2C_DEBUG
- bool "Use I2C debug mesage"
+ bool "Use I2C debug message"
default n
config RT_USING_I2C_BITOPS
@@ -99,7 +99,7 @@ endif
if RT_USING_I2C_BITOPS
config RT_I2C_BITOPS_DEBUG
- bool "Use simulate I2C debug mesage"
+ bool "Use simulate I2C debug mess... |
mount-info: fix ini linecontinuation | @@ -28,8 +28,8 @@ else
FOLDER="$1"
fi
-$KDB mount $FOLDER/METADATA.ini "$MOUNTPOINT/metadata/#0" ini
-$KDB mount $FOLDER/CONTRACT.ini "$MOUNTPOINT/contract/#0" ini
+$KDB mount $FOLDER/METADATA.ini "$MOUNTPOINT/metadata/#0" ini -c linecont=" "
+$KDB mount $FOLDER/CONTRACT.ini "$MOUNTPOINT/contract/#0" ini -c linecont=" ... |
rune/libenclave/skeleton: run an enclave ecall exapmle in pal v3 | @@ -20,6 +20,7 @@ int pal_get_version(void)
int pal_init(pal_attr_v3_t *attr)
{
int ret;
+ char *result;
parse_args(attr->attr_v1.args);
@@ -32,18 +33,31 @@ int pal_init(pal_attr_v3_t *attr)
if (attr->fd != -1 && attr->addr != 0) {
enclave_fd = attr->fd;
secs.base = attr->addr;
- initialized = true;
- return 0;
+ goto ... |
Separate function calls out into two stages | @@ -14,7 +14,8 @@ static Value typeNative(DictuVM *vm, int argCount, Value *args) {
}
int length = 0;
- return OBJ_VAL(takeString(vm, valueTypeToString(vm, args[0], &length), length));
+ char *type = valueTypeToString(vm, args[0], &length);
+ return OBJ_VAL(takeString(vm, type, length));
}
static Value setNative(DictuV... |
chat-cli: proper prefix for tab completion | ::
++ tab-list
|= sole-id=@ta
- tab-list:sh:tc
+ %+ turn tab-list:sh:tc
+ |= [term=cord detail=tank]
+ [(cat 3 ';' term) detail]
::
++ on-command
|= [sole-id=@ta =command]
|
Add model number for Tiger Lake H (mobile variant) | @@ -663,7 +663,7 @@ static gotoblas_t *get_coretype(void){
return NULL;
case 9:
case 8:
- if (model == 12) { // Tiger Lake
+ if (model == 12 || model == 13) { // Tiger Lake
if (support_avx512())
return &gotoblas_SKYLAKEX;
if(support_avx2()){
|
Added split build directories | @@ -62,26 +62,27 @@ west build -b planck_rev6
```
### Pristine Building
-When building for a new board and/or shield after having built one previously, you may need to enable the pristine build option. This option removes all existing files in the build directory and regenerates them, and can be enabled by adding eithe... |
ulp risc_v: fix bug about bit for wakeup trigger | typedef struct {
esp_sleep_pd_option_t pd_options[ESP_PD_DOMAIN_MAX];
uint64_t sleep_duration;
- uint32_t wakeup_triggers : 11;
+ uint32_t wakeup_triggers : 15;
uint32_t ext1_trigger_mode : 1;
uint32_t ext1_rtc_gpio_mask : 18;
uint32_t ext0_trigger_level : 1;
|
vppinfra: fix typo in tw_timer_template.c
Fix minor memory leak
Type: fix
Ticket:
Fixes: | @@ -476,7 +476,7 @@ void TW (tw_timer_wheel_free) (TWT (tw_timer_wheel) * tw)
}
}
-#if TW_OVERFLOW_VECVOR > 0
+#if TW_OVERFLOW_VECTOR > 0
ts = &tw->overflow;
head = pool_elt_at_index (tw->timers, ts->head_index);
next_index = head->next;
|
docs: remove older ntp instructions for leap/WW | @@ -25,10 +25,6 @@ example configuration.
[sms](*\#*) exportfs -a
[sms](*\#*) systemctl restart nfs-server
[sms](*\#*) systemctl enable nfs-server
-
-# Enable NTP time service on computes and identify master host as local NTP server
-[sms](*\#*) echo "server ${sms_ip}" >> $CHROOT/etc/chrony.conf
-[sms](*\#*) cp /etc/nt... |
Update joy.c
Changed joyAxisY[port] in static u16 readMouse(u16 port) as Y axis was wrong (input was correctly captured but direction reversed). | @@ -768,7 +768,7 @@ static u16 readMouse(u16 port)
if (md[0] & 0x02)
my |= my ? 0xFF00 : 0xFFFF; /* y sign extend */
joyAxisX[port] += (s16)mx;
- joyAxisY[port] += (s16)my;
+ joyAxisY[port] -= (s16)my;
if (md[1] & 8) val |= BUTTON_START;
if (md[1] & 4) val |= BUTTON_MMB;
|
Support job-uri's of the form 'ipp://host/ipp/print/nnn'. | @@ -6057,6 +6057,8 @@ serverProcessIPP(
if ((resptr = strchr(resource + 11, '/')) != NULL)
*resptr = '\0';
+ else
+ resource[11] = '\0';
if ((client->printer = serverFindPrinter(resource)) == NULL)
{
|
remove delete -pcd LSA from OS builds
ndctl provides zero-label with proper checks | #include "Common.h"
#include "ShowFirmwareCommand.h"
#include "ShowPcdCommand.h"
-#include "DeletePcdCommand.h"
#include "StartFormatCommand.h"
#include "ShowPreferencesCommand.h"
#include "SetPreferencesCommand.h"
#include "DumpSupportCommand.h"
extern void nvm_current_cmd(struct Command Command);
#else
+#include "Del... |
Make sure OSSL_STORE_load() isn't caught in an endless loop
The post process callback might potentially say "no" to everything (by
constantly returning NULL) and thereby cause an endless loop. Ensure
that we stop all processing when "eof" is reached. | @@ -90,6 +90,9 @@ OSSL_STORE_INFO *OSSL_STORE_load(OSSL_STORE_CTX *ctx)
OSSL_STORE_INFO *v = NULL;
again:
+ if (OSSL_STORE_eof(ctx))
+ return NULL;
+
v = ctx->loader->load(ctx->loader_ctx, ctx->ui_method, ctx->ui_data);
if (ctx->post_process != NULL && v != NULL) {
|
hw/mcu/stm/stm32_common: SPI_4 and SPI_5 definitions.
Missing SPI definitions on STM32 common drivers. HAL is ready to
use SPI_4 and SPI_5 but they are not expanded from application. | @@ -283,17 +283,17 @@ syscfg.defs:
value: ''
SPI_3_MASTER:
- description: 'SPI 2 master'
+ description: 'SPI 3 master'
value: 0
restrictions:
- "!SPI_3_SLAVE"
SPI_3_SLAVE:
- description: 'SPI 2 slave'
+ description: 'SPI 3 slave'
value: 0
restrictions:
- "!SPI_3_MASTER"
SPI_3:
- description: 'SPI 2 enabled'
+ descripti... |
py/obj.h: Use uint64_t instead of mp_int_t in repr-D MP_OBJ_IS_x macros.
This follows how it's already done in MP_OBJ_IS_OBJ: the objects are
considered 64-bit unsigned ints for the purpose of bitwise manipulation. | @@ -171,12 +171,12 @@ static inline bool MP_OBJ_IS_OBJ(mp_const_obj_t o)
#elif MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_D
static inline bool MP_OBJ_IS_SMALL_INT(mp_const_obj_t o)
- { return ((((mp_int_t)(o)) & 0xffff000000000000) == 0x0001000000000000); }
+ { return ((((uint64_t)(o)) & 0xffff000000000000) == 0x000100000000... |
added VTK libraries to the link list | @@ -172,7 +172,8 @@ VISIT_INSTALL_TARGETS(simV2runtime_ser)
IF(VISIT_PARALLEL)
ADD_PARALLEL_LIBRARY(simV2runtime_par ${LIBSIM_RUNTIME_SOURCES} ${LIBSIM_STATIC_SOURCES})
- TARGET_LINK_LIBRARIES(simV2runtime_par engine_par ${LIBSIM_RUNTIME_VIEWER_LIBS_PAR})
+# TARGET_LINK_LIBRARIES(simV2runtime_par engine_par vtksys vtkp... |
Fix linux-build.sh for .NETCore 2.1 | @@ -9,7 +9,7 @@ echo "Building into $BUILDIR"
# publish
mkdir -p $BUILDIR
-dotnet publish -c Release --framework netcoreapp2.0 -o $BUILDIR
+dotnet publish -c Release --framework netcoreapp2.1 -o $BUILDIR
# build libcryptonote
(cd ../Native/libcryptonote && make)
|
simpler usage | # xmake getter
# usage: (in powershell)
-# Invoke-Webrequest <my location> -OutFile get.ps1
-# . .\get.ps1
+# Invoke-Expression (Invoke-Webrequest <my location> -UseBasicParsing).Content
$ver='v2.1.3'
Invoke-Webrequest "https://github.com/tboox/xmake/releases/download/$ver/xmake-$ver.exe" -OutFile "$pid-xmake-installer... |
Update readme.md
Add new benchmark figures | @@ -264,11 +264,13 @@ with 128GB ECC memory, running Ubuntu 18.04.1 with LibC 2.27 and GCC 7.3.0.
The first benchmark set consists of programs that allocate a lot:
-
+
+
Memory usage:
-![bench-r5a-... |
libbarrelfish: pmap serialisation: global mapping cnodes: allocate mapping cnodes in deserialise() when GLOBAL_MCN is set | @@ -165,7 +165,7 @@ static errval_t deserialise_tree(struct pmap *pmap, struct serial_entry **in,
pmapx->used_cap_slots ++;
*/
-#if 0
+#if GLOBAL_MCN
/* allocate mapping cnodes */
for (int i = 0; i < MCN_COUNT; i++) {
err = cnode_create_l2(&n->u.vnode.mcn[i], &n->u.vnode.mcnode[i]);
|
Fixed spelling mistakes of function
LPC17xx_SD_WirteDataBlock -> LPC17xx_SD_WriteDataBlock | @@ -32,7 +32,7 @@ static uint8_t LPC17xx_SD_SendCmd(uint8_t cmd, uint32_t arg);
static bool LPC17xx_SD_ReadSector(uint32_t sector, uint8_t *buff, uint32_t count);
static bool LPC17xx_SD_ReadDataBlock(uint8_t *buff, uint32_t cnt);
static bool LPC17xx_SD_WriteSector(uint32_t sector, const uint8_t *buff, uint32_t count);
... |
util/mkdef.pl: handle line terminators correctly
When parsing the header files, mkdef.pl didn't clear the line
terminator properly. In most cases, this didn't matter, but there
were moments when this caused parsing errors (such as CRLFs in certain
cases).
Fixes | @@ -412,10 +412,10 @@ sub do_defs
print STDERR "DEBUG: parsing ----------\n" if $debug;
while(<IN>) {
+ s|\R$||; # Better chomp
if($parens > 0) {
#Inside a DEPRECATEDIN
$stored_multiline .= $_;
- $stored_multiline =~ s|\R$||; # Better chomp
print STDERR "DEBUG: Continuing multiline DEPRECATEDIN: $stored_multiline\n" if... |
docs/contributors: add credit for docs | @@ -104,6 +104,7 @@ Notable contributors
----------------------------------------------
- Add new DCD port for Silabs EFM32GG12 with SLTB009A board
+- Rewrite documentation in rst and setup for readthedocs
`Raspberry Pi Team <https://github.com/raspberrypi>`__
|
Seg fault bug fix when isValidJoin fails. | @@ -618,8 +618,6 @@ port_INLINE void activity_synchronize_endOfFrame(PORT_TIMER_WIDTH capturedTime)
// before authenticating the beacon, because nonce is created from the ASN
if (!ieee154e_vars.isSync && ieee802514_header.frameType == IEEE154_TYPE_BEACON) {
if (!isValidJoin(ieee154e_vars.dataReceived, &ieee802514_heade... |
Fix compatibility with old CMake versions | -cmake_minimum_required(VERSION 3.18)
+cmake_minimum_required(VERSION 3.3)
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
@@ -226,8 +226,14 @@ target_include_directories(wren PRIVATE ${THIRDPARTY_DIR}/wren/src/vm)
# MRUBY
################################
-find_program(RAKE_EXE rake REQUIRED)
-find_program(YACC_EXE yacc REQU... |
OcBootManagementLib: Add missing LF | @@ -1682,7 +1682,7 @@ AddFileSystemEntryForCustom (
if (EFI_ERROR (Status)) {
DEBUG ((
DEBUG_WARN,
- "OCB: Failed to add custom entry %a - %r",
+ "OCB: Failed to add custom entry %a - %r\n",
BootContext->PickerContext->CustomEntries[Index].Name,
Status
));
|
Early out candidate search on first failure | @@ -1277,6 +1277,11 @@ unsigned int compute_ideal_endpoint_formats(
{
errors_of_best_combination[best_error_index] = 1e30f;
}
+ // Early-out if no more candidates are valid
+ else
+ {
+ break;
+ }
}
for (unsigned int i = 0; i < tune_candidate_limit; i++)
|
Read scene from banked data and use that to find image to load | @@ -38,7 +38,7 @@ void SceneRender();
void SceneInit_b()
{
- UBYTE imageIndex;
+ UWORD sceneIndex, imageIndex;
BANK_PTR bank_ptr;
UWORD ptr;
UBYTE tilesetIndex, width, height;
@@ -50,7 +50,11 @@ void SceneInit_b()
WX_REG = MAXWNDPOSX;
WY_REG = MAXWNDPOSY;
- imageIndex = 10;
+ sceneIndex = 16;
+ ReadBankedBankPtr(16, &b... |
in_netif: don't discard return value of init_entry_linux | @@ -144,9 +144,7 @@ static int configure(struct flb_in_netif_config *ctx,
ctx->first_snapshot = FLB_TRUE; /* assign first_snapshot with FLB_TRUE */
- init_entry_linux(ctx);
-
- return 0;
+ return init_entry_linux(ctx);
}
static inline int is_specific_interface(struct flb_in_netif_config *ctx,
|
forward libc interface used by wasi-libc; originally by in PR but rebased to the dev branch | @@ -262,7 +262,15 @@ int reallocarr(void* p, size_t count, size_t size) { return mi_reallocarr(p
void* memalign(size_t alignment, size_t size) { return mi_memalign(alignment, size); }
void* _aligned_malloc(size_t alignment, size_t size) { return mi_aligned_alloc(alignment, size); }
-#if defined(__GLIBC__) && defined(__... |
CLEANUP: change assert condition to support all item types.
Previously, it was a function to support only collection types,
but we changed the assert condition to support all item types. | @@ -300,7 +300,7 @@ bool prefix_issame(prefix_t *pt, const char *prefix, const int nprefix)
void prefix_bytes_incr(prefix_t *pt, ENGINE_ITEM_TYPE item_type, const uint32_t bytes)
{
/* It's called when a collection element is inserted */
- assert(item_type > ITEM_TYPE_KV && item_type < ITEM_TYPE_MAX);
+ assert(item_type... |
Fix undefined behavior and warning with clang
This fixes a warning from clang about undefined behavior:
error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] | @@ -4076,15 +4076,14 @@ static void usage(void) {
printf(" - ssl_session_cache: enable server-side SSL session cache, to support session\n"
" resumption\n"
" - ssl_kernel_tls: enable kernel TLS offload\n"
- " - ssl_min_version: minimum protocol version to accept (default: %s)\n"
+ " - ssl_min_version: minimum protocol ... |
media: Check if process_handler is already set
if register_stream_in_device_process_handler is not NULL,
process_handler is already registered.
So just return AUDIO_MANAGER_SUCCESS | @@ -1619,6 +1619,12 @@ audio_manager_result_t register_stream_in_device_process_handler(int card_id, in
card = &g_audio_in_cards[card_id];
config = &card->config[device_id];
+ if (config->process_handler != NULL)
+ {
+ medvdbg("Handler is already registered\n");
+ return AUDIO_MANAGER_SUCCESS;
+ }
+
process_type = get_... |
BugID: update udevapp README | @@ -40,6 +40,7 @@ udevapp
### Running
> need to update `aos-cube` to 0.3.0 or later
+> if using `AliOS Studio`, need to update `AliOS Studio` to 0.10.9 or later.
Before running `aos ota udevapp@xxxx`, you need to set the `productKey` and `deviceName`, typing blow commands in board's console:
@@ -65,6 +66,10 @@ Once don... |
Add a test demonstrating a memory leak in cbor_builder_byte_string_callback | @@ -138,6 +138,39 @@ static void test_builder_byte_string_callback_append_item_alloc_failure(
_cbor_stack_pop(&stack);
}
+static void test_builder_byte_string_callback_append_parent_alloc_failure(
+ void** _CBOR_UNUSED(_state)) {
+ struct _cbor_stack stack = _cbor_stack_init();
+ _cbor_stack_push(&stack, cbor_new_indef... |
Fixed typo on README.md. | -City GoAccess [](http://travis-ci.org/allinurl/goaccess) [](http://goaccess.io)
-6=======
+GoAccess [](http://travis-ci.org/alli... |
[awm2] Prevent windows from being resized too small | @@ -834,10 +834,14 @@ impl Desktop {
{
//println!("\tResizing hover window");
let old_frame = resized_window.frame();
- let new_frame = self.bind_rect_to_screen_size(
+ let mut new_frame = self.bind_rect_to_screen_size(
old_frame.replace_size(old_frame.size + Size::new(rel_shift.x, rel_shift.y)),
);
+ // Don't let the ... |
Eliminated unnecessary swapping of the persistent memory indexes. | @@ -522,9 +522,9 @@ GetDimmsCurrentConfig(
**/
if (ISsNum > 1) {
for (Index = 0; Index < DimmConfigsNum; Index++) {
- for (Index2 = 0; Index2 < DimmConfigsNum; Index2++) {
- if ((pDimmConfigs[Index].Persistent[0].PersistentIndex == pDimmConfigs[Index2].Persistent[1].PersistentIndex) ||
- (pDimmConfigs[Index].Persistent... |
first take at filetype functionality | @@ -33,6 +33,7 @@ before used to always bang on callback, now only bangs now due to new x->x_fileb
#define COLLTHREAD 1 //default is threaded
#define COLLEMBED 0 //default for save in patch
#define COLL_ALLBANG 1 //bang all when read instead of specific object
+#define COLL_FILENAME 100 //filename max size
enum { COLL_... |
HV: Initialize one variable to fix the compiling warning
If the optimization option is enabled, it is possible that one variable is
not initialized before using in the get_vioapic_info. (In fact the warning is
bogus)
This is only to reduce the compiling warning. | @@ -636,6 +636,7 @@ int get_vioapic_info(char *str, int str_max, int vmid)
size -= len;
str += len;
+ rte = 0;
for (pin = 0 ; pin < vioapic_pincount(vm); pin++) {
vioapic_get_rte(vm, pin, (void *)&rte);
low = rte;
|
[deb] - Add dependencies for debian packages. | @@ -10,9 +10,8 @@ Homepage: http://github.com/ROCm-Developer-Tools/aomp
Package: aomp
Architecture: amd64
#Depends: ${shlibs:Depends},${misc:Depends}
-Depends: ${misc:Depends}
+Depends: gcc, g++, libelf-dev, libdrm-amdgpu1, libnuma-dev
Description: AOMP is an experimental OpenMP compiler
LLVM 15.0 for offloading to eit... |
add vnet/util/radix.h to nobase_include_HEADERS list
header is included by ip6.h and should therefore be made public | @@ -62,7 +62,8 @@ nobase_include_HEADERS += \
vnet/rewrite.h \
vnet/vnet.h \
vnet/vnet_all_api_h.h \
- vnet/vnet_msg_enum.h
+ vnet/vnet_msg_enum.h \
+ vnet/util/radix.h
API_FILES += vnet/interface.api
|
Vertcoin caveats | @@ -40,6 +40,10 @@ Refer to [this file](https://github.com/coinfoundry/miningcore/blob/master/src/M
- Claymore Miner must be configured to communicate using this protocol by supplying the `-esm 3` command line option
- Genoil's `ethminer` must be configured to communicate using this protocol by supplying the `-SP 2` co... |
arch/stm32l4: Fix usages of undefined function.
Fix unsages of undefined function, sem_wait/post and ferr/info. | #include <tinyara/arch.h>
#include <tinyara/progmem.h>
+#include <debug.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
@@ -126,7 +127,7 @@ static inline void sem_lock(void)
{
/* Take the semaphore (perhaps waiting) */
- ret = nxsem_wait(&g_sem);
+ ret = sem_wait(&g_sem);
/* The only case that an error... |
%new story diffs over /burden now get treated as burdens. | (so-hear:sor & [our.bol nom.dif] dif.dif)
::
$new
- ::TODO? shouldn't this act the same as $burden in ++ta-take?
=< so-done
- %- ~(so-hear so nom.dif ~ (fall (~(get by stories) nom.dif) *story))
- [& [our.bol nom.dif] %bear ~ [cof.dif.dif ~] [~ ~]]
+ %- ~(so-bear so nom.dif ~ (fall (~(get by stories) nom.dif) *story))
... |
ec key validation checks updated | @@ -1855,7 +1855,59 @@ err:
OPENSSL_free(buf);
return r;
}
-#endif
+
+static int check_ec_key_field_public_range_test(int id)
+{
+ int ret = 0, type = 0;
+ const EC_POINT *pub = NULL;
+ const EC_GROUP *group = NULL;
+ const EC_METHOD *meth = NULL;
+ const BIGNUM *field = NULL;
+ BIGNUM *x = NULL, *y = NULL;
+ EC_KEY *k... |
Fixed measurements buffer cast
Trying a cast to uint8_t* | @@ -855,7 +855,7 @@ SURVIVE_EXPORT void survive_optimizer_setup_buffers(survive_optimizer *ctx, void
size_t measurementAllocSize =
ctx->poseLength * sizeof(survive_optimizer_measurement) * 2 * sensor_cnt * NUM_GEN2_LIGHTHOUSES;
memset(ctx->measurements, 0, measurementAllocSize);
- ctx->obj_up_vectors = (survive_optimiz... |
http3: check the pointer before dereferencing | @@ -321,6 +321,8 @@ static void control_stream_handle_input(h2o_http3_conn_t *conn, struct st_h2o_ht
static void discard_handle_input(h2o_http3_conn_t *conn, struct st_h2o_http3_ingress_unistream_t *stream, const uint8_t **src,
const uint8_t *src_end, int is_eos)
{
+ if (src == NULL)
+ return;
*src = src_end;
}
|
update to cibuildwheels 2.4 | @@ -56,7 +56,7 @@ jobs:
- name: Build wheels for linux
if: runner.os == 'Linux'
- uses: pypa/cibuildwheel@v2.2.2
+ uses: pypa/cibuildwheel@v2.4.0
env:
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_SKIP: "*musllinux*"
@@ -65,7 +65,7 @@ jobs:
- name: Build wheels for macos
if: runner.os != 'Linux'
- uses: pypa/cibuildwheel@v... |
Match variable style syntax per Cary | @@ -90,10 +90,10 @@ If you are building dynamic libraries, once you have configured, built,
and installed the libraries, you should see the following pattern of
symlinks and files in the install lib folder:
- libHalf.so -> libHalf-LIB_SUFFIX.so
- libHalf-LIB_SUFFIX.so -> libHalf-LIB_SUFFIX.so.SO_MAJOR_VERSION
- libHalf... |
feat(ci): update known_failure_cases_repo before running tests | # clone test env configs
- retry_failed git clone $TEST_ENV_CONFIG_REPO
- python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
- - cd tools/ci/python_packages/tiny_test_fw/bin
+ # git clone the known failure cases repo, run test
+ - retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cas... |
That error message was such a liar; | @@ -35,7 +35,7 @@ bool luax_checkvertexformat(lua_State* L, int index, VertexFormat* format) {
}
int length = lua_objlen(L, index);
- lovrAssert(length <= 8, "Only 8 vertex attributes are supported");
+ lovrAssert(length <= 8, "Up to 8 vertex attributes are supported");
for (int i = 0; i < length; i++) {
lua_rawgeti(L,... |
CLEANUP: current LSN is returned in do_log_buff_write(). | @@ -341,19 +341,16 @@ static uint32_t do_log_buff_flush(bool flush_all)
return nflush;
}
-static void do_log_buff_write(LogRec *logrec, log_waiter_t *waiter, bool dual_write)
+static LogSN do_log_buff_write(LogRec *logrec, bool dual_write)
{
log_BUFFER *logbuff = &log_gl.log_buffer;
+ LogSN current_lsn;
uint32_t total_... |
log name of min ack delay tp | @@ -438,6 +438,9 @@ char const* picoquic_log_tp_name(uint64_t tp_number)
case picoquic_tp_enable_one_way_delay:
tp_name = "enable_one_way_delay";
break;
+ case picoquic_tp_min_ack_delay:
+ tp_name = "min_ack_delay";
+ break;
default:
break;
}
|
esp32/mpconfigport.h: Enable MICROPY_PY_DELATTR_SETATTR.
To align with unix and stm32 ports. | // control over Python builtins
#define MICROPY_PY_FUNCTION_ATTRS (1)
#define MICROPY_PY_DESCRIPTORS (1)
+#define MICROPY_PY_DELATTR_SETATTR (1)
#define MICROPY_PY_STR_BYTES_CMP_WARN (1)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
#define MICROPY_PY_BUILTINS_STR_CENTER (1)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.