message
stringlengths
6
474
diff
stringlengths
8
5.22k
testcase/task_manager : Add task_manager_getinfo_with_pid TC Add positive and negative TCs for task_manager_getinfo_with_pid()
#define TM_INVALID_PERMISSION -2 #define TM_INVALID_MSG_MASK -2 #define TM_INVALID_BROAD_MSG -2 +#define TM_INVALID_PID -2 #define TM_BROAD_TASK_NUM 2 #define TM_BROAD_WIFI_ON_DATA 1 #define TM_BROAD_WIFI_OFF_DATA 2 @@ -68,6 +69,7 @@ static int broad_wifi_on_cnt; static int broad_wifi_off_cnt; static int broad_undefined_cnt; static int pid_tm_utc; +static int handle_tm_utc; static sem_t tm_broad_sem; @@ -839,6 +841,31 @@ static void utc_task_manager_dealloc_broadcast_msg_p(void) TC_SUCCESS_RESULT(); } +static void utc_task_manager_getinfo_with_pid_n(void) +{ + app_info_t *ret; + + ret = task_manager_getinfo_with_pid(pid_tm_utc, TM_NO_RESPONSE); + TC_ASSERT_EQ("task_manager_getinfo_with_pid", ret, NULL); + + ret = task_manager_getinfo_with_pid(TM_INVALID_PID, TM_RESPONSE_WAIT_INF); + TC_ASSERT_EQ("task_manager_getinfo_with_pid", ret, NULL); + + TC_SUCCESS_RESULT(); +} + +static void utc_task_manager_getinfo_with_pid_p(void) +{ + app_info_t *ret; + + ret = task_manager_getinfo_with_pid(pid_tm_utc, TM_RESPONSE_WAIT_INF); + TC_ASSERT_NEQ_CLEANUP("task_manager_getinfo_with_pid", ret, NULL, task_manager_clean_info(&ret)); + TC_ASSERT_EQ_CLEANUP("task_manager_getinfo_with_pid", ret->handle, handle_tm_utc, task_manager_clean_info(&ret)); + + (void)task_manager_clean_info(&ret); + TC_SUCCESS_RESULT(); +} + void tm_utc_main(void) { pid_tm_utc = getpid(); @@ -857,6 +884,9 @@ void tm_utc_main(void) utc_task_manager_start_n(); utc_task_manager_start_p(); + utc_task_manager_getinfo_with_pid_n(); + utc_task_manager_getinfo_with_pid_p(); + utc_task_manager_set_unicast_cb_n(); utc_task_manager_set_unicast_cb_p(); @@ -912,7 +942,6 @@ int main(int argc, FAR char *argv[]) int utc_task_manager_main(int argc, char *argv[]) #endif { - int handle_tm_utc; int status; if (tc_handler(TC_START, "TaskManager UTC") == ERROR) {
man: update date
.\" generated with Ronn-NG/v0.10.1 .\" http://github.com/apjanke/ronn-ng/tree/0.10.1.pre1 -.TH "ELEKTRA\-BOOTSTRAPPING" "7" "November 2022" "" +.TH "ELEKTRA\-BOOTSTRAPPING" "7" "February 2023" "" .SH "NAME" \fBelektra\-bootstrapping\fR \- default backend .P
Equality comparison for TMaybeOwningArrayHolder. Useful for unit tests.
@@ -59,6 +59,10 @@ namespace NCB { return 0; } + bool operator==(const TMaybeOwningArrayHolder& rhs) const { + return ArrayRef == rhs.ArrayRef; + } + TArrayRef<T> operator*() { return ArrayRef; }
Test malformed XML/text declaration rejected by ext entity parser
@@ -3689,6 +3689,7 @@ external_entity_valuer(XML_Parser parser, else if (!strcmp(systemId, "004-2.ent")) { ExtFaults *fault = (ExtFaults *)XML_GetUserData(parser); enum XML_Status status; + enum XML_Error error; status = _XML_Parse_SINGLE_BYTES(ext_parser, fault->parse_text, @@ -3700,7 +3701,10 @@ external_entity_valuer(XML_Parser parser, } else { if (status != XML_STATUS_ERROR) fail(fault->fail_text); - if (XML_GetErrorCode(ext_parser) != fault->error) + error = XML_GetErrorCode(ext_parser); + if (error != fault->error && + (fault->error != XML_ERROR_XML_DECL || + error != XML_ERROR_TEXT_DECL)) xml_failure(ext_parser); } } @@ -3745,6 +3749,12 @@ START_TEST(test_external_entity_values) NULL, XML_ERROR_NONE }, + { + "<?xml?>", + "Malformed XML declaration not faulted", + NULL, + XML_ERROR_XML_DECL + }, { NULL, NULL, NULL, XML_ERROR_NONE } }; int i;
Move the early data status set afeter all of the extensions parse
@@ -2072,8 +2072,6 @@ static int ssl_tls13_parse_encrypted_extensions( mbedtls_ssl_context *ssl, return( MBEDTLS_ERR_SSL_DECODE_ERROR ); } - ssl->early_data_status = MBEDTLS_SSL_EARLY_DATA_STATUS_ACCEPTED; - break; #endif /* MBEDTLS_SSL_EARLY_DATA */ @@ -2119,6 +2117,14 @@ static int ssl_tls13_process_encrypted_extensions( mbedtls_ssl_context *ssl ) MBEDTLS_SSL_PROC_CHK( ssl_tls13_parse_encrypted_extensions( ssl, buf, buf + buf_len ) ); +#if defined(MBEDTLS_SSL_EARLY_DATA) + if( ssl->handshake->received_extensions & + MBEDTLS_SSL_EXT_MASK( EARLY_DATA ) ) + { + ssl->early_data_status = MBEDTLS_SSL_EARLY_DATA_STATUS_ACCEPTED; + } +#endif + mbedtls_ssl_add_hs_msg_to_checksum( ssl, MBEDTLS_SSL_HS_ENCRYPTED_EXTENSIONS, buf, buf_len );
Add test case for typealias shadowing Closes
@@ -1060,6 +1060,8 @@ describe("Pallene coder /", function() local x = 10 + type y = integer + ------ function local_type(): integer @@ -1072,6 +1074,14 @@ describe("Pallene coder /", function() return x end + function for_type_annotation(): integer + local res = 0 + for y:y = 1, 10 do + res = res + y + end + return res + end + function for_initializer(): integer local res = 0 for x = x + 1, x + 100, x-7 do @@ -1094,10 +1104,9 @@ describe("Pallene coder /", function() run_test([[ assert( 11 == test.local_initializer() ) ]]) end) - -- See Issue #94 - --it("for loop variable scope doesn't shadow its type annotation", function() - -- pending("todo (type aliases)") - --end) + it("for loop variable scope doesn't shadow its type annotation", function() + run_test([[ assert( 55 == test.for_type_annotation() ) ]]) + end) it("for loop variable scope doesn't shadow its initializers", function() run_test([[ assert( 34 == test.for_initializer() ) ]])
Suppress an uninitialized warning on GCC-4.1
@@ -260,12 +260,12 @@ sixel_chunk_from_file( { SIXELSTATUS status = SIXEL_FALSE; int ret; - FILE *f; + FILE *f = NULL; size_t n; size_t const bucket_size = 4096; status = open_binary_file(&f, filename); - if (SIXEL_FAILED(status)) { + if (SIXEL_FAILED(status) || f == NULL) { goto end; }
dpdk: disable tun/tap PMD Beside the fact that we don't need it, it fails to build on ARM64.
@@ -150,6 +150,7 @@ $(B)/custom-config: $(B)/.patch.ok Makefile $(call set,RTE_LIBRTE_MLX4_PMD,$(DPDK_MLX4_PMD)) $(call set,RTE_LIBRTE_MLX5_PMD,$(DPDK_MLX5_PMD)) @# not needed + $(call set,RTE_LIBRTE_PMD_TAP,n) $(call set,RTE_LIBRTE_TIMER,n) $(call set,RTE_LIBRTE_CFGFILE,n) $(call set,RTE_LIBRTE_LPM,n)
Log when a connection is cwnd limited
@@ -1739,6 +1739,12 @@ static uint64_t conn_cwnd_is_zero(ngtcp2_conn *conn) { ? ngtcp2_cc_compute_initcwnd(conn->cstat.max_udp_payload_size) : conn->cstat.cwnd; + if (bytes_in_flight >= cwnd) { + ngtcp2_log_info(&conn->log, NGTCP2_LOG_EVENT_RCV, + "cwnd limited bytes_in_flight=%lu cwnd=%lu", + bytes_in_flight, cwnd); + } + return bytes_in_flight >= cwnd; }
apps/examples/testcase/tc_umm_heap.c : Fix build warning for unused variable le_tc/kernel/tc_umm_heap.c:144:9: error: unused variable 'alloc_size' [-Werror=unused-variable] size_t alloc_size = ALLOC_SIZE_VAL * sizeof(int); ^~~~~~~~~~ cc1: all warnings being treated as errors
@@ -141,8 +141,8 @@ static void tc_umm_heap_calloc(void) int *mem_ptr[ALLOC_FREE_TIMES] = { NULL }; int n_alloc; int n_test_iter; - size_t alloc_size = ALLOC_SIZE_VAL * sizeof(int); #ifdef CONFIG_DEBUG_MM_HEAPINFO + size_t alloc_size = ALLOC_SIZE_VAL * sizeof(int); pid_t hash_pid = PIDHASH(getpid());; struct mm_heap_s *heap; #endif
tneat - use after free fix
@@ -336,20 +336,6 @@ on_close(struct neat_flow_operations *opCB) } } - if (tnf->snd.buffer) { - free(tnf->snd.buffer); - } - - if (tnf->rcv.buffer) { - free(tnf->rcv.buffer); - } - - if (tnf) { - free(tnf); - } - - fprintf(stderr, "%s - flow closed OK!\n", __func__); - // stop event loop if we are active part if (tnf->active) { flows_active--; @@ -365,6 +351,20 @@ on_close(struct neat_flow_operations *opCB) } } + if (tnf->snd.buffer) { + free(tnf->snd.buffer); + } + + if (tnf->rcv.buffer) { + free(tnf->rcv.buffer); + } + + if (tnf) { + free(tnf); + } + + fprintf(stderr, "%s - flow closed OK!\n", __func__); + return NEAT_OK; }
Ensure string passed to cJSON_Parse is properly terminated
@@ -2911,7 +2911,8 @@ ikvdb_import_toc( return err; } - buf = malloc(buflen); + /* Need an extra byte to terminate string read from TOC file */ + buf = malloc(buflen + 1); if (!buf) { err = merr(ev(ENOMEM, HSE_ERR)); fclose(f); @@ -2932,6 +2933,8 @@ ikvdb_import_toc( return err; } + buf[buflen] = '\0'; + crc_rd = le32_to_cpu(*((u32 *)buf)); cjson_str = buf + 4;
Allow hslua 1.3.*
@@ -31,7 +31,7 @@ library build-depends: base >= 4.7 && < 5 , aeson >= 0.11 && < 1.6 , hashable >= 1.2 && < 1.4 - , hslua >= 1.0 && < 1.1.1 || >= 1.1.2 && < 1.3 + , hslua >= 1.0 && < 1.1.1 || >= 1.1.2 && < 1.4 , scientific >= 0.3 && < 0.4 , text >= 1.1.1.0 && < 1.3 , unordered-containers >= 0.2 && < 0.3
Minor renaming of parameter.
@@ -540,7 +540,7 @@ tsDeBoorNet ts_deboornet_init() return net; } -tsError ts_int_deboornet_new(const tsBSpline *spline, tsDeBoorNet *_deBoorNet_, +tsError ts_int_deboornet_new(const tsBSpline *spline, tsDeBoorNet *net, tsStatus *status) { const size_t dim = ts_bspline_dimension(spline); @@ -555,16 +555,16 @@ tsError ts_int_deboornet_new(const tsBSpline *spline, tsDeBoorNet *_deBoorNet_, const size_t sof_points_vec = fixed_num_points * dim * sof_real; const size_t sof_net = sof_impl * sof_points_vec; - _deBoorNet_->pImpl = (struct tsDeBoorNetImpl *) malloc(sof_net); - if (!_deBoorNet_->pImpl) + net->pImpl = (struct tsDeBoorNetImpl *) malloc(sof_net); + if (!net->pImpl) TS_RETURN_0(status, TS_MALLOC, "out of memory") - _deBoorNet_->pImpl->u = 0.f; - _deBoorNet_->pImpl->k = 0; - _deBoorNet_->pImpl->s = 0; - _deBoorNet_->pImpl->h = deg; - _deBoorNet_->pImpl->dim = dim; - _deBoorNet_->pImpl->n_points = fixed_num_points; + net->pImpl->u = 0.f; + net->pImpl->k = 0; + net->pImpl->s = 0; + net->pImpl->h = deg; + net->pImpl->dim = dim; + net->pImpl->n_points = fixed_num_points; TS_RETURN_SUCCESS(status) }
Launch: remove dev cruft
@@ -234,7 +234,7 @@ export default function LaunchApp(props) { </Box> <Box alignSelf="flex-start" display={["block", "none"]}>{hashBox}</Box> </ScrollbarLessBox> - <Box onClick={() => history.push('/~graph/graph/ship/~bitpyx-dildus/infrastructure-digests/170141184504958869914231288036524556288/2/170141184504958917566472168072435204096') } display={["none", "block"]}>{hashBox}</Box> + <Box display={["none", "block"]}>{hashBox}</Box> </> ); }
nipperkin: config led related gpio BRANCH=none TEST=make BOARD=nipperkin
#include "base_gpio.inc" /* LED Signals */ -ALTERNATE(/*EC_PWM_LED_CHRG_L*/ PIN_MASK(C, BIT(4)), 0, MODULE_PWM, 0) /* Charging LED */ -ALTERNATE(/*EC_PWM_LED_FULL_L*/ PIN_MASK(8, BIT(0)), 0, MODULE_PWM, 0) /* Full LED */ +GPIO(C0_CHARGE_LED_AMBER_L, PIN(C, 4), GPIO_OUT_HIGH) +GPIO(C0_CHARGE_LED_WHITE_L, PIN(8, 0), GPIO_OUT_HIGH) +GPIO(C1_CHARGE_LED_AMBER_L, PIN(6, 7), GPIO_OUT_HIGH) +GPIO(C1_CHARGE_LED_WHITE_L, PIN(7, 0), GPIO_OUT_HIGH) /* Test Points */ GPIO(EC_GPIO56, PIN(5, 6), GPIO_INPUT | GPIO_PULL_UP) -GPIO(EC_PS2_CLK, PIN(6, 7), GPIO_INPUT | GPIO_PULL_UP) -GPIO(EC_PS2_DAT, PIN(7, 0), GPIO_INPUT | GPIO_PULL_UP) GPIO(EC_PS2_RST, PIN(6, 2), GPIO_INPUT | GPIO_PULL_UP) GPIO(EC_GPIOB0, PIN(B, 0), GPIO_INPUT | GPIO_PULL_UP) GPIO(EC_GPIO81, PIN(8, 1), GPIO_INPUT | GPIO_PULL_UP)
VERSION bump to version 0.11.34
@@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0") # set version set(LIBNETCONF2_MAJOR_VERSION 0) set(LIBNETCONF2_MINOR_VERSION 11) -set(LIBNETCONF2_MICRO_VERSION 33) +set(LIBNETCONF2_MICRO_VERSION 34) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION})
dm: vdisplay: fix comment typos. Fix some typos in output logs. Acked-by: Wang, Yu1
@@ -1140,7 +1140,7 @@ gfx_ui_init() setenv("SDL_RENDER_SCALE_QUALITY", "linear", 1); if (SDL_Init(SDL_INIT_VIDEO)) { - pr_err("Failed to Init SDL2 system"); + pr_err("Failed to init SDL2 system\n"); return -1; }
Add WINDOWS_MANIFEST() macro ISSUE:
@@ -6682,3 +6682,12 @@ multimodule PY23_TEST { RESTRICT_PATH(devtools/dummy_arcadia MSG Module PY23_TEST is under development) } } + +WINDOWS_MANIFEST= +macro WINDOWS_MANIFEST(Manifest) { + SET(WINDOWS_MANIFEST $Manifest) +} + +when ($MSVC == "yes" && $WINDOWS_MANIFEST) { + LDFLAGS+=/MANIFEST:EMBED /MANIFESTINPUT:${input:WINDOWS_MANIFEST} +}
Fix documentation mistake for glm_vec3_rotate In the documentation, for glm_vec3_rotate, correctly labels `angle` as `in` rather than `out`.
@@ -392,7 +392,7 @@ Functions documentation Parameters: | *[in, out]* **v** vector | *[in]* **axis** axis vector (will be normalized) - | *[out]* **angle** angle (radians) + | *[in]* **angle** angle (radians) .. c:function:: void glm_vec3_rotate_m4(mat4 m, vec3 v, vec3 dest)
Ensure we use strict JSON when determining if we're using a JSON format. This fixes a regression in parsing Google Cloud Storage or possibly other non-JSON formats. Fixes
@@ -699,6 +699,8 @@ is_json_log_format (const char *fmt) { json_stream json; json_open_string (&json, fmt); + /* ensure we use strict JSON when determining if we're using a JSON format */ + json_set_streaming (&json, false); do { t = json_next (&json); switch (t) {
oofie doofie
@@ -45,7 +45,7 @@ If you do not wish to compile anything, simply download the file under [Releases #### Arch-based distributions -If you are using an Arch-based distribution, install [`mangohud`](https://aur.archlinux.org/packages/mangohud/) and [`lib32-mangohud`](https://aur.archlinux.org/packages/lib32-mangohud/) with your favourite AUR helper. [`mangohud-git`](https://aur.archlinux.org/packages/mangohud-git/) and [`lib32-mangohud-git`](https://aur.archlinux.org/packages/lib32-mangohud-git/) are also available on the AUR if you want the up do date version of MangoHud. +If you are using an Arch-based distribution, install [`mangohud`](https://aur.archlinux.org/packages/mangohud/) and [`lib32-mangohud`](https://aur.archlinux.org/packages/lib32-mangohud/) with your favourite AUR helper. [`mangohud-git`](https://aur.archlinux.org/packages/mangohud-git/) and [`lib32-mangohud-git`](https://aur.archlinux.org/packages/lib32-mangohud-git/) are also available on the AUR if you want the up-to-date version of MangoHud. #### Fedora
YAML CPP: Add reading support for arrays
#include "yaml.h" #include <kdb.hpp> +#include <kdbease.h> #include <kdblogger.h> #include <kdbplugin.h> @@ -36,6 +37,28 @@ Key newKey (string const & name, Key const & parent) return key; } +/** + * @brief This function creates a new array key from the given parameters. + * + * @param mappings This argument specifies the key set of the new key this function creates. + * @param arrayKey This argument specifies the key that represents the root of the array. + * + * @returns The function returns a new key that is part of the array represented by `arrayKey`. + */ +Key newArrayKey (KeySet const & mappings, Key const & arrayKey) +{ + KeySet arrayEntries{ elektraArrayGet (arrayKey.getKey (), mappings.getKeySet ()) }; + + if (arrayEntries.size () <= 0) + { + Key first = arrayKey.dup (); + first.addBaseName ("#"); + arrayEntries.append (first); + } + + return elektraArrayGetNextKey (arrayEntries.getKeySet ()); +} + /** * @brief Convert a YAML node to a key set * @@ -51,13 +74,13 @@ void convertNodeToKeySet (YAML::Node const & node, KeySet & mappings, Key const ELEKTRA_LOG_DEBUG ("%s: %s", key.getName ().c_str (), key.get<string> ().c_str ()); mappings.append (key); } - else if (node.IsMap ()) + else if (node.IsMap () || node.IsSequence ()) { for (auto element : node) { - Key const & key = newKey (element.first.as<string> (), parent); + Key const & key = node.IsMap () ? newKey (element.first.as<string> (), parent) : newArrayKey (mappings, parent); mappings.append (key); - convertNodeToKeySet (element.second, mappings, key); + convertNodeToKeySet (node.IsMap () ? element.second : element, mappings, key); } } }
Update ya-binAuthor: nslusRevision: r3811334Task ID:
@@ -4,8 +4,8 @@ import sys import platform import json -URLS = ["https://storage.mds.yandex.net/get-devtools-opensource/250854/6702749c9591550601b24123a7c4085a"] -MD5 = "6702749c9591550601b24123a7c4085a" +URLS = ["https://storage.mds.yandex.net/get-devtools-opensource/233854/0feb358dab3dbea3e10be1b2f05a93f5"] +MD5 = "0feb358dab3dbea3e10be1b2f05a93f5" RETRIES = 5 HASH_PREFIX = 10
[#1116]add wallet_config vabrible type
@@ -43,7 +43,7 @@ BOAT_RESULT check_platon_wallet(BoatPlatONWallet *wallet_ptr) BoatPlatONWalletConfig get_platon_wallet_settings() { //set user private key context - + BoatPlatONWalletConfig wallet_config; if (TEST_KEY_TYPE == BOAT_WALLET_PRIKEY_FORMAT_NATIVE) { wallet_config.prikeyCtx_config.prikey_format = BOAT_WALLET_PRIKEY_FORMAT_NATIVE;
[arch][riscv] simplify the exception decoding logic Use the sign bit on the cause register to separate interrupts from exceptions.
@@ -38,29 +38,32 @@ struct riscv_short_iframe { extern enum handler_return riscv_platform_irq(void); extern enum handler_return riscv_software_exception(void); -void riscv_exception_handler(ulong cause, ulong epc, struct riscv_short_iframe *frame) { +void riscv_exception_handler(long cause, ulong epc, struct riscv_short_iframe *frame) { LTRACEF("hart %u cause %#lx epc %#lx status %#lx\n", riscv_current_hart(), cause, epc, frame->status); - // top bit of the cause register determines if it's an interrupt or not - const ulong int_bit = (__riscv_xlen == 32) ? (1ul<<31) : (1ul<<63); - enum handler_return ret = INT_NO_RESCHEDULE; - switch (cause) { + + // top bit of the cause register determines if it's an interrupt or not + if (cause < 0) { + switch (cause & LONG_MAX) { #if WITH_SMP - case int_bit | RISCV_EXCEPTION_XSWI: // machine software interrupt + case RISCV_EXCEPTION_XSWI: // machine software interrupt ret = riscv_software_exception(); break; #endif - case int_bit | RISCV_EXCEPTION_XTIM: // machine timer interrupt + case RISCV_EXCEPTION_XTIM: // machine timer interrupt ret = riscv_timer_exception(); break; - case int_bit | RISCV_EXCEPTION_XEXT: // machine external interrupt + case RISCV_EXCEPTION_XEXT: // machine external interrupt ret = riscv_platform_irq(); break; default: - TRACEF("unhandled cause %#lx, epc %#lx, tval %#lx\n", cause, epc, riscv_csr_read(RISCV_CSR_XTVAL)); - panic("stopping"); + panic("unhandled exception cause %#lx, epc %#lx, tval %#lx\n", cause, epc, riscv_csr_read(RISCV_CSR_XTVAL)); + } + } else { + // all synchronous traps go here + panic("unhandled exception cause %#lx, epc %#lx, tval %#lx\n", cause, epc, riscv_csr_read(RISCV_CSR_XTVAL)); } if (ret == INT_RESCHEDULE) {
linux-cp: fix coverity defect Type: fix If no host interface name is passed to the CLI command which creates an interface pair, NULL gets passed to lcp_itf_pair_create() and a seg fault occurs. Check whether a host interface name was provided and fail gracefully if none was given.
@@ -72,6 +72,12 @@ lcp_itf_pair_create_command_fn (vlib_main_t *vm, unformat_input_t *input, unformat_free (line_input); + if (!host_if_name) + { + vec_free (ns); + return clib_error_return (0, "host interface name required"); + } + if (sw_if_index == ~0) { vec_free (host_if_name);
update submodules script
@@ -16,14 +16,18 @@ git config submodule.toolchains/esp-tools.update none git config --global submodule.experimental-blocks.update none # Disable updates to the FireSim submodule until explicitly requested git config submodule.sims/firesim.update none -# Disable updates to the hammer-cad-plugins repo -git config submodule.vlsi/hammer-cad-plugins.update none +# Disable updates to the hammer tool plugins repos +git config submodule.vlsi/hammer-cadence-plugins.update none +git config submodule.vlsi/hammer-synopsys-plugins.update none +git config submodule.vlsi/hammer-mentor-plugins.update none git submodule update --init --recursive #--jobs 8 # unignore riscv-tools,catapult-shell2 globally git config --unset submodule.toolchains/riscv-tools.update git config --unset submodule.toolchains/esp-tools.update git config --global --unset submodule.experimental-blocks.update -git config --unset submodule.vlsi/hammer-cad-plugins.update +git config --unset submodule.vlsi/hammer-cadence-plugins.update +git config --unset submodule.vlsi/hammer-synopsys-plugins.update +git config --unset submodule.vlsi/hammer-mentor-plugins.update # Renable firesim and init only the required submodules to provide # all required scala deps, without doing a full build-setup
OcDebugLogLib: Workaround NVRAM log assertions
@@ -261,9 +261,14 @@ OcLogAddEntry ( // if (ErrorLevel != DEBUG_BULK_INFO && (OcLog->Options & (OC_LOG_VARIABLE | OC_LOG_NONVOLATILE)) != 0) { // - // Do not log timing information to NVRAM, it is already large... + // Do not log timing information to NVRAM, it is already large. + // This check is here, because Microsoft is retarded and asserts. // + if (Private->NvramBufferSize - AsciiStrSize (Private->NvramBuffer) >= AsciiStrLen (Private->LineBuffer)) { Status = AsciiStrCatS (Private->NvramBuffer, Private->NvramBufferSize, Private->LineBuffer); + } else { + Status = EFI_BUFFER_TOO_SMALL; + } if (!EFI_ERROR (Status)) { Attributes = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS; if ((OcLog->Options & OC_LOG_NONVOLATILE) != 0) { @@ -288,6 +293,10 @@ OcLogAddEntry ( gBS->Stall (SECONDS_TO_MICROSECONDS (1)); OcLog->Options &= ~(OC_LOG_VARIABLE | OC_LOG_NONVOLATILE); } + } else { + gST->ConOut->OutputString (gST->ConOut, L"NVRAM log size exceeded, cannot log!\r\n"); + gBS->Stall (SECONDS_TO_MICROSECONDS (1)); + OcLog->Options &= ~(OC_LOG_VARIABLE | OC_LOG_NONVOLATILE); } } }
Some fixes to neat_core.c that casued the policy manager to crash
@@ -2946,7 +2946,7 @@ build_he_candidates(neat_ctx *ctx, neat_flow *flow, json_t *json, struct neat_he char dummy[sizeof(struct in6_addr)]; struct neat_he_candidate *candidate; - const char *so_key=NULL, *so_prefix = "SO/"; + const char *so_key=NULL, *so_prefix = "so/"; json_t *so_value; nt_log(ctx, NEAT_LOG_DEBUG, "Now processing PM candidate %zu", i); @@ -2984,7 +2984,7 @@ build_he_candidates(neat_ctx *ctx, neat_flow *flow, json_t *json, struct neat_he if ((sockopt = calloc(1, sizeof(struct neat_he_sockopt))) == NULL) goto out_of_memory; - sscanf(so_key, "SO/%u/%u", &level, &optname); + sscanf(so_key, "so/%u/%u", &level, &optname); sockopt->level = level; sockopt->name = optname; @@ -5507,7 +5507,7 @@ nt_connect(struct neat_he_candidate *candidate, uv_poll_cb callback_fx) switch (sockopt_ptr->type) { case NEAT_SOCKOPT_INT: if (setsockopt(candidate->pollable_socket->fd, sockopt_ptr->level, sockopt_ptr->name, &(sockopt_ptr->value.i_val), sizeof(int)) < 0) - nt_log(ctx, NEAT_LOG_ERROR, "Socket option error: %s", strerror(errno)); + nt_log(ctx, NEAT_LOG_ERROR, "Socket option error: %d", strerror(errno)); break; case NEAT_SOCKOPT_STRING: if (setsockopt(candidate->pollable_socket->fd, sockopt_ptr->level, sockopt_ptr->name, sockopt_ptr->value.s_val, (socklen_t)strlen(sockopt_ptr->value.s_val)) < 0)
driver/usb_mux/pi3usb3x532.c: Format with clang-format BRANCH=none TEST=none
#include "usb_mux.h" #include "util.h" -static int pi3usb3x532_read(const struct usb_mux *me, - uint8_t reg, uint8_t *val) +static int pi3usb3x532_read(const struct usb_mux *me, uint8_t reg, uint8_t *val) { int read, res; @@ -33,8 +32,7 @@ static int pi3usb3x532_read(const struct usb_mux *me, return EC_SUCCESS; } -static int pi3usb3x532_write(const struct usb_mux *me, - uint8_t reg, uint8_t val) +static int pi3usb3x532_write(const struct usb_mux *me, uint8_t reg, uint8_t val) { if (reg != PI3USB3X532_REG_CONTROL) return EC_ERROR_UNKNOWN; @@ -58,10 +56,9 @@ int pi3usb3x532_check_vendor(const struct usb_mux *me, int *val) static int pi3usb3x532_reset(const struct usb_mux *me) { - return pi3usb3x532_write( - me, - PI3USB3X532_REG_CONTROL, - (PI3USB3X532_MODE_POWERDOWN & PI3USB3X532_CTRL_MASK) | + return pi3usb3x532_write(me, PI3USB3X532_REG_CONTROL, + (PI3USB3X532_MODE_POWERDOWN & + PI3USB3X532_CTRL_MASK) | PI3USB3X532_CTRL_RSVD); } @@ -83,8 +80,7 @@ static int pi3usb3x532_init(const struct usb_mux *me) } /* Writes control register to set switch mode */ -static int pi3usb3x532_set_mux(const struct usb_mux *me, - mux_state_t mux_state, +static int pi3usb3x532_set_mux(const struct usb_mux *me, mux_state_t mux_state, bool *ack_required) { uint8_t reg = 0; @@ -104,8 +100,7 @@ static int pi3usb3x532_set_mux(const struct usb_mux *me, } /* Reads control register and updates mux_state accordingly */ -static int pi3usb3x532_get_mux(const struct usb_mux *me, - mux_state_t *mux_state) +static int pi3usb3x532_get_mux(const struct usb_mux *me, mux_state_t *mux_state) { uint8_t reg = 0; uint8_t res;
Fix the documentation for uCellInfoGetIccidStr uCellInfoGetIccidStr does not return 0 on success, but the written characters similar to the other *Str functions.
@@ -211,7 +211,9 @@ int32_t uCellInfoGetImsi(uDeviceHandle_t cellHandle, * including room for a terminator. Allocating * #U_CELL_INFO_ICCID_BUFFER_SIZE bytes of * storage is safe. - * @return zero on success, negative error code on failure. + * @return on success, the number of characters copied into + * pStr NOT including the terminator (as strlen() + * would return), on failure negative error code. */ int32_t uCellInfoGetIccidStr(uDeviceHandle_t cellHandle, char *pStr, size_t size);
fix comments grammar issues
@@ -56,11 +56,11 @@ else() link_to_source(${file}) endforeach() endif() -# CMake generate sub-makefile for each target and call it in subprocess. Without -# this command, cmake will generate ruler in each sub makefile. As a result, -# they will conflict under parllel build. -# With this line, only 4 sub-makefiles include above command, that reduces -# conflict risk. +# CMake generates sub-makefiles for each target and calls them in subprocesses. +# Without this command, cmake will generate rules in each sub-makefile. As a result, +# they can cause race conditions in parallel builds. +# With this line, only 4 sub-makefiles include the above command, that reduces +# the risk of a race. add_custom_target(test_suite_generated_data DEPENDS ${generated_data_files}) # Test suites caught by SKIP_TEST_SUITES are built but not executed. # "foo" as a skip pattern skips "test_suite_foo" and "test_suite_foo.bar"
BugID:17797965:[mqtt] fix client_id == NULL crash issue
@@ -2978,7 +2978,7 @@ void *IOT_MQTT_Construct(iotx_mqtt_param_t *pInitParams) mqtt_free(pconn); return NULL; } - if(strlen(pInitParams->client_id) == 0) { + if(pInitParams->client_id == NULL || strlen(pInitParams->client_id) == 0) { pInitParams->client_id = pconn->client_id; }
Update MCF logging.xml conf
<Logger name="org.apache.manifoldcf.crawler.connectors.sharepoint.rest.SharePointRestRepositoryConnector" level="docprocess" additivity="false"> <AppenderRef ref="DocProcess"/> </Logger> + <Logger name="org.apache.manifoldcf.crawler.connectors.o365.exchange.ExchangeRepositoryConnector" level="docprocess" additivity="false"> + <AppenderRef ref="DocProcess"/> + </Logger> + <Logger name="com.francelabs.datafari.connectors.list.share.SharedDriveConnector" level="docprocess" additivity="false"> + <AppenderRef ref="DocProcess"/> + </Logger> + <Logger name="com.francelabs.datafari.connectors.tuleap.TuleapConnector" level="docprocess" additivity="false"> + <AppenderRef ref="DocProcess"/> + </Logger> + <!-- SPDelete logger --> <Logger name="org.apache.manifoldcf.crawler.connectors.sharepoint.rest.DeletedDocs" level="debug" additivity="false">
Make sure we properly test for EdDSA with alg ids
@@ -143,15 +143,15 @@ subtest "generating certificate requests with Ed25519" => sub { SKIP: { skip "Ed25519 is not supported by this OpenSSL build", 2 - if disabled("ec") || !@tmp_loader_hack; + if disabled("ec"); - ok(run(app(["openssl", "req", @tmp_loader_hack, + ok(run(app(["openssl", "req", "-config", srctop_file("test", "test.cnf"), "-new", "-out", "testreq-ed25519.pem", "-utf8", "-key", srctop_file("test", "tested25519.pem")])), "Generating request"); - ok(run(app(["openssl", "req", @tmp_loader_hack, + ok(run(app(["openssl", "req", "-config", srctop_file("test", "test.cnf"), "-verify", "-in", "testreq-ed25519.pem", "-noout"])), "Verifying signature on request"); @@ -163,15 +163,15 @@ subtest "generating certificate requests with Ed448" => sub { SKIP: { skip "Ed448 is not supported by this OpenSSL build", 2 - if disabled("ec") || !@tmp_loader_hack; + if disabled("ec"); - ok(run(app(["openssl", "req", @tmp_loader_hack, + ok(run(app(["openssl", "req", "-config", srctop_file("test", "test.cnf"), "-new", "-out", "testreq-ed448.pem", "-utf8", "-key", srctop_file("test", "tested448.pem")])), "Generating request"); - ok(run(app(["openssl", "req", @tmp_loader_hack, + ok(run(app(["openssl", "req", "-config", srctop_file("test", "test.cnf"), "-verify", "-in", "testreq-ed448.pem", "-noout"])), "Verifying signature on request");
Improvements in Debugger::AccessMemory
@@ -496,6 +496,8 @@ bool CLR_DBG_Debugger::AccessMemory( CLR_UINT32 location, unsigned int lengthInB NATIVE_PROFILE_CLR_DEBUGGER(); TRACE("AccessMemory( 0x%08X, 0x%08x, 0x%08X, %s)\n", location, lengthInBytes, buf, AccessMemoryModeNames[mode] ); + bool success = false; + // reset error code *errorCode = AccessMemoryErrorCode_NoError; @@ -510,7 +512,6 @@ bool CLR_DBG_Debugger::AccessMemory( CLR_UINT32 location, unsigned int lengthInB ByteAddress accessAddress = location; unsigned char* bufPtr = buf; - bool success = true; signed int accessLenInBytes = lengthInBytes; signed int blockOffset = BlockRegionInfo_OffsetFromBlock(((BlockRegionInfo*)(&deviceInfo->Regions[iRegion])), accessAddress); @@ -549,7 +550,8 @@ bool CLR_DBG_Debugger::AccessMemory( CLR_UINT32 location, unsigned int lengthInB // set error code *errorCode = AccessMemoryErrorCode_PermissionDenied; - return false; + // done here + return success; } switch(mode) @@ -574,7 +576,8 @@ bool CLR_DBG_Debugger::AccessMemory( CLR_UINT32 location, unsigned int lengthInB // set error code *errorCode = AccessMemoryErrorCode_PermissionDenied; - return false; + // done here + return success; } } @@ -627,9 +630,10 @@ bool CLR_DBG_Debugger::AccessMemory( CLR_UINT32 location, unsigned int lengthInB iRange = 0; if ((accessLenInBytes <= 0) || (!success)) + { break; } - + } } else { @@ -666,7 +670,7 @@ bool CLR_DBG_Debugger::AccessMemory( CLR_UINT32 location, unsigned int lengthInB if((sectAddr <ramStartAddress) || (sectAddr >=ramEndAddress) || (sectAddrEnd >ramEndAddress) ) { TRACE(" Invalid address %x and range %x Ram Start %x, Ram end %x\r\n", sectAddr, lengthInBytes, ramStartAddress, ramEndAddress); - return false; + return success; } else #endif @@ -697,8 +701,10 @@ bool CLR_DBG_Debugger::AccessMemory( CLR_UINT32 location, unsigned int lengthInB } } } + TRACE0( "=> SUCCESS\n"); - return true; + + return success; } bool CLR_DBG_Debugger::Monitor_ReadMemory( WP_Message* msg)
Ensure accumulated time is also displayed in the terminal output.
@@ -509,8 +509,15 @@ get_str_visitors (void) static char * get_str_proctime (void) { + char *s = NULL; uint64_t secs = (long long) end_proc - start_proc; - char *s = xmalloc (snprintf (NULL, 0, "%" PRIu64 "s", secs) + 1); + +#ifdef TCB_BTREE + if (conf.store_accumulated_time) + secs = (uint64_t) ht_get_genstats ("accumulated_time"); +#endif + + s = xmalloc (snprintf (NULL, 0, "%" PRIu64 "s", secs) + 1); sprintf (s, "%" PRIu64 "s", secs); return s;
fix inappropriate translation in hall-legacy
%- of :~ name+(ot nom+so mon+tors ~) text+(cu to-wain:format so) - tank+(ot dat+(cu ;;((list tank) blob)) ~) + tank+(ot dat+(cu (list tank) blob) ~) == :: ++ blob (cu cue (su fel:de-base64:mimes:html))
Remove plugin error prompt
@@ -299,25 +299,11 @@ VOID PhLoadPlugins( PhDereferenceObject(baseName); } - PhAppendStringBuilder2(&sb, L"\nDo you want to disable the above plugin(s)?"); - - if (PhShowMessage2( + PhShowError2( NULL, - TDCBF_YES_BUTTON | TDCBF_NO_BUTTON, - TD_ERROR_ICON, L"Unable to load the following plugin(s)", - L"%s", sb.String->Buffer - ) == IDYES) - { - for (i = 0; i < LoadErrors->Count; i++) - { - loadError = LoadErrors->Items[i]; - baseName = PhGetBaseName(loadError->FileName); - PhSetPluginDisabled(&baseName->sr, TRUE); - PhDereferenceObject(baseName); - } - } + ); PhDeleteStringBuilder(&sb); }
Use sensor color palette in lepton code.
@@ -50,7 +50,6 @@ static DMA_HandleTypeDef DMAHandle; extern uint8_t _line_buf; extern uint8_t _vospi_buf; -extern const uint16_t rainbow_table[256]; static bool vospi_resync = true; static uint8_t *vospi_packet = &_line_buf; @@ -425,7 +424,7 @@ static int snapshot(sensor_t *sensor, image_t *image, streaming_cb_t streaming_c break; } case PIXFORMAT_RGB565: { - IMAGE_PUT_RGB565_PIXEL(image, t_x, t_y, rainbow_table[value & 0xFF]); + IMAGE_PUT_RGB565_PIXEL(image, t_x, t_y, sensor->color_palette[value & 0xFF]); break; } default: {
INSTALL.md: add new Ubuntu bpfcc-tools package name add new Ubuntu bpfcc-tools package name in INSTALL.md
@@ -62,7 +62,7 @@ echo "deb https://repo.iovisor.org/apt/$(lsb_release -cs) $(lsb_release -cs) mai sudo apt-get update sudo apt-get install bcc-tools libbcc-examples linux-headers-$(uname -r) ``` -(replace `xenial` with `artful` or `bionic` as appropriate) +(replace `xenial` with `artful` or `bionic` as appropriate). Tools will be installed under /usr/share/bcc/tools. **Nightly Packages** @@ -73,6 +73,16 @@ sudo apt-get install bcc-tools libbcc-examples linux-headers-$(uname -r) ``` (replace `xenial` with `artful` or `bionic` as appropriate) +**Ubuntu Packages** + +The previous commands will install the latest bcc from the iovisor repositories. It is also available from the standard Ubuntu multiverse repository, under the package name `bpfcc-tools`. + +```bash +sudo apt-get install bpfcc-tools linux-headers-$(uname -r) +``` + +The tools are installed in /sbin with a -bpfcc extension. Try running `sudo opensnoop-bpfcc`. + ## Fedora - Binary Ensure that you are running a 4.2+ kernel with `uname -r`. If not, install a 4.2+ kernel from
Changed to 'git clone --depth 1' in get_nanoversion.sh
br=`git branch |tail -n1` read o u f <<< `git remote -v |grep origin |grep fetch` echo "Repo: $o $u $br" + +# This doesn't work well for rc because it is supposed tag is not pushed yet. git describe --tags --dirty + TD=`mktemp -d` WD=`pwd` -git clone $u $TD +echo "Run 'git clone --depth 1 $u $TD'" +git clone --depth 1 $u $TD cd $TD echo $u $br git checkout $br
Camera commands working
@@ -298,13 +298,11 @@ void SceneUpdateCamera_b() } // @todo - should event finish checks be included here, or seperate file? - /* - if (((last_fn == script_cmd_camera_move) || (last_fn == script_cmd_camera_lock)) && SCX_REG == camera_dest.x && SCY_REG == camera_dest.y) + if (((last_fn == Script_CameraMoveTo_b) || (last_fn == Script_CameraLock_b)) && SCX_REG == camera_dest.x && SCY_REG == camera_dest.y) { script_action_complete = TRUE; camera_settings &= ~CAMERA_TRANSITION_FLAG; // Remove transition flag } - */ } void SceneUpdateActors_b() @@ -526,13 +524,6 @@ static void SceneHandleInput() else { menu_dest_y = MENU_CLOSED_Y; - // @todo - this shouldn't be here - /* - if (last_fn == script_cmd_line) - { - script_action_complete = TRUE; - } - */ } } // If player between tiles can't handle input
Remove test that breaks on AIX. The offending test checks that fopen("anydir/") fails. This looks fairly platform specific. For the test involved this creates a file called "anydir" on an AIX test machine. This change was introduced on (Sept 24)
@@ -16,7 +16,7 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/; setup("test_x509"); -plan tests => 15; +plan tests => 14; require_ok(srctop_file('test','recipes','tconversion.pl')); @@ -124,8 +124,6 @@ sub test_errors { # actually tests diagnostics of OSSL_STORE return $res && $found; } -ok(test_errors("Can't open any-dir/", "root-cert.pem", '-out', 'any-dir/'), - "load root-cert errors"); ok(test_errors("RC2-40-CBC", "v3-certs-RC2.p12", '-passin', 'pass:v3-certs'), "load v3-certs-RC2 no asn1 errors"); SKIP: {
include/online_calibration.h: Format with clang-format BRANCH=none TEST=none
@@ -22,8 +22,7 @@ void online_calibration_init(void); * @param timestamp The time associated with the sample * @return EC_SUCCESS when successful. */ -int online_calibration_process_data( - struct ec_response_motion_sensor_data *data, +int online_calibration_process_data(struct ec_response_motion_sensor_data *data, struct motion_sensor_t *sensor, uint32_t timestamp);
[README] Update the top level readme with a bit more information and a pointer into the docs folder.
-# LK +# The Little Kernel Embedded Operating System -The LK embedded kernel. An SMP-aware kernel designed for small systems. +The LK kernel is an SMP-aware kernel designed for small systems ported to a variety of platforms and cpu architectures. See https://github.com/littlekernel/lk for the latest version. -See https://github.com/littlekernel/lk/wiki for documentation. +### High Level Features -## Builds +Fully-reentrant multi-threaded preemptive kernel +Portable to many 32 and 64 bit architectures +Support for wide variety of embedded and larger platforms +Powerful modular build system +Large number of utility components selectable at build time -[![Build Status](https://travis-ci.org/littlekernel/lk.svg?branch=master)](https://travis-ci.org/littlekernel/lk) +### Supported architectures -## To build and test for ARM on linux +- ARM32 +- - Cortex-M class cores (armv6m - armv8m) +- - ARMv7+ Cortex-A class cores +- ARM64 +- RISC-V 32 and 64bit bit in machine and supervisor mode +- x86-32 and x86-64 386 up through modern cores +- microblaze +- MIPS +- OpenRISC 1000 + +### [TODO](docs/todo.md) + +### To build and test for ARM on linux 1. install or build qemu. v2.4 and above is recommended. 2. install gcc for embedded arm (see note 1) @@ -20,7 +36,7 @@ See https://github.com/littlekernel/lk/wiki for documentation. This will get you a interactive prompt into LK which is running in qemu arm machine 'virt' emulation. type 'help' for commands. -note 1: for ubuntu: +Note: for ubuntu x86-64: sudo apt-get install gcc-arm-none-eabi or fetch a prebuilt toolchain from -http://newos.org/toolchains/arm-eabi-5.3.0-Linux-x86_64.tar.xz +https://newos.org/toolchains/x86_64-elf-10.2.0-Linux-x86_64.tar.xz
cloud: set expires_in to UINT16_MAX when is greater than UINT16_MAX
@@ -129,6 +129,25 @@ cloud_start_process(oc_cloud_context_t *ctx) _oc_signal_event_loop(); } +static uint16_t +check_expires_in(int64_t expires_in) +{ + if (expires_in <= 0) { + return 0; + } + if (expires_in > 60*60) { + // if time is more than 1h then set expires to (expires_in - 10min). + expires_in = expires_in - 10*60; + } else if (expires_in > 4*60) { + // if time is more than 240sec then set expires to (expires_in - 2min). + expires_in = expires_in - 2*60; + } else if (expires_in > 20) { + // if time is more than 20sec then set expires to (expires_in - 10sec). + expires_in = expires_in - 10; + } + return expires_in > UINT16_MAX ? UINT16_MAX : (uint16_t)expires_in; +} + static int _register_handler(oc_cloud_context_t *ctx, oc_client_response_t *data) { @@ -180,12 +199,10 @@ _register_handler(oc_cloud_context_t *ctx, oc_client_response_t *data) } int64_t expires_in = 0; - if (oc_rep_get_int(payload, EXPIRESIN_KEY, &expires_in) && expires_in > 0 && - expires_in <= UINT16_MAX) { + oc_rep_get_int(payload, EXPIRESIN_KEY, &expires_in); + ctx->expires_in = check_expires_in(expires_in); + if (ctx->expires_in > 0) { ctx->store.status |= OC_CLOUD_TOKEN_EXPIRY; - ctx->expires_in = (uint16_t)expires_in; - } else { - ctx->expires_in = 0; } cloud_store_dump_async(&ctx->store); @@ -410,13 +427,11 @@ _refresh_token_handler(oc_cloud_context_t *ctx, oc_client_response_t *data) goto error; } - ctx->expires_in = 0; - if (oc_rep_get_int(payload, EXPIRESIN_KEY, &expires_in)) { - if (expires_in > 0 && expires_in <= UINT16_MAX) { - ctx->expires_in = (uint16_t)expires_in; + oc_rep_get_int(payload, EXPIRESIN_KEY, &expires_in); + ctx->expires_in = check_expires_in(expires_in); + if (ctx->expires_in > 0) { ctx->store.status |= OC_CLOUD_TOKEN_EXPIRY; } - } cloud_store_dump_async(&ctx->store);
correct OIDCPublicKeyFiles config.c doc; see thanks
@@ -2819,7 +2819,7 @@ const command_rec oidc_config_cmds[] = { oidc_set_public_key_files, (void *)APR_OFFSETOF(oidc_cfg, public_keys), RSRC_CONF, - "The fully qualified names of the files that contain the X.509 certificates that contains the RSA public keys that can be used for encryption by the OP."), + "The fully qualified names of the files that contain the RSA public keys or X.509 certificates that contains the RSA public keys that can be used for signature validation or encryption by the OP."), AP_INIT_ITERATE(OIDCPrivateKeyFiles, oidc_set_private_key_files_enc, NULL,
Decoder: fix name confusion (context vs state) The name `context` is otherwise always used for `ZydisDecoderContext*`.
@@ -267,22 +267,22 @@ static ZyanStatus ZydisInputPeek(ZydisDecoderState* state, /** * Increases the read-position of the input data-source by one byte. * - * @param context A pointer to the `ZydisDecoderContext` instance + * @param state A pointer to the `ZydisDecoderState` instance * @param instruction A pointer to the `ZydisDecodedInstruction` struct. * * This function is supposed to get called ONLY after a successful call of `ZydisInputPeek`. * * This function increases the `length` field of the `ZydisDecodedInstruction` struct by one. */ -static void ZydisInputSkip(ZydisDecoderState* context, ZydisDecodedInstruction* instruction) +static void ZydisInputSkip(ZydisDecoderState* state, ZydisDecodedInstruction* instruction) { - ZYAN_ASSERT(context); + ZYAN_ASSERT(state); ZYAN_ASSERT(instruction); ZYAN_ASSERT(instruction->length < ZYDIS_MAX_INSTRUCTION_LENGTH); ++instruction->length; - ++context->buffer; - --context->buffer_len; + ++state->buffer; + --state->buffer_len; } /**
fixed missing spline free
@@ -80,6 +80,10 @@ void ccl_cosmology_compute_hmfparams(ccl_cosmology * cosmo, int *status) gsl_spline * etahmf = gsl_spline_alloc(D_SPLINE_TYPE, nd); *status = gsl_spline_init(etahmf, lgdelta, eta, nd); if (*status){ + gsl_spline_free(alphahmf); + gsl_spline_free(betahmf); + gsl_spline_free(gammahmf); + gsl_spline_free(phihmf); gsl_spline_free(etahmf); *status = CCL_ERROR_SPLINE ; strcpy(cosmo->status_message, "ccl_massfunc.c: ccl_cosmology_compute_hmfparams(): Error creating eta(D) spline\n");
docs: Add oomkill to README "How to use" section. Fixes: ("docs: Add oomkill to README and requirements.") Suggested-by: Jose Blanquicet
@@ -69,6 +69,7 @@ Available Commands: help Help about any command mountsnoop Trace mount and umount syscalls network-policy Generate network policies based on recorded network activity + oomkill Trace the Linux out-of-memory (OOM) killer opensnoop Trace open() system calls process-collector Gather information about running processes profile Profile CPU usage by sampling stack traces
Removed configurable jac mode; fix for windows _Generic
@@ -181,8 +181,6 @@ SURVIVE_EXPORT void survive_kalman_tracker_correct_imu(SurviveKalmanTracker *tra t->term_criteria.max_error) \ STRUCT_CONFIG_ITEM("kalman-" #prefix "-" #x "-iterations", "Max iterations for " #x, default_iterations, \ t->term_criteria.max_iterations) \ - STRUCT_CONFIG_ITEM("kalman-" #prefix "-" #x "-jacobian-mode", \ - "Jacobian mode " #x ". -1 for debug, 1 for numerical", 0, t->meas_jacobian_mode) \ STRUCT_CONFIG_ITEM("kalman-" #prefix "-" #x "-step-size", "Step size for " #x ".", -1, t->numeric_step_size) \ STRUCT_CONFIG_ITEM("kalman-" #prefix "-" #x "-error-state-model", \ "Use error state model jacobian if available " #x, true, t->error_state_model) \
added owtvec to check targets
INCLUDES = $(OWPINCS) $(I2UTILINCS) AM_CFLAGS = $(OWP_PREFIX_CFLAGS) -bin_PROGRAMS = owtvec +check_PROGRAMS = owtvec +TESTS = $(check_PROGRAMS) owtvec_SOURCES = owtvec.c owtvec_LDADD = $(OWPLIBS) -lI2util $(MALLOCDEBUGLIBS) owtvec_DEPENDENCIES = $(OWPLIBDEPS) $(I2UTILLIBDEPS)
readme: added build status badges
@@ -7,6 +7,11 @@ Read more about Lime Suite on the official project page: * https://myriadrf.org/projects/lime-suite/ +##Build Status + +- Travis: [![Travis Build Status](https://travis-ci.org/myriadrf/LimeSuite.svg?branch=master)](https://travis-ci.org/myriadrf/LimeSuite) +- AppVeyor: [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/stwfarvq0j01qyaq)](https://ci.appveyor.com/project/myriadrf/limesuite) + ## Documentation Find build and install instructions for Lime Suite on the wiki:
yin parser ADD support for unique element
@@ -743,6 +743,8 @@ yin_parse_content(struct yin_parser_ctx *ctx, struct yin_subelement *subelem_inf case YANG_TYPEDEF: break; case YANG_UNIQUE: + ret = yin_parse_simple_elements(ctx, subelem_attrs, data, kw, + (const char ***)subelem_info_rec->dest, YIN_ARG_TAG, Y_STR_ARG, exts); break; case YANG_UNITS: break;
ames: don't start pump timers on recork
[%hear =message-num =ack-meat] [%near =naxplanation] [%prod ~] - [%wake ~] + [%wake recork=?] == :: $message-pump-gift: effect from |message-pump :: $% [%hear =message-num =fragment-num] [%done =message-num lag=@dr] [%halt ~] - [%wake current=message-num] + [%wake recork=? current=message-num] [%prod ~] == :: $packet-pump-gift: effect from |packet-pump :: =/ =channel [[our her.u.res] now channel-state -.u.state] :: - abet:(on-wake:(make-peer-core u.state channel) bone.u.res error) + =< abet + %- on-wake:(make-peer-core u.state channel) + [recork=& bone.u.res error] -- :: +on-init: first boot; subscribe to our info from jael :: :: +on-wake: handle timer expiration :: ++ on-wake - |= [=bone error=(unit tang)] + |= [recork=? =bone error=(unit tang)] ^+ peer-core + :: ignore spurious pump timers for %cork's + :: + :: This is here to fix canaries that had spurious pump timers. + :: + ?: &(!recork (~(has in closing.peer-state) bone)) + ~> %slog.0^leaf/"ames: dropping pump wake while recorking {<bone>}" + peer-core :: if we previously errored out, print and reset timer for later :: :: This really shouldn't happen, but if it does, make sure we peer-core :: maybe resend some timed out packets :: - (run-message-pump bone %wake ~) + (run-message-pump bone %wake recork) :: +send-shut-packet: fire encrypted packet at rcvr and maybe sponsors :: ++ send-shut-packet |= task=message-pump-task ^+ [gifts state] :: - =~ (dispatch-task task) - feed-packets + =. message-pump (dispatch-task task) + =. message-pump feed-packets + :: don't set new pump timer if triggered by a recork timer + :: + =? message-pump =([%wake recork=&] task) (run-packet-pump %halt ~) - assert + :: + =. message-pump assert [(flop gifts) state] - == :: +dispatch-task: perform task-specific processing :: ++ dispatch-task ?- -.task %prod (run-packet-pump %prod ~) %memo (on-memo message-blob.task) - %wake (run-packet-pump %wake current.state) + %wake (run-packet-pump %wake recork.task current.state) %hear ?- -.ack-meat.task %& ?- -.task %hear (on-hear [message-num fragment-num]:task) %done (on-done message-num.task) - %wake (on-wake current.task) + %wake (on-wake recork.task current.task) %prod on-prod %halt set-wake == :: +on-wake: handle packet timeout :: ++ on-wake - |= current=message-num + |= [recork=? current=message-num] ^+ packet-pump :: assert temporal coherence ::
khan: separate arms by blank comments
++ get-beak |= [=bear now=@da] ?@(bear [our bear %da now] bear) +:: ++ get-dais |= [=beak =mark rof=roof] ^- dais:clay ~|(mark-invalid+mark !!) ?> =(%dais p.u.u.ret) !<(dais:clay q.u.u.ret) +:: ++ get-tube |= [=beak =mark =out=mark rof=roof] ^- tube:clay ~|(tube-invalid+[mark out-mark] !!) ?> =(%tube p.u.u.ret) !<(tube:clay q.u.u.ret) +:: ++ make-wire |= [=beak =mark] ^- wire [%fyrd (en-beam beak mark ~)] +:: ++ read-wire |= =wire ^- (pair beak mark) ?> ?=([%fyrd ^] wire) =/ =beam (need (de-beam t.wire)) ?>(?=([@ ~] s.beam) beam(s i.s.beam)) +:: ++ start-spider |= [our=@p =vase] ^- note [%g %deal [our our] %spider %poke %spider-start vase] +:: ++ watch-spider |= [our=@p =path] ^- note
arch/arm/amebad: Fix the 'mixed uart log' issue This commit fixes the 'mixed uart log' issue which happens when multiple functions use log_uart at the same time.
#elif defined(CONFIG_UART1_SERIAL_CONSOLE) #define CONSOLE_DEV g_uart1port /* UART1 is console */ #define TTYS0_DEV g_uart1port /* UART1 is ttyS0 */ -#define CONSOLE UART1_DEV +#define CONSOLE UART3_DEV #define UART1_ASSIGNED 1 #define HAVE_SERIAL_CONSOLE #elif defined(CONFIG_UART2_SERIAL_CONSOLE) @@ -672,8 +672,30 @@ static bool rtl8721d_up_txready(struct uart_dev_s *dev) { struct rtl8721d_up_dev_s *priv = (struct rtl8721d_up_dev_s *)dev->priv; DEBUGASSERT(priv); + +#if defined(CONFIG_UART0_SERIAL_CONSOLE) + if (uart_index_get(priv->tx) == 0){ + while (!serial_writable(sdrv[uart_index_get(priv->tx)])); + return true; + } + else +#elif defined(CONFIG_UART1_SERIAL_CONSOLE) + if (uart_index_get(priv->tx) == 3){ + while (!serial_writable(sdrv[uart_index_get(priv->tx)])); + return true; + } + else +#elif defined(CONFIG_UART2_SERIAL_CONSOLE) + if (uart_index_get(priv->tx) == 2){ + while (!serial_writable(sdrv[uart_index_get(priv->tx)])); + return true; + } + else +#endif + { return (serial_writable(sdrv[uart_index_get(priv->tx)])); } +} /**************************************************************************** * Name: up_txempty
[mechanics] use collision_group=-1 to mean no collisions for that contactor
@@ -1238,6 +1238,11 @@ void SiconosBulletCollisionManager_impl::createCollisionObjectsForBodyContactorS std::vector< SP::SiconosContactor >::const_iterator it; for (it=con->begin(); it!=con->end(); it++) { + // special collision group -1 = do not collide, thus we can skip + // creation of associated collision objects + if ((*it)->collision_group == -1) continue; + + // otherwise visit the object with createCollisionObject ccosv->contactor = *it; ccosv->contactor->shape->acceptSP(ccosv); }
[File Browser] Remove click_me!.txt magic
@@ -505,12 +505,6 @@ impl FileBrowser2 { // Don't set up any callback for file click entry_view.button.on_left_click(move |_b| { printf!("Button with path {:?} clicked! Launching...\n", path); - if path == "click_me!.txt" { - amc_message_send( - FILE_SERVER_SERVICE_NAME, - LaunchProgram::new("/usr/applications/valentine"), - ); - } else { let browser_clone = Rc::clone(&browser_clone); let full_path = format!( "{}/{}", @@ -522,7 +516,6 @@ impl FileBrowser2 { path ); amc_message_send(FILE_SERVER_SERVICE_NAME, LaunchProgram::new(&full_path)); - } }); } }
Fixed: Game template did not compile with VS2019
<PreprocessorDefinitions>_DEBUG;_CONSOLE;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>true</ConformanceMode> <AdditionalIncludeDirectories>..\32blit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <LanguageStandard>stdcpp14</LanguageStandard> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <SubSystem>Console</SubSystem> <PreprocessorDefinitions>_DEBUG;_CONSOLE;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>true</ConformanceMode> <AdditionalIncludeDirectories>..\32blit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <LanguageStandard>stdcpp14</LanguageStandard> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <SubSystem>Console</SubSystem> <PreprocessorDefinitions>NDEBUG;_CONSOLE;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>true</ConformanceMode> <AdditionalIncludeDirectories>..\32blit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <LanguageStandard>stdcpp14</LanguageStandard> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <SubSystem>Console</SubSystem> <PreprocessorDefinitions>NDEBUG;_CONSOLE;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>true</ConformanceMode> <AdditionalIncludeDirectories>..\32blit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <LanguageStandard>stdcpp14</LanguageStandard> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <SubSystem>Console</SubSystem>
jacuzzi: enable usb-a port power on S3 TEST=verify that usb keyboard works without manually enable EN_USBA_5V BRANCH=master Tested-by: Ting Shen
@@ -256,3 +256,17 @@ int charger_is_sourcing_otg_power(int port) { return 0; } + +/* Called on AP S5 -> S3 transition */ +static void board_chipset_startup(void) +{ + gpio_set_level(GPIO_EN_USBA_5V, 1); +} +DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_chipset_startup, HOOK_PRIO_DEFAULT); + +/* Called on AP S3 -> S5 transition */ +static void board_chipset_shutdown(void) +{ + gpio_set_level(GPIO_EN_USBA_5V, 0); +} +DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, board_chipset_shutdown, HOOK_PRIO_DEFAULT);
group-store: cleanup sign handling
++ on-agent |= [=wire =sign:agent:gall] ^- (quip card _this) - ?: ?=([%pyre *] wire) =^ cards state - (take-pyre:gc t.wire sign) - [cards this] - ?: ?=([%gladio ~] wire) - (on-agent:def wire sign) - ?: ?=([%gladio @ ~] wire) - =^ cards state - (take-migrate:gc sign) - [cards this] - ?. ?=([%try-rejoin @ *] wire) - (on-agent:def wire sign) + ?+ wire [- state]:(on-agent:def wire sign) + [%pyre *] (take-pyre:gc t.wire sign) + [%gladio @ ~] (take-migrate:gc sign) + :: + [%try-rejoin @ *] ?> ?=(%poke-ack -.sign) =/ rid=resource (de-path:resource t.t.wire) ?~ p.sign =/ =cage [%pull-hook-action !>([%add entity.rid rid])] - :_ this + :_ state [%pass / %agent [our.bowl %group-pull-hook] %poke cage]~ =/ nack-count=@ud (slav %ud i.t.wire) =/ wakeup=@da (add now.bowl (mul ~s1 (bex (min 19 nack-count)))) - :_ this + :_ state [%pass wire %arvo %b %wait wakeup]~ + == + [cards this] :: ++ on-arvo |= [=wire =sign-arvo]
add log handler to octave outputs error/warning/info messages
@@ -60,6 +60,17 @@ void PrintDeviceInfo(lms_device_t* port) } } + +static void LogHandler(int level, const char *msg) +{ + const char* levelText[] = {"CRITICAL: " , "ERROR: ", "WARNING: ", "INFO: ", "DEBUG: "}; + if (level < 0) + level = 0; + else if (level >= 4) + return; //do not output debug messages + octave_stdout << levelText[level] << msg << endl; +} + DEFUN_DLD (LimeGetDeviceList, args, nargout, "LIST = LimeGetDeviceList() - Returns available device list") { @@ -104,10 +115,11 @@ DEV [optional] - device name to connect, obtained via LimeGetDeviceList()") else status = LMS_Open(&lmsDev, NULL, NULL); + LMS_RegisterLogHandler(LogHandler); + LMS_Synchronize(lmsDev,false); if(status != 0) { - octave_stdout << LMS_GetLastErrorMessage() << endl; return octave_value(status); } PrintDeviceInfo(lmsDev); @@ -150,7 +162,6 @@ DEFUN_DLD (LimeLoadConfig, args, nargout, octave_stdout << "LimeLoadConfig loading: " << filename << endl; if (LMS_LoadConfig(lmsDev, filename.c_str())!=0) { - octave_stdout << LMS_GetLastErrorMessage() << endl; return octave_value(-1); } octave_stdout << "Config loaded successfully: " << endl; @@ -217,8 +228,7 @@ DEFUN_DLD (LimeStartStreaming, args, nargout, streamRx[i].dataFmt = lms_stream_t::LMS_FMT_I16; streamRx[i].isTx = false; streamRx[i].throughputVsLatency = 0.5; - if(LMS_SetupStream(lmsDev, &streamRx[i]) != 0) - octave_stdout << LMS_GetLastErrorMessage() << endl; + LMS_SetupStream(lmsDev, &streamRx[i]); } if (tx[i]) { @@ -227,8 +237,7 @@ DEFUN_DLD (LimeStartStreaming, args, nargout, streamTx[i].dataFmt = lms_stream_t::LMS_FMT_I16; streamTx[i].isTx = true; streamTx[i].throughputVsLatency = 0.5; - if(LMS_SetupStream(lmsDev, &streamTx[i]) != 0) - octave_stdout << LMS_GetLastErrorMessage() << endl; + LMS_SetupStream(lmsDev, &streamTx[i]); } } @@ -238,15 +247,13 @@ DEFUN_DLD (LimeStartStreaming, args, nargout, { if (!rxbuffers) rxbuffers = new complex16_t[fifoSize/2]; - if(LMS_StartStream(&streamRx[i]) != 0) - octave_stdout << LMS_GetLastErrorMessage() << endl; + LMS_StartStream(&streamRx[i]); } if (tx[i]) { if (!txbuffers) txbuffers = new complex16_t[fifoSize/2]; - if(LMS_StartStream(&streamTx[i]) != 0) - octave_stdout << LMS_GetLastErrorMessage() << endl; + LMS_StartStream(&streamTx[i]); } }
Fix issue in actor moveTo codegen where last arg would overwrite first variable data
@@ -2651,7 +2651,7 @@ ${ } .area _CODE_255 -${this.includeActor ? "ACTOR = -4" : ""} +${this.includeActor ? "ACTOR = -5" : ""} ___bank_${name} = 255 .globl ___bank_${name} @@ -2667,6 +2667,8 @@ ${lock ? this._padCmd("VM_LOCK", "", 8, 24) + "\n\n" : ""}${ this._padCmd("VM_PUSH_CONST", "0", 8, 24) + "\n" + this._padCmd("VM_PUSH_CONST", "0", 8, 24) + + "\n" + + this._padCmd("VM_PUSH_CONST", "0", 8, 24) + "\n\n" : "" }${this.output.join("\n")}
config-tools: add confirm message Add confirm message when saveing scenario and launch scripts.
<template #title> <div class="p-1 ps-3 d-flex w-100 justify-content-between align-items-center"> <div class="fs-4">3. Configure settings for scenario and launch scripts</div> - <button type="button" class="btn btn-primary btn-lg" @click.stop.prevent="saveScenario"> + <button type="button" class="btn btn-primary btn-lg" @click="saveScenario"> Save Scenario and Launch Scripts </button> </div> @@ -210,8 +210,15 @@ export default { vmConfig['@id'] = vmIndex }) }, - saveScenario(event) { + saveScenario() { this.assignVMID() + let msg = ["Scenario xml saved\n", + ".xml settings validated\n", + "launch scripts generated\n"]; + let errmsg = ["Scenario xml save failed\n", + ".xml settings validate failed\n", + "launch scripts generate failed\n"]; + let step = 0 let scenarioXMLData = configurator.convertScenarioToXML( { // simple deep copy @@ -219,18 +226,29 @@ export default { } ); configurator.writeFile(this.WorkingFolder + 'scenario.xml', scenarioXMLData) - .then(() => configurator.pythonObject.validateScenario(this.board.content, scenarioXMLData)) - .then((result) => { - this.errors = result; - if (result.length === 0) { + .then(() => { + step = 1 + configurator.pythonObject.validateScenario(this.board.content, scenarioXMLData) + }) + .then(() => { + step = 2 let launchScripts = configurator.pythonObject.generateLaunchScript(this.board.content, scenarioXMLData) for (let filename in launchScripts) { configurator.writeFile(this.WorkingFolder + filename, launchScripts[filename]) } - } }) - event.stopPropagation() - event.preventDefault() + .then(() => { + alert(`${msg.join('')} \n All files successfully saved to your working folder ${this.WorkingFolder}`) + }) + .catch((err) => { + console.log(err) + let outmsg = '' + for (var i = 0; i < step; i++) + outmsg += msg[i] + for (i = step; i < 3; i++) + outmsg += errmsg[i] + alert(`${outmsg} \n Please check your configuration`) + }) } } }
[chainmaker]add Deinit
@@ -162,5 +162,15 @@ int main(int argc, char *argv[]) return -1; } + +result = BoatHlchainmakerContractQuery(&tx_ptr, "find_by_file_hash","fact", &query_reponse); + if (result != BOAT_SUCCESS) + { + return -1; + } + + /* step-6: chainmaker transaction structure Deinitialization */ + BoatHlchainmakerTxDeInit(&tx_ptr); + return 0; }
[CUDA] Use C style comments in header
@@ -31,8 +31,8 @@ extern "C" { #endif -// Generate a PTX file from an LLVM bitcode file. -// Returns zero on success, non-zero on failure. +/* Generate a PTX file from an LLVM bitcode file. */ +/* Returns zero on success, non-zero on failure. */ int pocl_ptx_gen(const char *BitcodeFilename, const char *PTXFilename, const char *KernelName,
pwm: convert pwm duty type to float, fix [Detail] pwm duty type should be float type [Verified Cases] Build Pass: <py_engine_demo> Test Pass: <py_engine_demo>
@@ -135,8 +135,7 @@ int32_t aos_hal_pwm_para_chg(pwm_dev_t *pwm, pwm_config_t para) printf ("set freq to %d on pwm%d failed, ret:%d\r\n", para.freq, pwm->port, ret); } - int duty = 0; - duty = para.duty_cycle / 100; + float duty = para.duty_cycle / 100.0; ret = ioctl(*p_fd, IOC_PWM_DUTY_CYCLE, (unsigned long)&duty); if (ret) { printf("set duty cycle to %d on pwm%d failed, ret:%d\r\n", duty, pwm->port, ret);
bench: bump thresholds
@@ -11,16 +11,16 @@ SLUSH_PERCENTAGE = 0.25 # How much faster Rust should be than other implementations RATIOS_SBP2JSON = { - "haskell": 2.06, - "python": 26.0, + "haskell": 2.19, + "python": 17.72, } RATIOS_JSON2SBP = { - "haskell": 2.18, + "haskell": 2.75, } RATIOS_JSON2JSON = { - "haskell": 2.68, + "haskell": 3.45, } FAILED = [False]
[hardware] Undo changes in common_cells and tech_cells revisions
@@ -23,8 +23,8 @@ packages: dependencies: - common_cells common_cells: - revision: a06e4beb08b8c0a5ef2c85d9afcfe0d96be76f30 - version: 1.20.0 + revision: ff721776a7deabb0d09046c3aa8411d6e0686f63 + version: 1.19.0 source: Git: "https://github.com/pulp-platform/common_cells.git" dependencies: @@ -43,8 +43,8 @@ packages: Git: "[email protected]:mempool/snitch.git" dependencies: [] tech_cells_generic: - revision: f5919f811921e5fc30c9ddaedd001b8a9b1dab1f - version: 0.2.2 + revision: 627fd6c50733159354df82ea488aeac9b2e076ea + version: 0.2.1 source: Git: "https://github.com/pulp-platform/tech_cells_generic.git" dependencies:
Compile and valgrind warnings
@@ -3828,9 +3828,7 @@ int migration_stress_test() int client_rebinding_done = 0; struct sockaddr_in hack_address; struct sockaddr_in hack_address_random; - uint64_t loss_mask_data = 0; uint64_t simulated_time = 0; - uint64_t next_time = 0; uint64_t loss_mask = 0; uint64_t last_inject_time = 0; uint64_t random_context = 0xBABAC001; @@ -3838,14 +3836,15 @@ int migration_stress_test() int ret = tls_api_init_ctx(&test_ctx, PICOQUIC_INTERNAL_TEST_VERSION_1, PICOQUIC_TEST_SNI, PICOQUIC_TEST_ALPN, &simulated_time, NULL, 0, 0, 0); + if (ret == 0 && test_ctx == NULL) { + ret = PICOQUIC_ERROR_MEMORY; + } + + if (ret == 0) { memcpy(&hack_address, &test_ctx->client_addr, sizeof(struct sockaddr_in)); memcpy(&hack_address_random, &test_ctx->client_addr, sizeof(struct sockaddr_in)); hack_address.sin_port += 1023; - - - if (ret == 0 && test_ctx == NULL) { - ret = PICOQUIC_ERROR_MEMORY; } if (ret == 0) {
BugID:21213413:Enable network loopback interface on rda5981
/** * Loopback demo related options. */ -//#define LWIP_NETIF_LOOPBACK 1 -//#define LWIP_HAVE_LOOPIF 1 -//#define LWIP_NETIF_LOOPBACK_MULTITHREADING 1 -//#define LWIP_LOOPBACK_MAX_PBUFS 8 +#define LWIP_NETIF_LOOPBACK 1 +#define LWIP_HAVE_LOOPIF 1 +#define LWIP_NETIF_LOOPBACK_MULTITHREADING 1 +#define LWIP_LOOPBACK_MAX_PBUFS 8 #define TCPIP_THREAD_NAME "tcp/ip" #define TCPIP_THREAD_STACKSIZE 3072
Enable vectorized CRT support for string routines in release builds
#define PH_VECTOR_LEVEL_SSE2 1 #define PH_VECTOR_LEVEL_AVX 2 +#if (_MSC_VER < 1920 || DEBUG) +// Newer versions of the CRT support AVX/SSE vectorization for string routines +// but keep using our vectorization for debug builds since optimizations are +// disabled for the debug CRT and slower than our routines in this case. (dmex) +#define PH_LEGACY_CRT_SUPPORT 1 +#endif + typedef struct _PHP_BASE_THREAD_CONTEXT { PUSER_THREAD_START_ROUTINE StartAddress; @@ -625,7 +632,7 @@ SIZE_T PhCountStringZ( _In_ PWSTR String ) { -#ifndef _ARM64_ +#if (PH_LEGACY_CRT_SUPPORT && !_ARM64_) if (PhpVectorLevel >= PH_VECTOR_LEVEL_SSE2) { PWSTR p; @@ -1446,7 +1453,7 @@ ULONG_PTR PhFindCharInStringRef( if (!IgnoreCase) { -#ifndef _ARM64_ +#if (PH_LEGACY_CRT_SUPPORT && !_ARM64_) if (PhpVectorLevel >= PH_VECTOR_LEVEL_SSE2) { SIZE_T length16; @@ -1539,7 +1546,7 @@ ULONG_PTR PhFindLastCharInStringRef( if (!IgnoreCase) { -#ifndef _ARM64_ +#if (PH_LEGACY_CRT_SUPPORT && !_ARM64_) if (PhpVectorLevel >= PH_VECTOR_LEVEL_SSE2) { SIZE_T length16; @@ -3224,7 +3231,7 @@ BOOLEAN PhConvertUtf8ToUtf16Size( _In_ SIZE_T BytesInUtf8String ) { -#if (NATIVE_STRING_CONVERSION) +#if (PH_NATIVE_STRING_CONVERSION) ULONG bytesInUtf16String = 0; if (NT_SUCCESS(RtlUTF8ToUnicodeN( @@ -3286,7 +3293,7 @@ BOOLEAN PhConvertUtf8ToUtf16Buffer( _In_ SIZE_T BytesInUtf8String ) { -#if (NATIVE_STRING_CONVERSION) +#if (PH_NATIVE_STRING_CONVERSION) ULONG bytesInUtf16String = 0; if (NT_SUCCESS(RtlUTF8ToUnicodeN( @@ -3414,7 +3421,7 @@ BOOLEAN PhConvertUtf16ToUtf8Size( _In_ SIZE_T BytesInUtf16String ) { -#if (NATIVE_STRING_CONVERSION) +#if (PH_NATIVE_STRING_CONVERSION) ULONG bytesInUtf8String = 0; if (NT_SUCCESS(RtlUnicodeToUTF8N( @@ -3476,7 +3483,7 @@ BOOLEAN PhConvertUtf16ToUtf8Buffer( _In_ SIZE_T BytesInUtf16String ) { -#if (NATIVE_STRING_CONVERSION) +#if (PH_NATIVE_STRING_CONVERSION) ULONG bytesInUtf8String = 0; if (NT_SUCCESS(RtlUnicodeToUTF8N(
Compat non-GNU, non-clang compilers
@@ -11,6 +11,8 @@ Feel free to copy, use and enjoy according to the license provided. #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) #define deprecated(reason) deprecated #endif +#elif !defined(__clang__) +#define __attribute__(...) #endif #include <fio.h>
Remove mRefCound debug. Closes
@@ -54,8 +54,6 @@ SimpleSurface::SimpleSurface(int inWidth,int inHeight,PixelFormat inPixelFormat, mTexture = 0; mPixelFormat = inPixelFormat; - mRefCount = 10000000; - int pix_size = BytesPerPixel(inPixelFormat); if (inByteAlign>1)
6. trivially single-home arvo with %whom
=| bod=(unit vase) :: %zuse if installed =| $: lac=? :: laconic bit eny=@ :: entropy + urb/(unit ship) :: identity vanes=(list [label=@tas =vane]) :: modules == :: =< |% :: :: XX should vega be in this list? :: - ?: ?=(?(%veer %vega %verb %wack) -.q.ovo) + ?: ?=(?(%veer %vega %verb %wack %whom) -.q.ovo) [[ovo ~] +>.$] :: =^ zef vanes ?> ?=(@ q.q.ovo) =. eny (mix eny (shaz q.q.ovo)) [~ +>.$] + :: become who you were born to be + :: + %whom + ?> ?=(@ q.q.ovo) + [~ +>.$(urb `q.q.ovo)] == :: ++ veke :: build new kernel
CMake: Only strip android libraries in release mode;
@@ -734,7 +734,6 @@ elseif(ANDROID) COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/src/resources/Activity_${ACTIVITY}.java Activity.java COMMAND ${Java_JAVAC_EXECUTABLE} -classpath "${ANDROID_CLASSPATH}" -d . Activity.java COMMAND ${ANDROID_TOOLS}/dx --dex --output raw/classes.dex ${EXTRA_JAR} org/lovr/app/Activity.class - COMMAND ${CMAKE_STRIP} raw/lib/${ANDROID_ABI}/*.so COMMAND ${ANDROID_TOOLS}/aapt package -f @@ -758,6 +757,16 @@ elseif(ANDROID) add_dependencies(buildAPK lovr) + if(CMAKE_BUILD_TYPE STREQUAL Release) + add_custom_target( + strip ALL + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_STRIP} raw/lib/${ANDROID_ABI}/*.so + ) + add_dependencies(strip lovr) + add_dependencies(buildAPK strip) + endif() + # Copy plugin libraries to lib folder before packaging APK foreach(target ${ALL_PLUGIN_TARGETS}) add_custom_command(TARGET lovr POST_BUILD
Add opacity parsing, update LCUI_PrintStyleSheet()
@@ -135,6 +135,7 @@ static KeyNameGroupRec style_name_map[] = { { key_left, "left" }, { key_bottom, "bottom" }, { key_position, "position" }, + { key_opacity, "opacity" }, { key_vertical_align, "vertical-align" }, { key_background_color, "background-color" }, { key_background_position, "background-position" }, @@ -1294,8 +1295,11 @@ void LCUI_PrintStyleSheet( LCUI_StyleSheet ss ) case SVT_STYLE: LOG( "%s", LCUI_GetStyleValueName( s->val_style ) ); break; + case SVT_VALUE: + LOG( "%d", s->val_int ); + break; default: - LOG( "%d", s->value ); + LOG( "%g", s->value ); break; } LOG( ";\n" );
a little optimization in touchAllWatchedKeysInDb touch keys only if the key is in one of the dbs, in case rewind the list when the key doesn't exist.
@@ -380,14 +380,14 @@ void touchAllWatchedKeysInDb(redisDb *emptied, redisDb *replaced_with) { dictIterator *di = dictGetSafeIterator(emptied->watched_keys); while((de = dictNext(di)) != NULL) { robj *key = dictGetKey(de); + if (dictFind(emptied->dict, key->ptr) || + (replaced_with && dictFind(replaced_with->dict, key->ptr))) + { list *clients = dictGetVal(de); if (!clients) continue; listRewind(clients,&li); while((ln = listNext(&li))) { client *c = listNodeValue(ln); - if (dictFind(emptied->dict, key->ptr)) { - c->flags |= CLIENT_DIRTY_CAS; - } else if (replaced_with && dictFind(replaced_with->dict, key->ptr)) { c->flags |= CLIENT_DIRTY_CAS; } }
naive: l2 csv change gasUsed to effectiveGasPrice
:- %- parse-hex-result:rpc:ethereum ~| json ?> ?=(%o -.json) - (~(got by p.json) 'gasUsed') :: gas used in wei + (~(got by p.json) 'effectiveGasPrice') :: gas used in wei %- parse-hex-result:rpc:ethereum ~| json ?> ?=(%o -.json)
Avoid test_errstr in a cross compiled configuration There's too high a chance that the openssl app and perl get different messages for some error numbers. [extended tests]
use strict; no strict 'refs'; # To be able to use strings as function refs use OpenSSL::Test; +use OpenSSL::Test::Utils; use Errno qw(:POSIX); use POSIX qw(strerror); @@ -22,6 +23,14 @@ use constant NUM_SYS_STR_REASONS => 127; setup('test_errstr'); +# In a cross compiled situation, there are chances that our +# application is linked against different C libraries than +# perl, and may thereby get different error messages for the +# same error. +# The safest is not to test under such circumstances. +plan skip_all => 'This is unsupported for cross compiled configurations' + if config('CROSS_COMPILE'); + # These are POSIX error names, which Errno implements as functions # (this is documented) my @posix_errors = @{$Errno::EXPORT_TAGS{POSIX}};
interface: clarify error message when adding existing interface When adding a network interface that is already known to babeld, an error message is displayed and the new configuration is ignored. This message is adjusted to include the name of the interface being added so it is visible from the logs without context
@@ -68,8 +68,8 @@ add_interface(char *ifname, struct interface_conf *if_conf) if(strcmp(ifp->name, ifname) == 0) { if(if_conf) fprintf(stderr, - "Warning: attempting to add existing interface, " - "new configuration ignored.\n"); + "Warning: attempting to add existing interface (%s), " + "new configuration ignored.\n", ifname); return ifp; } }
Bug fix for SCL being held low after NACK on NRF52 For some reason SCL is held low by the nrf52832 after a NACK. For an example of the bug using the NRF52, see:
@@ -302,6 +302,10 @@ err: if (regs && regs->EVENTS_ERROR) { rc = regs->ERRORSRC; regs->ERRORSRC = rc; + + // Disable/re-enable to release SCL after an error + regs->ENABLE = TWI_ENABLE_ENABLE_Disabled; + regs->ENABLE = TWI_ENABLE_ENABLE_Enabled; } return (rc); } @@ -367,6 +371,10 @@ err: if (regs && regs->EVENTS_ERROR) { rc = regs->ERRORSRC; regs->ERRORSRC = rc; + + // Disable/re-enable to release SCL after an error + regs->ENABLE = TWI_ENABLE_ENABLE_Disabled; + regs->ENABLE = TWI_ENABLE_ENABLE_Enabled; } return (rc); }
Include u2019 (RIGHT SINGLE QUOTATION MARK) glyph by default
@@ -18,6 +18,7 @@ void create_fonts(const overlay_params& params, ImFont*& small_font, ImFont*& te static const ImWchar default_range[] = { 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2019, 0x2019, // RIGHT SINGLE QUOTATION MARK //0x0100, 0x017F, // Latin Extended-A //0x2103, 0x2103, // Degree Celsius //0x2109, 0x2109, // Degree Fahrenheit
v2.71 landed
-ejdb2 (2.71) UNRELEASED; urgency=medium +ejdb2 (2.71) testing; urgency=medium * Fixed wrong format of printf like function calls. * Query placeholders with the same name can be specified multiply times. @@ -6,7 +6,7 @@ ejdb2 (2.71) UNRELEASED; urgency=medium * Removed potential memory leaks in `jql_set_xx` query API (jql.h) * Added BearSSL include files as part of ejdb2 distribution - -- Anton Adamansky <[email protected]> Mon, 14 Feb 2022 20:14:28 +0700 + -- Anton Adamansky <[email protected]> Fri, 18 Feb 2022 21:57:08 +0700 ejdb2 (2.70) testing; urgency=medium
CONTRIBUTING: add note for changes to package
@@ -185,8 +185,10 @@ step towards the end goal. Each commit on its own should be able to be compiled Please follow the recommendations below to write a *useful* commit message. 1. Add a prefix to the subject line that gives the area of code that is changed. - Usually this will be the relative file path of the file being changed. (If - the change is to the pbio library, omit the `lib/pbio/` part of the path.) + Usually this will be the relative file path of the file being changed. + - If the change is to the pbio library, omit the `lib/` part of the path. + - For changes to the implementation of the `pybricks` package, use import path + instead of the file path, as in [this example](https://github.com/pybricks/pybricks-micropython/commit/f45333e76d3c946ea1a5932745fe76573263b9d6). 2. The rest of the subject line describes *what* changed.
fix he-lpbk interleave help
@@ -288,6 +288,14 @@ const std::map<std::string, uint32_t> he_test_mode = { using test_afu = opae::afu_test::afu; using test_command = opae::afu_test::command; +// Inerleave help +const char *interleave_help = R"desc(Interleave requests pattern to use in throughput mode {0, 1, 2} +indicating one of the following series of read/write requests: +0: rd-wr-rd-wr +1: rd-rd-wr-wr +2: rd-rd-rd-rd-wr-wr-wr-wr)desc"; + + class host_exerciser : public test_afu { public: host_exerciser() @@ -309,10 +317,7 @@ public: app_.add_option("-d,--delay", he_delay_, "Enables random delay insertion between requests")->default_val(false); // Configure interleave requests in Throughput mode - app_.add_option("--interleave", he_interleave_, "Interleave requests pattern in Throughput mode {0, 1, 2} \ - Interleave pattern:0 rd-wr-rd-wr Interleave pattern:1 rd-rd-wr-wr \ - Interleave pattern:2 rd-rd-rd-rd-wr-wr-wr-wr ") - ->default_val(0); + app_.add_option("--interleave", he_interleave_, interleave_help)->default_val(0); }
Update docs/Customization/Dsptools-Blocks.rst
@@ -13,7 +13,7 @@ Dsptools Blocks =============== A ``DspBlock`` is the basic unit of signal processing functionality that can be integrated into an SoC. It has a AXI4-stream interface and an optional memory interface. -The idea idea is that these ``DspBlocks`` can be easily designed, unit tested, and assembled lego-style to build complex functionality. +The idea is that these ``DspBlocks`` can be easily designed, unit tested, and assembled lego-style to build complex functionality. A ``DspChain`` is one example of how to assemble ``DspBlocks``, in which case the streaming interfaces are connected serially into a pipeline, and a bus is instatiated and connected to every block with a memory interface. This project has example designs that integrate a ``DspBlock`` to a rocketchip-based SoC as an MMIO peripheral. The custom ``DspBlock`` has a ``ReadQueue`` before it and a ``WriteQueue`` after it, which allow memory mapped access to the streaming interfaces so the rocket core can interact with the ``DspBlock``. This section will primarily focus on designing Tilelink-based peripherals. However, through the resources provided in Dsptools, one could also define an AXI4-based peripheral by following similar steps. Furthermore, the examples here are simple, but can be extended to implement more complex accelerators, for example an `OFDM baseband <https://github.com/grebe/ofdm>`_ or a `spectrometer <https://github.com/ucb-art/craft2-chip>`_.
Reduce RE_MAX_AST_LEVELS (yes, yet again). Fixes
@@ -82,6 +82,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define RE_MAX_FIBERS 1024 // Maximum number of levels in regexp's AST -#define RE_MAX_AST_LEVELS 6000 +#define RE_MAX_AST_LEVELS 5000 #endif
Update .travis.yml CI will build 3 configs automatically
-sudo: required +sudo: false +dist: trusty +group: deprecated-2017Q2 language: c services: - docker +env: +- BUILD_CONFIG=tash +- BUILD_CONFIG=nettest +- BUILD_CONFIG=minimal + before_install: - docker pull an4967/tizenrt:1.1 - echo "${TRAVIS_BUILD_DIR}" @@ -12,5 +19,5 @@ before_install: script: - docker run -d -it --name tizenrt_docker -v ${TRAVIS_BUILD_DIR}:/root/tizenrt -w /root/tizenrt/os an4967/tizenrt:1.1 /bin/bash - docker exec tizenrt_docker make distclean -- docker exec -it tizenrt_docker bash -c 'cd tools; ./configure.sh artik053/nettest' -- docker exec -it tizenrt_docker bash -c 'export PATH=/root/gcc-arm-none-eabi-4_9-2015q3/bin:$PATH;make;' \ No newline at end of file +- docker exec -it tizenrt_docker bash -c "cd tools; ./configure.sh artik053/${BUILD_CONFIG}" +- docker exec -it tizenrt_docker bash -c "export PATH=/root/gcc-arm-none-eabi-4_9-2015q3/bin:$PATH;make;"
Added value "new-configured" to wifi parameter
@@ -2695,7 +2695,7 @@ int DeRestPluginPrivate::configureWifi(const ApiRequest &req, ApiResponse &rsp) { QString wifi = map["wifi"].toString(); - if ((map["wifi"].type() != QVariant::String) || ((wifi != "configured") && (wifi != "not-configured") && (wifi != "deactivated"))) + if ((map["wifi"].type() != QVariant::String) || ((wifi != "configured") && (wifi != "not-configured") && (wifi != "new-configured") && (wifi != "deactivated"))) { rsp.httpStatus = HttpStatusBadRequest; rsp.list.append(errorToMap(ERR_INVALID_VALUE, "/config/wifi", QString("invalid value, %1 for parameter, wifi").arg(wifi)));
polymorphic stack fix
@@ -149,8 +149,13 @@ u16 GetStackTopSlotIndex (IM3Compilation o) u16 GetSlotForStackIndex (IM3Compilation o, u16 i_stackIndex) -{ d_m3Assert (i_stackIndex < o->stackIndex); - return o->wasmStack [i_stackIndex]; +{ d_m3Assert (i_stackIndex < o->stackIndex or IsStackPolymorphic (o)); + u16 slot = c_slotUnused; + + if (not IsStackPolymorphic (o)) + slot = o->wasmStack [i_stackIndex]; + + return slot; }
[hardware] Fix address scrambling in tile
@@ -402,12 +402,14 @@ module mempool_tile #( for (genvar c = 0; c < NumCoresPerTile; c++) begin: gen_core_mux // Remove tile index from local_xbar_addr_int, since it will not be used for routing. addr_t local_xbar_addr_int; - assign local_xbar_req_addr[c] = addr_t'({local_xbar_addr_int[AddrWidth-1:ByteOffset+$clog2(NumBanksPerTile)], local_xbar_addr_int[0 +: ByteOffset + $clog2(NumBanksPerTile)]}); + assign local_xbar_req_addr[c] = + addr_t'({local_xbar_addr_int[ByteOffset + $clog2(NumBanksPerTile) + $clog2(NumTiles) +: TCDMAddrMemWidth], // Bank address + local_xbar_addr_int[0 +: ByteOffset + $clog2(NumBanksPerTile)]}); // Bank addr_t prescramble_tcdm_req_tgt_addr; // Switch tile and bank indexes for correct upper level routing assign tcdm_master_req_tgt_addr_o[c] = - addr_t'({prescramble_tcdm_req_tgt_addr[ByteOffset + $clog2(NumBanksPerTile) +: TCDMAddrMemWidth] , // Bank address + addr_t'({prescramble_tcdm_req_tgt_addr[ByteOffset + $clog2(NumBanksPerTile) + $clog2(NumTiles) +: TCDMAddrMemWidth] , // Bank address prescramble_tcdm_req_tgt_addr[ByteOffset +: $clog2(NumBanksPerTile)] , // Bank prescramble_tcdm_req_tgt_addr[ByteOffset + $clog2(NumBanksPerTile) +: $clog2(NumTiles)] , // Tile c[$clog2(NumCoresPerTile)-1:0] , // TCDM slave port
Simplify kscan_gpio_get_flags
@@ -126,19 +126,11 @@ static void kscan_direct_irq_callback_handler(const struct device *port, struct #endif static gpio_flags_t kscan_gpio_get_flags(const struct gpio_dt_spec *gpio, bool active) { - if (((BIT(0) & gpio->dt_flags) == BIT(0))) { // Devicetree configured input ACTIVE_LOW - if (!active) { - return GPIO_ACTIVE_LOW | GPIO_PULL_UP; + gpio_flags_t flags = BIT_MASK(0) & gpio->dt_flags; + if (active) { + flags |= flags ? GPIO_PULL_DOWN : GPIO_PULL_UP; } - return GPIO_ACTIVE_LOW; - } else { // Devicetree configured input ACTIVE_HIGH - if (!active) { - return GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN; - } - return GPIO_ACTIVE_HIGH; - } - LOG_ERR("Could not determine proper flags to set for pin %d", gpio->pin); - return 0; + return flags; } static int kscan_inputs_set_flags(const struct kscan_gpio_list *inputs,
docs/en: add entry for removed components to migration guide
@@ -7,6 +7,11 @@ Following components are removed from ESP-IDF and moved to `IDF Component Regist * `cbor <https://components.espressif.com/component/espressif/cbor>`_ * `jsmn <https://components.espressif.com/component/espressif/jsmn>`_ * `esp_modem <https://components.espressif.com/component/espressif/esp_modem>`_ +* `nghttp <https://components.espressif.com/component/espressif/nghttp>`_ + +.. note:: Please note that http parser functionality which was previously part of ``nghttp`` component is now part of :component:`http_parser <http_parser>` component. + +* `sh2lib <https://components.espressif.com/component/espressif/sh2lib>`_ These components can be installed using ``idf.py add-dependency`` command.
fix bug in recived message consists one record
@@ -130,6 +130,10 @@ static PushNotificationsReceiver *instance = nil; if(id title = alert[@"title"]) [ret setObject:title forKey:@"title"]; } + else + { + [ret setObject:alert forKey:@"body"]; + } } } }
chore(test-discord-ws.c): update to match
#include <stdio.h> #include <stdlib.h> +#include <string.h> /* strcmp() */ #include <pthread.h> #include <assert.h> #include "discord.h" -#include "discord-internal.h" #include "cee-utils.h" +#include "json-actor.h" /* json_extract() */ #define THREADPOOL_SIZE "4" @@ -107,7 +108,7 @@ void on_ping( if (msg->author->bot) return; char text[256]; - sprintf(text, "Ping: %d", client->gw.hbeat->ping_ms); + sprintf(text, "Ping: %d", discord_get_ping(client)); struct discord_create_message_params params = { .content = text }; discord_create_message(client, msg->channel_id, &params, NULL); }
Fix bug for VS2003 can't be found (xmake config --vs=2003)
@@ -179,14 +179,15 @@ function main() local pathes = { format("$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VS7;%s)\\VC", version), + format("$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VS7;%s)\\VC7\\bin", version), format("$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\SxS\\VS7;%s)\\VC", version), format("$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VS7;%s)\\VC\\Auxiliary\\Build", version), format("$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\SxS\\VS7;%s)\\VC\\Auxiliary\\Build", version), format("$(env %s)\\..\\..\\VC", vsenvs[version] or "") } - -- find vcvarsall.bat - local vcvarsall = find_file("vcvarsall.bat", pathes) + -- find vcvarsall.bat, vcvars32.bat for vs7.1 + local vcvarsall = find_file("vcvarsall.bat", pathes) or find_file("vcvars32.bat", pathes) if vcvarsall then -- load vcvarsall