message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
clay: print cult | ::
++ wake
^+ .
+ ~& (print-cult qyx)
=/ old-subs=(list [=wove ducts=(set duct)]) ~(tap by qyx)
=| new-subs=(list [=wove ducts=(set duct)])
|- ^+ ..wake
|
return old find until fixed | -# frozen_string_literal: false
#
# find.rb: the Find module for processing all files under a given directory.
#
@@ -31,46 +30,39 @@ module Find
# Calls the associated block with the name of every file and directory listed
# as arguments, then recursively on their subdirectories, and so on.
#
- # Returns an enumerator ... |
landscape: fixing bad glob | :~ title+'Groups'
info+'A suite of applications to communicate on Urbit'
color+0xee.5432
- glob-http+['https://bootstrap.urbit.org/glob-0v87ped.al8gv.ijd6o.ri4oa.gvsel.glob' 0v87ped.al8gv.ijd6o.ri4oa.gvsel]
+ glob-http+['https://bootstrap.urbit.org/glob-0v7.gib8r.r1bb5.a1e66.894c5.8ibm0.glob' 0v7.gib8r.r1bb5.a1e66.894c... |
run_test: fix micro:bit test configuration | @@ -289,7 +289,8 @@ SUPPORTED_CONFIGURATIONS = [
( 0x9017, VENDOR_TO_FAMILY('Stub', 1), 'lpc11u35_wio_emw3166_if', None, 'WIO_EMW3166' ), # TODO - set target to 'Seeed-96Boards-Nitrogen' when mbed-os supports this
( 0x9900, VENDOR_TO_FAMILY('Nordic', 1), 'kl26z_microbit_if', 'kl26z_bl', 'Microbit' ),
( 0x9901, VENDOR_T... |
Added missing paren in glibcvertest.c. | @@ -113,7 +113,7 @@ testEachLineInStreamWorksWithCannedData(void** state)
if (!f) fail_msg("Couldn't create file");
int i;
for (i=0; i<sizeof(sample_nm_output)/sizeof(sample_nm_output[0]); i++) {
- if (!fwrite(sample_nm_output[i], strlen(sample_nm_output[i], 1, f))
+ if (!fwrite(sample_nm_output[i], strlen(sample_nm_ou... |
RTX5: added RTX_NO_MULTITHREAD_CLIB macro guard | @@ -534,7 +534,8 @@ __WEAK void software_init_hook (void) {
// C/C++ Standard Library Multithreading Interface
// ===============================================
-#if (( defined(__CC_ARM) || \
+#if ( !defined(RTX_NO_MULTITHREAD_CLIB) && \
+ ( defined(__CC_ARM) || \
(defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 60100... |
Add highlighting for DPC and Interrupt processes | @@ -2992,14 +2992,13 @@ BOOLEAN NTAPI PhpProcessTreeNewCallback(
getNodeColor->BackColor = PhCsColorJobProcesses;
else if (
PhCsUseColorServiceProcesses &&
- (processItem->Sid && RtlEqualSid(processItem->Sid, &PhSeLocalServiceSid) ||
+ ((processItem->Sid && RtlEqualSid(processItem->Sid, &PhSeLocalServiceSid)) ||
proces... |
docs: add a note to mck_io_num: for esp32, only gpio0/gpio1/gpio3 can be set | @@ -78,7 +78,7 @@ typedef struct {
*
*/
typedef struct {
- int mck_io_num; /*!< MCK in out pin*/
+ int mck_io_num; /*!< MCK in out pin. Note that ESP32 supports setting MCK on GPIO0/GPIO1/GPIO3 only*/
int bck_io_num; /*!< BCK in out pin*/
int ws_io_num; /*!< WS in out pin*/
int data_out_num; /*!< DATA out pin*/
|
console: Suppress unused warning asprintf result | @@ -104,7 +104,8 @@ esp_err_t esp_console_cmd_register(const esp_console_cmd_t *cmd)
/* Prepend a space before the hint. It separates command name and
* the hint. arg_print_syntax below adds this space as well.
*/
- asprintf(&item->hint, " %s", cmd->hint);
+ int unused __attribute__((unused));
+ unused = asprintf(&item... |
Add missing header from commit | @@ -70,6 +70,8 @@ EXT ULONG PhCsColorPhysical;
EXT ULONG PhCsUseColorUnknown;
EXT ULONG PhCsColorUnknown;
+EXT ULONG PhCsUseColorServiceDisabled;
+EXT ULONG PhCsColorServiceDisabled;
EXT ULONG PhCsUseColorServiceStop;
EXT ULONG PhCsColorServiceStop;
|
instantassist desktop binding | @@ -207,6 +207,7 @@ static Key dkeys[] = {
{0, XK_n, spawn, {.v = nautiluscmd } },
{0, XK_space, spawn, {.v = panther} },
{0, XK_f, spawn, {.v = firefoxcmd} },
+ {0, XK_a, spawn, {.v = instantassistcmd} },
{0, XK_F1, spawn, {.v = helpcmd} },
{0, XK_m, spawn, {.v = spoticli} },
{0, XK_Return, spawn, {.v = termcmd} },
|
hv:fix possible buffer overflow in 'ptirq_get_intr_data()'
- 'buffer'with size of 'buffer_cnt', will overflow in
next loop if 'index == buffer_cnt - 1'.
Acked-by: Eddie Dong | @@ -229,7 +229,7 @@ uint32_t ptirq_get_intr_data(const struct acrn_vm *target_vm, uint64_t *buffer,
buffer[index + 1U] = entry->intr_count;
index += 2U;
- if (index >= buffer_cnt) {
+ if (index > (buffer_cnt - 2U)) {
break;
}
}
|
Tighten up how we determine if a header is a req or a resp. | @@ -789,10 +789,11 @@ doHttp(uint64_t id, int sockfd, void *buf, size_t len, metric_t src)
strncpy(hcopy, header, headsize);
post->hdr = hcopy;
- if (strstr(hcopy, "Host: ") != NULL) {
- proto->ptype = EVT_HREQ;
- } else {
+ // If the first 6 chars are HTTP/1, it's a response header
+ if (memsearch(hcopy, strlen("HTTP/... |
Cirrus: Do not install CMake
The packages `cmake` is already part of the macOS Cirrus CI images. | @@ -120,7 +120,6 @@ mac_task:
brew install bison
brew install boost
brew install botan
- brew install cmake
brew install dbus
brew install discount
brew install doxygen
|
Add a print for the luajit version to simple-test.
This was added to easily verify that hslua was compiled against luajit. | module Main where
+import Control.Monad
import qualified Foreign.Lua as Lua
main :: IO ()
@@ -12,4 +13,10 @@ main = do
Lua.pushstring l "Hello from"
Lua.getglobal l "_VERSION"
Lua.call l 2 0
+ Lua.getglobal l "jit"
+ isLuajit <- Lua.istable l (-1)
+ when isLuajit $ do
+ Lua.getglobal l "print"
+ Lua.getfield l (-2) "ve... |
chat: give terminal bell on tab in an empty buffer | ?: ?| =(~ buf.state.cli)
!=(';' -.buf.state.cli)
==
- [~ all-state]
+ :_ all-state
+ [(effect:sh-out [%bel ~]) ~]
+ ::
=+ (get-id:auto pos (tufa buf.state.cli))
=/ needle=term
(fall id '')
=? moves ?=(^ options)
[(tab:sh-out options) moves]
=| fxs=(list sole-effect:sole-sur)
- |-
+ |- ^- (quip card state)
?~ to-send
[(... |
pg_regress: switch to unified format for regression.diffs | @@ -75,7 +75,7 @@ static char gpstringsubsprog[MAXPGPATH];
/* currently we can use the same diff switches on all platforms */
/* MPP: Add stuff to ignore all the extra NOTICE messages we give */
const char *basic_diff_opts = "-w -I HINT: -I CONTEXT: -I GP_IGNORE:";
-const char *pretty_diff_opts = "-w -I HINT: -I CONTEX... |
sgx-tools/Makefile: delete the non-existent proto dependency
Obviously, there is no proto directory in the sgx-tools repository. | @@ -12,15 +12,11 @@ COMMIT ?= $(if $(shell git status --porcelain --untracked-files=no),"${COMMIT_NO
VERSION := ${shell cat ./VERSION}
SOURCES := $(shell find . 2>&1 | grep -E '.*\.(c|h|go)$$')
-PROTO_DIR := proto
-$(APP): $(SOURCES) $(patsubst %.proto,%.pb.go,$(wildcard $(PROTO_DIR)/*.proto))
+$(APP): $(SOURCES)
$(GO)... |
frame_timing: minor adjustments for horizontal and mangoapp | @@ -588,8 +588,13 @@ void HudElements::frame_timing(){
double max_time = 50.0f;
float width, height = 0;
#ifdef MANGOAPP
+ if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_horizontal]){
+ width = 150;
+ height = 24;
+ } else {
const ImVec2 sz = ImGui::CalcTextSize("1000.0ms");
width = ImGui::GetWindowContentRegion... |
Ease up on the cpu. | @@ -11,7 +11,7 @@ import (
const (
gyroRange = 250 // gyroRange is the default range to use for the Gyro.
accelRange = 4 // accelRange is the default range to use for the Accel.
- updateFreq = 1000 // updateFreq is the rate at which to update the sensor values.
+ updateFreq = 50 // updateFreq is the rate at which to up... |
Add PSA config support for ChaCha20+Poly1305
Add checks for PSA_WANT_ALG_CHACHA20_POLY1305. | @@ -360,6 +360,14 @@ extern "C" {
#endif
#endif /* PSA_WANT_ALG_CBC_PKCS7 */
+#if defined(PSA_WANT_ALG_CHACHA20_POLY1305)
+#if defined(PSA_WANT_KEY_TYPE_CHACHA20)
+#define MBEDTLS_CHACHAPOLY_C
+#else /* not PSA_WANT_KEY_TYPE_CHACHA20 */
+#error "PSA_WANT_ALG_CHACHA20_POLY1305 requires PSA_WANT_KEY_TYPE_CHACHA20"
+#endi... |
Fixed info urls for DASH | @@ -102,7 +102,7 @@ namespace MiningCore.Api
{ CoinType.ETC, "https://gastracker.io/block/{0}" },
{ CoinType.LTC, "http://explorer.litecoin.net/tx/{0}" },
{ CoinType.BCC, "http://blockdozer.com/insight/tx/{0}" },
- { CoinType.DASH, "https://chainradar.com/dsh/transaction/{0}" },
+ { CoinType.DASH, "https://chainz.crypt... |
nimble/ll: Fix PHY validation in LE Set Extended Advertising Parameters
Valid PHYs depends pon supported PHYs. This fix assert when starting
advertising configured for unsupported PHY. | @@ -2299,6 +2299,38 @@ ble_ll_adv_set_adv_data(uint8_t *cmd, uint8_t cmd_len, uint8_t instance,
}
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
+static bool
+pri_phy_valid(uint8_t phy)
+{
+ switch (phy) {
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_CODED_PHY)
+ case BLE_HCI_LE_PHY_CODED:
+#endif
+ case BLE_HCI_LE_PHY_1M:
+ return ... |
doc: add <vm_id> parameter to the "vm_console" command description
Add the <vm_id> parameter to the documentation for the ACRN shell
"vm_console" command. | @@ -22,7 +22,7 @@ The ACRN hypervisor shell supports the following commands:
* - dumpmem <hva> <length>
- Dump host memory, starting at a given address, and for a given length
(in bytes)
- * - vm_console
+ * - vm_console <vm_id>
- Switch to the VM's console. Use :kbd:`Ctrl+Spacebar` to return to the ACRN
shell console
... |
Tuya, add missing break in switch statement | @@ -389,6 +389,7 @@ void DeRestPluginPrivate::handleTuyaClusterIndication(const deCONZ::ApsDataIndic
enqueueEvent(e);
}
}
+ break;
case 0x016E: // Low battery
{
bool bat = false;
|
kukui_scp: mask CC_HOSTCMD and CC_IPI out
To keep console quiet enough.
BRANCH=none
TEST=make BOARD=kukui_scp | #ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
+#define CC_DEFAULT (CC_ALL & ~(CC_MASK(CC_HOSTCMD) | CC_MASK(CC_IPI)))
+
#define CONFIG_FLASH_SIZE 0x58000 /* Image file size: 256KB */
#undef CONFIG_LID_SWITCH
#undef CONFIG_FW_INCLUDE_RO
|
Add defaults for SBGEMV kernels | @@ -134,6 +134,8 @@ if (BUILD_BFLOAT16)
set(SHSWAPKERNEL ../arm/swap.c)
set(TOBF16KERNEL ../x86_64/tobf16.c)
set(BF16TOKERNEL ../x86_64/bf16to.c)
+ set(SBGEMVNKERNEL ../x86_64/sbgemv_n.c)
+ set(SBGEMVTKERNEL ../x86_64/sbgemv_t.c)
endif ()
endmacro ()
|
allowed memory growth in wasm | @@ -853,7 +853,7 @@ if(BUILD_SDL)
endif()
if(EMSCRIPTEN)
- set_target_properties(tic80 PROPERTIES LINK_FLAGS "-s WASM=1 -s USE_SDL=2 -s TOTAL_MEMORY=67108864 -s FETCH=1 --pre-js ${CMAKE_SOURCE_DIR}/build/html/prejs.js -lidbfs.js")
+ set_target_properties(tic80 PROPERTIES LINK_FLAGS "-s WASM=1 -s USE_SDL=2 -s ALLOW_MEMO... |
nox_d bumps in appropriate places, remove superfluous while | @@ -1237,13 +1237,16 @@ _n_burn(c3_y* pog, u3_noun bus, c3_ys mov, c3_ys off)
empty = u3R->cap_p;
_n_push(mov, off, bus);
+#ifdef U3_CPU_DEBUG
+ u3R->pro.nox_d += 1;
+#endif
#ifdef VERBYC
#define BURN() fprintf(stderr, "%s ", names[pog[ip_s]]); goto *lab[pog[ip_s++]]
#else
#define BURN() goto *lab[pog[ip_s++]]
#endif
B... |
sane: update for new metadata-store | +$ issue
$% [%lib-pull-hook-desync app=term =resource]
[%lib-push-hook-desync app=term =resource]
- [%md-hook-desync =path]
[%contact-hook-desync =path]
- [%dangling-md =path]
+ [%dangling-md =resource]
==
::
+$ issues
++ check-all
=> (lib-hooks-desync %group scry-groups)
=> (lib-hooks-desync %graph get-keys:gra)
+ => ... |
Fix hw update thread waiting for initial update signal | @@ -163,7 +163,6 @@ void update_hud_info(struct swapchain_stats& sw_stats, struct overlay_params& pa
if (elapsed >= params.fps_sampling_period) {
if (!hw_update_thread)
hw_update_thread = std::make_unique<hw_info_updater>(sw_stats, params, vendorID);
- else
hw_update_thread->update();
sw_stats.fps = fps;
|
Add tests to oversend data/ad when lengths set
Previous tests only tested when the expected lengths were set to zero.
New test sends all data/ad then goes over by one byte. | @@ -4467,6 +4467,24 @@ void aead_multipart_state_test( int key_type_arg, data_t *key_data,
psa_aead_abort( &operation );
+ operation = psa_aead_operation_init( );
+
+ PSA_ASSERT( psa_aead_encrypt_setup( &operation, key, alg ) );
+
+ PSA_ASSERT( psa_aead_set_nonce( &operation, nonce->x, nonce->len ) );
+
+ PSA_ASSERT( p... |
Always fire websocket events for CLIPSwitch state/buttonevent | @@ -854,7 +854,8 @@ int DeRestPluginPrivate::changeSensorState(const ApiRequest &req, ApiResponse &r
rspItemState[QString("/sensors/%1/state/%2").arg(id).arg(pi.key())] = val;
rspItem["success"] = rspItemState;
- if (item->lastChanged() == item->lastSet())
+ if (rid.suffix == RStateButtonEvent || // always fire events ... |
fix(disp) fix memory leak in lv_disp_remove | @@ -220,6 +220,20 @@ void lv_disp_remove(lv_disp_t * disp)
_lv_ll_remove(&LV_GC_ROOT(_lv_disp_ll), disp);
lv_timer_del(disp->refr_timer);
+
+ /** delete screen and other obj */
+ if (disp->sys_layer) {
+ lv_obj_del(disp->sys_layer);
+ disp->sys_layer = NULL;
+ }
+ if (disp->top_layer) {
+ lv_obj_del(disp->top_layer);
+... |
[kernel] fix unused variable warning in TimeStepping.cpp | @@ -401,10 +401,9 @@ void TimeStepping::initializeNewtonLoop()
if (_computeResiduY)
{
- double residu =0.0;
for (OSIIterator itOSI = _allOSI->begin(); itOSI != _allOSI->end() ; ++itOSI)
{
- residu = (*itOSI)->computeResiduOutput(tkp1, indexSet0);
+ (*itOSI)->computeResiduOutput(tkp1, indexSet0);
}
}
DEBUG_END("TimeStep... |
build/vector: extending line width for more compact header with comment apis | @@ -8298,60 +8298,64 @@ void liquid_get_scale(float _val,
// TP : data type (primitive)
#define LIQUID_VECTOR_DEFINE_API(VECTOR,T,TP) \
\
-/* initialize vector with scalar: x[i] = c (scalar) */ \
+/* Initialize vector with scalar: x[i] = c (scalar) */ \
void VECTOR(_init)(T _c, \
T * _x, \
unsigned int _n); \
\
-/* add... |
mesh: Fix the wrong way to detect the trailing space.
Assignment n bytes to link.rx.buf->om_len will lead to
n bytes decrease of OS_MBUF_TRAILINGSPACE(link.rx.buf),
so we should get the OS_MBUF_TRAILINGSPACE(link.rx.buf)
before assignment net_buf_simple_pull_be16(buf) to
link.rx.buf->om_len. | @@ -1375,6 +1375,8 @@ static void gen_prov_ack(struct prov_rx *rx, struct os_mbuf *buf)
static void gen_prov_start(struct prov_rx *rx, struct os_mbuf *buf)
{
+ u16_t trailing_space = 0;
+
if (link.rx.seg) {
BT_WARN("Got Start while there are unreceived segments");
return;
@@ -1386,7 +1388,7 @@ static void gen_prov_star... |
Change time format output | @@ -291,7 +291,7 @@ main(int argc, char **argv)
time_t t;
t = time(&t);
strftime(outbuf, HCOLS, timeformat, localtime(&t));
- printf("%s|", outbuf);
+ printf("[%s] ", outbuf);
mode = MODE_DATE;
}
/* continue into the MODE_DATE */
|
tcp_transport/test: Fix localhost interface name
Per lwip spec it's two letter's name plus index, i.e. "lo0"
(the reason "lo" was accepted before was bug in lwip) | struct ifreq ifr; \
ifr.ifr_name[0] = 'l'; \
ifr.ifr_name[1] = 'o'; \
- ifr.ifr_name[2] = '\0';
+ ifr.ifr_name[2] = '0'; \
+ ifr.ifr_name[3] = '\0';
static void tcp_transport_keepalive_test(esp_transport_handle_t transport_under_test, bool async, esp_transport_keep_alive_t *config)
|
chore(workflows/test_build.yml): removed specs_gen rule from Makefile | @@ -22,8 +22,6 @@ jobs:
run: |
echo "Cleanup"
make purge
- echo "Generating specs code"
- make specs_gen
echo "Building"
make all
echo "Building example bots"
|
Change for copy modes in dcd_synopsis.c | @@ -688,16 +688,6 @@ bool dcd_edpt_xfer_fifo (uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16
xfer->ff = ff;
xfer->total_len = total_bytes;
- // Set copy mode to constant address - required since data copied to or from the hardware USB FIFO needs to be written at a constant address
- if (dir == TUSB_DIR_IN)
- {... |
Correct cmake FindPython and use Python3 | -# TODO: Make package REQUIRED when a different solution is found to
-# https://github.com/pypa/cibuildwheel/issues/639#issuecomment-818020937
-find_package(Python COMPONENTS Interpreter Development NumPy)
-Python_add_library(python_api MODULE WITH_SOABI _spglib.c)
+find_package(Python3 COMPONENTS REQUIRED Interpreter ... |
Boot loader: Add assert for sector count
If sector count declared in bsp is greater than boot loader
specified 120 sectors, random memory can be overwritten.
This type of error can be difficult to detect.
It is much easier to add assert to detect error condition earlier. | @@ -328,6 +328,11 @@ boot_read_sectors(void)
if (rc != 0) {
return BOOT_EFLASH;
}
+ /*
+ * Make sure that BSP specific number of sectors will not result in
+ * random memory clobber
+ */
+ assert(num_sectors_slot0 <= BOOT_MAX_IMG_SECTORS);
boot_data.imgs[0].num_sectors = num_sectors_slot0;
num_sectors_slot1 = BOOT_MAX_... |
Added example include defines | @@ -178,7 +178,8 @@ typedef void * lv_group_user_data_t;
/* 1: Enable GPU interface*/
#define LV_USE_GPU 1 /*Only enables `gpu_fill_cb` and `gpu_blend_cb` in the disp. drv- */
#define LV_USE_GPU_STM32_DMA2D 0
-/*If enabling LV_USE_GPU_STM32_DMA2D, LV_GPU_DMA2D_CMSIS_INCLUDE must be defined to include path of CMSIS head... |
stub for linux rhosim build | @@ -4299,8 +4299,10 @@ namespace "build" do
Rake::Task["build:win32:rhosimulator"].invoke
elsif RUBY_PLATFORM =~ /darwin/
Rake::Task["build:osx:rhosimulator"].invoke
+ elsif RUBY_PLATFORM =~ /linux/
+ Rake::Task["build:linux:rhosimulator"].invoke
else
- puts "Sorry, at this time RhoSimulator can be built for Windows an... |
copyedits applied | @@ -4,9 +4,9 @@ For select account plans, you can connect to the CARTO Engine APIs via Mobile SD
## Loading CARTO Map Data to Mobile Apps
-We support quite a few methods how you can put your map data from CARTO account via mobile SDK to your mobile app. The choise depends on you data size, visual requirements and other... |
on_idle scheduling | @@ -2856,6 +2856,10 @@ typedef struct {
static callback_collection_s callback_collection[FIO_CALL_NEVER + 1];
+static void fio_state_on_idle_perform(void *task, void *arg) {
+ ((void (*)(void *))task)(arg);
+}
+
static inline void fio_state_callback_ensure(callback_collection_s *c) {
if (c->callbacks.next)
return;
@@ -... |
Add aomp-14.0-0 branches to external manifest. | <project remote="roc" path="rocm-compilersupport" name="ROCm-CompilerSupport" upstream="amd-stg-open" revision="ef72f4edb3dd9efb40dd38bd9778fa6e53f1adbd" groups="revlocked" />
<project remote="roc" path="rocm-device-libs" name="ROCm-Device-Libs" upstream="amd-stg-open" revision="2011841dfe9e7f93e57cf8939c02aa45bfaa4dca... |
renamed screenshot to smoke | @@ -27,6 +27,6 @@ class HelloIOIOSmokeTest {
@Test
fun smokeTestSimplyStart() {
onView(withId(R.id.button)).check(matches(isDisplayed()))
- Screenshot.takeScreenshot(BuildConfig.APPLICATION_ID + "-smoke")
+ Screenshot.takeScreenshot("smoke")
}
}
|
update logs for ip limitation | @@ -371,8 +371,10 @@ static int connection_can_be_accepted(int sock, struct sockaddr_in *peeraddr)
{
if(elt->connection_data.ip == peeraddr->sin_addr.s_addr) {
if(++count >= g_max_miner_ip_count) {
- xdag_warn("Max ip %d for miner %s exceed, new connections are not accepted.",
- g_max_miner_ip_count, xdag_hash2address(... |
I modified the LLNL customlauncher to add rzhasgpu to the list of toss3
machines since it was upgraded from toss2 to toss3. | @@ -89,6 +89,9 @@ class JobSubmitter_mpirun_LLNL(JobSubmitter_mpirun):
# Eric Brugger, Mon Mar 19 12:55:14 PDT 2018
# I set visitarch to linux-x86_64-toss3 for all the toss3 machines.
#
+# Eric Brugger, Mon Apr 30 09:18:14 PDT 2018
+# I added rzhasgpu to the list of toss3 machines.
+#
##################################... |
os/arch/arm/src/armv7-r/arm_assert: Update assert handler
As binary manager is updated a bit. This patch modifies the
assert handler to work with binary manager for armv7-r. | @@ -110,6 +110,7 @@ static bool recursive_abort = false;
#ifdef CONFIG_BINMGR_RECOVERY
extern uint32_t g_assertpc[];
uint32_t assert_pc;
+extern mqd_t g_binmgr_mq_fd;
#endif
/****************************************************************************
* Pre-processor Definitions
@@ -931,7 +932,6 @@ static void _up_asse... |
Add temporary fix for finsing jni plugin | @@ -20,7 +20,6 @@ macro (safe_check_symbol_exists SYMBOL FILES VARIABLE)
CMAKE_C_FLAGS
${CMAKE_C_FLAGS})
- cmake_push_check_state (RESET)
get_directory_property (DEFS COMPILE_DEFINITIONS)
prepend (DEFS "-D" ${DEFS})
list (APPEND CMAKE_REQUIRED_DEFINITIONS
@@ -28,7 +27,6 @@ macro (safe_check_symbol_exists SYMBOL FILES V... |
removes obsolete 'id' field from acme account json parser | ::
++ body
|%
- +$ acct [id=@t wen=@t sas=@t]
+ +$ acct [wen=@t sas=@t]
::
+$ order
$: exp=@t
^- $-(json acct:body)
:: ignoring key, contact, initialIp
::
- (ot 'id'^no 'createdAt'^json-date 'status'^so ~)
+ (ot 'createdAt'^json-date 'status'^so ~)
:: +order: parse certificate order
::
++ order
|
Improve sorting threads by state and wait | @@ -525,8 +525,40 @@ END_SORT_FUNCTION
BEGIN_SORT_FUNCTION(State)
{
- sortResult = uintcmp(threadItem1->WaitReason, threadItem2->WaitReason);
- //sortResult = uintcmp(threadItem1->State, threadItem2->State);
+ ULONG threadState1 = ULONG_MAX;
+ ULONG threadState2 = ULONG_MAX;
+
+ if (threadItem1->State != Waiting)
+ {
+... |
More log and discard remaining bytes if there is no length in header | @@ -4150,7 +4150,9 @@ static ssize_t conn_recv_pkt(ngtcp2_conn *conn, const uint8_t *pkt,
if (pkt[0] & NGTCP2_HEADER_FORM_BIT) {
nread = ngtcp2_pkt_decode_hd_long(&hd, pkt, pktlen);
if (nread < 0) {
- return nread;
+ ngtcp2_log_info(&conn->log, NGTCP2_LOG_EVENT_PKT,
+ "could not decode long header");
+ return (ssize_t)... |
Fix crash when incompatible array passed in | @@ -731,7 +731,7 @@ RED4ext::CStackType Scripting::ToRED(sol::object aObject, RED4ext::IRTTIType* ap
if (!hasData || aObject.get_type() == sol::type::table)
{
auto* pArrayType = static_cast<RED4ext::CArray*>(apRttiType);
- const auto pMemory = static_cast<RED4ext::DynArray<void*>*>(apAllocator->Allocate(apRttiType->Get... |
logger: return errno instead of bool
Return a errno instead of a bool so the upper layers have more
info and coding style is similar. | @@ -641,20 +641,20 @@ static int tcmu_mkdir(const char *path)
} else if (errno == ENOENT) {
if (mkdir(path, 0755) == -1) {
tcmu_err("mkdir(%s) failed: %m\n", path);
- return false;
+ return -errno;
}
} else {
tcmu_err("opendir(%s) failed: %m\n", path);
- return false;
+ return -errno;
}
- return true;
+ return 0;
}
sta... |
doc: rename getters to elektra | @@ -47,19 +47,19 @@ First draft of API:
Elektra * elektraOpen (const char * application);
// getters
-kdb_string_t kdbhlGetString (KDBHL * kdbhl, const char * name);
-kdb_boolean_t kdbhlGetBoolean (KDBHL * kdbhl, const char * name);
-kdb_char_t kdbhlGetChar (KDBHL * kdbhl, const char * name);
-kdb_octet_t kdbhlGetOctet... |
Fix hull diff generation and application. | ?: =(event.log activated)
=+ ^- [who=@ wer=address]
(decode-results data.log ~[%uint %address])
- :~ ^- (pair ship diff-hull)
+ :* ^- (pair ship diff-hull)
:+ who %full
%*(. *hull owner wer, sponsor (sein:title who))
::
+ ?: =(%czar (clan:title who)) ~
+ :_ ~
^- (pair ship diff-hull)
[(sein:title who) %spawned who]
==
... |
l_audio: less code
why is this so hard for my brain? :S | @@ -89,7 +89,6 @@ static int l_lovrAudioGetDevices(lua_State *L) {
int listOfDevicesIdx = lua_gettop(L);
for(int i = 0; i < devices->length; i++) {
AudioDevice *device = &devices->data[i];
- lua_pushinteger(L, i+1); // key in listOfDevicesIdx, for the bottom settable
lua_newtable(L);
luax_pushenum(L, AudioType, device-... |
sysdeps/managarm: convert symlinkat request to bragi | @@ -215,39 +215,28 @@ int sys_symlink(const char *target_path, const char *link_path) {
int sys_symlinkat(const char *target_path, int dirfd, const char *link_path) {
SignalGuard sguard;
- HelAction actions[3];
- globalQueue.trim();
- managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
- req.set_re... |
Add size to clap_event_header | @@ -13,11 +13,12 @@ extern "C" {
#pragma pack(push, CLAP_ALIGN)
// event header
-// must be the first field of the event
+// must be the first attribute of the event
typedef struct clap_event_header {
- alignas(4) uint32_t time;
- alignas(2) uint16_t space_id;
- alignas(2) uint16_t event_id;
+ alignas(4) uint32_t size;... |
fix-kdb-complete-heap-overflow: correct the type | @@ -354,7 +354,7 @@ bool CompleteCommand::filterCascading (string const & argument, pair<Key, pair<i
{
// For a cascading key completion, ignore the preceding namespace
const string test = current.first.getFullName ();
- int cascadationOffset = test.find ("/");
+ size_t cascadationOffset = test.find ("/");
if (cascadat... |
Yan LR: Fix broken test directive in MSR test | @@ -113,7 +113,7 @@ printf -- '- element 2 # Incorrect Indentation!' >> `kdb file user/tests/yanlr`
# The plugin reports the location of the error
kdb ls user/tests/yanlr
# RET: 5
-# STDERR-REGEX: Reason: .*/config.yaml:2:18: extraneous input 'BLOCK END' expecting {STREAM_END, COMMENT}
+# STDERR: .*/config.yaml:2:37: e... |
options/internal: fix memcpy alignment for ubsan | @@ -5,7 +5,8 @@ namespace {
// Needed since we cannot declare a templated enum.
template<typename T>
struct word_helper {
- enum class [[gnu::may_alias, gnu::aligned(1)]] word_enum : T { };
+ using underlying [[gnu::aligned(1)]] = T;
+ enum class [[gnu::may_alias]] word_enum : underlying { };
};
template<typename T>
|
Don't create /sys/devices/system/cpu/cpu0 for now - it breaks Java 8u191 (Ubuntu 18.04). | @@ -84,7 +84,7 @@ void register_special_files(process p)
filesystem_mkentry(p->fs, 0, sf->path, entry, false, true);
}
- filesystem_mkdir(p->fs, 0, "/sys/devices/system/cpu/cpu0", false);
+ //filesystem_mkdir(p->fs, 0, "/sys/devices/system/cpu/cpu0", false);
}
static special_file *
|
docs: Clarifications within New Shield page | @@ -48,16 +48,16 @@ shield to get it picked up for ZMK, `Kconfig.shield` and `Kconfig.defconfig`.
### Kconfig.shield
-The `Kconfig.shield` file defines any additional Kconfig settings that may be relevant when using this keyboard. For most keyboards, there is just one additional configuration value for the shield itsel... |
Do not do IPP request for printer-is-shared option for remote cups queues with CUPS 2.2 and newer | @@ -450,6 +450,19 @@ static remote_printer_t
#define HAVE_CUPS_1_6 1
#endif
+/*
+ * Option 'printer-is-shared' cannot be set on remote CUPS
+ * queue and requests for setting it ends with error since
+ * 2.1.1. Define HAVE_CUPS_2_2 to do not send IPP request
+ * for setting 'printer-is-shared' option on remote CUPS que... |
esp32c3: add mbedtls dependency for crypto tests | if(IDF_TARGET STREQUAL "esp32c3")
idf_component_register(SRC_DIRS .
INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR}
- REQUIRES unity test_utils esp_common
+ REQUIRES unity test_utils esp_common mbedtls
)
idf_build_set_property(COMPILE_DEFINITIONS "-DESP_TIMER_DYNAMIC_OVERFLOW_VAL" APPEND)
|
Fix --serial help
Make explicit that --serial excepts a parameter. | @@ -86,7 +86,7 @@ static void usage(const char *arg0) {
" This flag forces to render all frames, at a cost of a\n"
" possible increased latency.\n"
"\n"
- " -s, --serial\n"
+ " -s, --serial serial\n"
" The device serial number. Mandatory only if several devices\n"
" are connected to adb.\n"
"\n"
|
Fix failing music test | @@ -9,7 +9,7 @@ test("Should set playing to true while playing music", () => {
...initialState,
playing: false,
};
- const action = actions.playMusic({ filename: "file.mod" });
+ const action = actions.playMusic({ musicId: "track1" });
const newState = reducer(state, action);
expect(newState.playing).toBe(true);
});
|
vppinfra: bihash add-but-do-not-overwrite semantics
If is_add=2, fail w/ return value -2 if the key exists instead of
overwriting the (key,value) pair.
Type: feature | @@ -519,6 +519,13 @@ static inline int BV (clib_bihash_add_del_inline)
{
if (BV (clib_bihash_key_compare) (v->kvp[i].key, add_v->key))
{
+ /* Add but do not overwrite? */
+ if (is_add == 2)
+ {
+ BV (clib_bihash_unlock_bucket) (b);
+ return (-2);
+ }
+
CLIB_MEMORY_BARRIER (); /* Add a delay */
clib_memcpy_fast (&(v->kv... |
System: add C3 root kconfig settings | @@ -58,11 +58,18 @@ mainmenu "Espressif IoT Development Framework Configuration"
prompt "ESP32-S3 beta2"
endchoice
+ config IDF_TARGET_ESP32C3
+ bool
+ default "y" if IDF_TARGET="esp32c3"
+ select FREERTOS_UNICORE
+ select IDF_TARGET_ARCH_RISCV
+
config IDF_FIRMWARE_CHIP_ID
hex
default 0x0000 if IDF_TARGET_ESP32
defaul... |
tree schema UPDATE free empty identity array | @@ -678,7 +678,10 @@ lysc_ident_derived_unlink(const struct lysc_ident *ident)
if (mod->identities[v].derived[w] == ident) {
/* remove the link */
LY_ARRAY_DECREMENT(mod->identities[v].derived);
- if (w < LY_ARRAY_COUNT(mod->identities[v].derived)) {
+ if (!LY_ARRAY_COUNT(mod->identities[v].derived)) {
+ LY_ARRAY_FREE(... |
New maven_import_sandbox_uploader | },
"maven_import_sandbox_uploader": {
"formula": {
- "sandbox_id": 85560945,
+ "sandbox_id": 210952169,
"match": "uploader"
},
"executable": {
|
docs: update readme link to not use parentheses
CI script for checking links failed to parse link to due to parentheses.
Bypass issue by encoding the symbol instead. | (See the README.md file in the upper level 'examples' directory for more information about examples.)
-This example illustrates how to drive a typical [RC Servo](https://en.wikipedia.org/wiki/Servo_(radio_control)) by sending a PWM signal using the MCPWM driver. The PWM pulse has a frequency of 50Hz (period of 20ms), a... |
Remove "on Linux" in FAQ
HID now works on all platforms. | @@ -168,8 +168,7 @@ The default text injection method is [limited to ASCII characters][text-input].
A trick allows to also inject some [accented characters][accented-characters],
but that's all. See [#37].
-Since scrcpy v1.20 on Linux, it is possible to simulate a [physical
-keyboard][hid] (HID).
+Since scrcpy v1.20, i... |
kukui_scp/update_scp: Deploy elf file by default
This is what recent kukui MTK ToT require.
BRANCH=none
TEST=make BOARD=kukui_scp -j && board/kukui_scp/update_scp $IP
=> SCP boots | @@ -20,9 +20,7 @@ INFILE="build/kukui_scp/ec.bin"
case "$2" in
bin)
;;
-"") # Default: flat binary (only allows for SRAM to be loaded)
- ;;
-elf)
+elf|"") # Default
# ec.obj is an elf file that has the right memory layout to be loaded
# from the AP/kernel.
INFILE="build/kukui_scp/ec.obj"
|
scripts: add new scripts | @@ -36,8 +36,6 @@ generate_manpage (kdb-find-tools FILENAME ${CMAKE_CURRENT_SOURCE_DIR}/README.md)
install (PROGRAMS update-snippet-repository DESTINATION ${TARGET_TOOL_EXEC_FOLDER})
install (PROGRAMS upgrade-bootstrap DESTINATION ${TARGET_TOOL_EXEC_FOLDER})
-install (PROGRAMS umount-all DESTINATION ${TARGET_TOOL_EXEC_... |
vmaCreateBuffer: Added some asserts. | @@ -8359,6 +8359,24 @@ VkResult vmaCreateBuffer(
allocator->GetBufferMemoryRequirements(*pBuffer, vkMemReq,
requiresDedicatedAllocation, prefersDedicatedAllocation);
+ // Make sure alignment requirements for specific buffer usages reported
+ // in Physical Device Properties are included in alignment reported by memory ... |
Updated README.md with link to DFuse tool and proper name of GCC ARM toolchain | @@ -12,13 +12,19 @@ While the 32blit API is not finalised, this repository represents an overview of
1. Some experience writing/compiling C/C++ software
2. `gcc` for compiling test builds
-3. `arm-gcc` for compiling STM32 builds
+3. `gcc-arm-none-eabi` for compiling STM32 builds
4. `cmake` and `make` for building 32bli... |
fix datastructures in ELEKTRA_ASSERT macros | @@ -1244,7 +1244,7 @@ ssize_t ksCopyInternal (KeySet * ks, size_t to, size_t from)
size_t ret = 0;
ELEKTRA_ASSERT (length >= 0, "length %zu too small", length);
- ELEKTRA_ASSERT (ks->size >= to, "ks->size %zu smaller than %zu", ks->size, to);
+ ELEKTRA_ASSERT (ks->data->size >= to, "ks->size %zu smaller than %zu", ks->... |
add 'src-lookup' keyword for FIB paths | @@ -495,6 +495,10 @@ unformat_fib_route_path (unformat_input_t * input, va_list * args)
rpath->frp_proto = DPO_PROTO_MPLS;
*payload_proto = DPO_PROTO_MPLS;
}
+ else if (unformat (input, "src-lookup"))
+ {
+ rpath->frp_flags |= FIB_ROUTE_PATH_SOURCE_LOOKUP;
+ }
else if (unformat (input,
"l2-input-on %U",
unformat_vnet_s... |
cmake: C++17 | @@ -62,12 +62,12 @@ if(LIBEV_FOUND AND OPENSSL_FOUND AND LIBNGHTTP3_FOUND)
add_executable(server ${server_SOURCES} $<TARGET_OBJECTS:http-parser>)
set_target_properties(client PROPERTIES
COMPILE_FLAGS "${WARNCXXFLAGS}"
- CXX_STANDARD 14
+ CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
)
set_target_properties(server PROPERTIES... |
OcAppleKernelLib: Rebuild KC when no kexts are injected
Fixes an issue where __PRELINK_INFO (first segment) is relocated and thus renders relocations invalid (relative to the first segment's VA) | @@ -224,10 +224,6 @@ KcRebuildMachHeader (
return EFI_INVALID_PARAMETER;
}
- if (FilesetSize == 0) {
- return EFI_SUCCESS; ///< Just in case.
- }
-
if (CurrentSize + RequiredSize > TextSegment->FileSize) {
//
// We do not have enough memory in the header, free some memory by merging
|
ui/trinary_input_string: filled circle instead of * for masked chars
Looks nicer, and does not interfere with the actual '*' special char
which now can also be entered. | #endif
#define EMPTY_CHAR '_'
-#define MASK_CHAR '*'
+#define MASK_CHAR_WIDTH 6
#define BLINK_RATE 200
#define STRING_POS_X_START 5
@@ -109,16 +109,17 @@ static UG_S16 _constant_string_width(const component_t* component)
data_t* data = (data_t*)component->data;
UG_S16 width = 0;
for (size_t i = 0; i <= data->string_ind... |
in_exec: fix logging crash
Fixes crash caused by missing reference to logging context. | @@ -136,6 +136,8 @@ static int in_exec_config_read(struct flb_exec *ctx,
const char *cmd = NULL;
const char *pval = NULL;
+ ctx->ins = in;
+
/* filepath setting */
cmd = flb_input_get_property("command", in);
if (cmd == NULL) {
|
Remove superfluous -lz from Linux build. | @@ -75,7 +75,7 @@ ifeq ($(OS),osx)
OSLIBS=-framework CoreServices -framework CoreFoundation
endif
ifeq ($(OS),linux)
- OSLIBS=-lpthread -lrt -lcurses -lz
+ OSLIBS=-lpthread -lrt -lcurses
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
endif
ifeq ($(OS),bsd)
|
enhance robustness for pthread | @@ -209,6 +209,8 @@ int pthread_create(pthread_t *pid,
/* get pthread data */
ptd = _pthread_get_data(pth_id);
+ RT_ASSERT(ptd != RT_NULL);
+
if (attr != RT_NULL)
{
ptd->attr = *attr;
@@ -299,6 +301,12 @@ int pthread_detach(pthread_t thread)
{
int ret = 0;
_pthread_data_t *ptd = _pthread_get_data(thread);
+ if (ptd == ... |
Fix gen/cat.hoon | ++ pretty-file
=+ wain-to-tang=|=(a/wain (turn a |=(b/cord leaf+(trip b))))
|= fyl/* ^- tang
- =+ `(unit wain)`?@(fyl `(to-wain fyl) ((soft wain) fyl))
+ =+ `(unit wain)`?@(fyl `(to-wain:format fyl) ((soft wain) fyl))
?^ - (wain-to-tang u)
[(pretty-noun fyl)]~
--
|
Fix Misra 15.6 on safety code | @@ -135,7 +135,9 @@ int safety_set_mode(uint16_t mode, int16_t param) {
for (int i = 0; i < HOOK_CONFIG_COUNT; i++) {
if (safety_hook_registry[i].id == mode) {
current_hooks = safety_hook_registry[i].hooks;
- if (current_hooks->init) current_hooks->init(param);
+ if (current_hooks->init) {
+ current_hooks->init(param);... |
zephyr/test/drivers/src/test_rules.c: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | @@ -29,7 +29,6 @@ static void tcpci_revision_reset_before(const struct ztest_unit_test *test,
const struct emul *ps8xxx_emul =
emul_get_binding(DT_LABEL(DT_NODELABEL(ps8xxx_emul)));
-
/* Set TCPCI to revision 2 for both emulators */
tcpc_config[USBC_PORT_C0].flags |= TCPC_FLAGS_TCPCI_REV2_0;
tcpci_emul_set_rev(tcpci_em... |
sys/log: Fix spurious uninitialized variable varning
GCC 7.3.1 complains about possible uinitialized 'rc' variable in
'shell_log_dump_entry' at 'if (rc < len) {` in optimized build.
This does not seem to be correct, but let's make it happy and
initialize 'rc'. | @@ -152,7 +152,7 @@ shell_log_dump_entry(struct log *log, struct log_offset *log_offset,
{
char data[128 + 1];
int dlen;
- int rc;
+ int rc = 0;
#if MYNEWT_VAL(LOG_VERSION) > 2
struct CborParser cbor_parser;
struct CborValue cbor_value;
|
SOVERSION bump to version 6.4.17 | @@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 6)
set(SYSREPO_MINOR_SOVERSION 4)
-set(SYSREPO_MICRO_SOVERSION 16)
+set(SYSREPO_MICRO_S... |
squash! naive: l2 csv more informative printfs & comments | =/ m (strand ,vase)
^- form:m
;< =events bind:m (scry events /gx/azimuth/logs/noun)
- =/ events (scag 50 events) :: to make debugging faster
=/ [naive-contract=address chain-id=@]
[naive chain-id]:(get-network:dice net)
=/ snap=snap-state:dice snap
|
[DFS] Enable long filename for ELM FatFS in default | @@ -44,7 +44,7 @@ if RT_USING_DFS
choice
prompt "Support long file name"
- default RT_DFS_ELM_USE_LFN_0
+ default RT_DFS_ELM_USE_LFN_3
config RT_DFS_ELM_USE_LFN_0
bool "0: LFN disable"
|
Refactor `clear_connection_data_unsafe` (used only once) | @@ -63,13 +63,6 @@ static struct facil_data_s {
#define uuid_data(uuid) fd_data(sock_uuid2fd((uuid)))
// #define uuid_prt_meta(uuid) prt_meta(uuid_data((uuid)).protocol)
-static inline void clear_connection_data_unsafe(intptr_t uuid,
- protocol_s *protocol) {
- uuid_data(uuid) =
- (struct connection_data_s){.active = f... |
Fix rg11b10f KTX1 loading, I think; | @@ -977,7 +977,7 @@ static Image* loadKTX1(Blob* blob) {
[FORMAT_RGB565] = { 0x8363, 0x1907, 0x8D62, 0 },
[FORMAT_RGB5A1] = { 0x8034, 0x1908, 0x8057, 0 },
[FORMAT_RGB10A2] = { 0x8368, 0x1908, 0x8059, 0 },
- [FORMAT_RG11B10F] = { 0x8C3B, 0x1907, 0x8C3A, 0 },
+ [FORMAT_RG11B10F] = { 0x8C3A, 0x1907, 0x8C3A, 0 },
[FORMAT_D... |
Round LCD: Set to round in demo. | @@ -15,7 +15,7 @@ using namespace pimoroni;
const int WIDTH = 240;
const int HEIGHT = 240;
-ST7789 st7789(WIDTH, HEIGHT, ROTATE_0, false, get_spi_pins(BG_SPI_FRONT));
+ST7789 st7789(WIDTH, HEIGHT, ROTATE_0, true, get_spi_pins(BG_SPI_FRONT));
PicoGraphics_PenRGB332 graphics(st7789.width, st7789.height, nullptr);
constex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.