message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fix sprite pool reset on scene change | @@ -8,6 +8,7 @@ UBYTE sprite_active_pool_size = 0;
void SpritePoolReset_b() {
UBYTE i, k;
+ sprite_pool[0] = 0;
for (i = 0; i != MAX_SPRITES; i++) {
// Reverse order of sprites so newer
// sprites will appear behind player/projectiles
|
dm: monotor: bugfix: update wakeup reason before call recume() callback
In handle_resume(), wakeup_reason is updated before call
ops->ops->resume(). Because ops->ops->resume() needs to know the
latest wakeup reason.
Acked-by: Yan Like | @@ -168,6 +168,8 @@ static void handle_resume(struct mngr_msg *msg, int client_fd, void *param)
ack.msgid = msg->msgid;
ack.timestamp = msg->timestamp;
+ wakeup_reason = msg->data.reason;
+
LIST_FOREACH(ops, &vm_ops_head, list) {
if (ops->ops->resume) {
ret += ops->ops->resume(ops->arg);
@@ -181,8 +183,6 @@ static void... |
[runtime] Add busywait function | +// Copyright 2020 ETH Zurich and University of Bologna.
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/lice... |
Added more conventional edit keys. | @@ -333,13 +333,19 @@ static void handle_keydown_ctrl(Edit_field *edit_field, const SDL_Event *event)
kill_to_end_of_line(edit_field);
} break;
- case SDLK_w: {
+ case SDLK_w:
+ case SDLK_x: {
field_buffer_cut(edit_field);
} break;
- case SDLK_y: {
+ case SDLK_y:
+ case SDLK_v: {
field_buffer_paste(edit_field);
} break... |
detect damaged NMEA sentences | @@ -2708,6 +2708,7 @@ return true;
/*===========================================================================*/
static inline void processpackets()
{
+static int gpscount;
static uint16_t maincount;
static uint64_t incommingcountold;
static int sa;
@@ -2721,6 +2722,7 @@ static const char gprmc[] = "$GPRMC";
nmeaptr ... |
Unlock request after invalidating cache lines | @@ -394,15 +394,15 @@ static void ocf_engine_remap(struct ocf_request *req)
/* mark error */
ocf_req_set_mapping_error(req);
- /* unlock cachelines locked during remapping */
- ocf_req_unlock(ocf_cache_line_concurrency(req->cache),
- req);
-
/* request cleaning */
ocf_req_set_cleaning_required(req);
/* unmap inserted a... |
fix completions of config | @@ -54,8 +54,25 @@ task("config")
, {category = "."}
, {'p', "plat", "kv", "$(host)" , "Compile for the given platform."
- , values = function ()
- return import("core.platform.platform").plats()
+ , values = function (complete, opt)
+
+ -- import
+ import("core.platform.platform")
+ import("core.base.hashset")
+
+ if ... |
Fix xmas iterator
For some reason the Qt iterators don't behave. | @@ -307,7 +307,8 @@ int DeRestPluginPrivate::setXmasLightStripState(const ApiRequest &req, ApiRespon
QList<QList<quint8>> effectColours;
// Check parameters.
- for (auto p = map.constBegin(); p != map.constEnd(); p++)
+ const auto mapEnd = map.cend();
+ for (auto p = map.cbegin(); p != mapEnd; ++p)
{
bool paramOk = fal... |
Sprinkle in some static to prevent missing prototype warnings. | @@ -2248,7 +2248,7 @@ http_chunked_segment(struct comm_point* c)
#ifdef HAVE_NGHTTP2
/** Create new http2 session. Called when creating handling comm point. */
-struct http2_session* http2_session_create(struct comm_point* c)
+static struct http2_session* http2_session_create(struct comm_point* c)
{
struct http2_sessio... |
Replace one-sized arrays with one member (flexible array hack) to avoid UB.
Reference: | @@ -594,7 +594,7 @@ DppDbGetPropertyBuffer (
Status = EFI_SUCCESS;
if (!Result) {
- BufferNode = &Buffer->Nodes[0];
+ BufferNode = &(&Buffer->Nodes)[0];
do {
BufferSize = GetDevicePathSize (&NodeWalker->DevicePath);
@@ -765,7 +765,7 @@ InternalReadEfiVariableProperties (
Status = EFI_NOT_FOUND;
} else if (EFI_ERROR (St... |
Delay HE candidates based on priority when property "__he_delay" is specified | @@ -113,7 +113,7 @@ delayed_he_connect_req(struct neat_he_candidate *candidate, uv_poll_cb callback_
if (he_delay_property != NULL){
he_delay_val = json_object_get(he_delay_property, "value");
assert(he_delay_val);
- he_delay += json_integer_value(he_delay_val);
+ he_delay = json_integer_value(he_delay_val) * candidate... |
github: DoD now called checklist | @@ -31,8 +31,7 @@ We recommend that you read:
Before you issue a pull request that modifies code:
- You should read the [coding document](/doc/CODING.md).
-- You should read the [design document](/doc/DESIGN.md).
-- Make sure you fulfilled the [definition of done](/.github/PULL_REQUEST_TEMPLATE.md).
+- Make sure you fu... |
for Redhat build, source the devtoolset-7 enablement script to avoid need to customize one's environment to build aomp | @@ -28,6 +28,7 @@ thisdir=$(getdname $0)
# --- end standard header ----
function build_aomp_component() {
+ [ -f /opt/rh/devtoolset-7/enable ] && . /opt/rh/devtoolset-7/enable
$AOMP_REPOS/$AOMP_REPO_NAME/bin/build_$COMPONENT.sh "$@"
rc=$?
if [ $rc != 0 ] ; then
|
Clarification of the Notice to external contributors
I hereby agree to the terms of the CLA available at: | @@ -19,7 +19,7 @@ If you agree with these principles, please read and adopt our CLA. By providing
## Provide contributions
-If you have already adopted terms and conditions of the CLA, you are able to provide your contributions. When you submit your pull request, please add the following information into it:
+If you ha... |
sm5803: add parenthesis to the input of macros
Inputs have to be guarded with parenthesis.
TEST=make buildall
BRANCH=main | @@ -225,8 +225,8 @@ enum sm5803_charger_modes {
#define SM5803_REG_CHG_ILIM 0x24
#define SM5803_CHG_ILIM_RAW GENMASK(4, 0)
#define SM5803_CURRENT_STEP 100
-#define SM5803_REG_TO_CURRENT(r) (r * SM5803_CURRENT_STEP)
-#define SM5803_CURRENT_TO_REG(c) (c / SM5803_CURRENT_STEP)
+#define SM5803_REG_TO_CURRENT(r) ((r) * SM58... |
vat: Fix the incrementing IPv6 address
Type: fix | @@ -737,9 +737,9 @@ increment_v6_address (vl_api_ip6_address_t * i)
static void
increment_address (vl_api_address_t * a)
{
- if (a->af == ADDRESS_IP4)
+ if (clib_net_to_host_u32 (a->af) == ADDRESS_IP4)
increment_v4_address (&a->un.ip4);
- else if (a->af == ADDRESS_IP6)
+ else if (clib_net_to_host_u32 (a->af) == ADDRESS... |
Fix small typo in sway-input(5) | @@ -107,7 +107,7 @@ The following commands may only be used in the configuration file.
Sets the pointer acceleration profile for the specified input device.
*input* <identifier> calibration_matrix <6 space-separated floating point values>
- Sets the calibtration matrix.
+ Sets the calibration matrix.
*input* <identifie... |
Fix NaN handling when calculating angle for mat4
The arccos was incorrectly calculated when cosangle was larger than 1.0 | @@ -546,7 +546,7 @@ MAF void mat4_getAngleAxis(mat4 m, float* angle, float* ax, float* ay, float* az
if (fabsf(cosangle) < 1.f - FLT_EPSILON) {
*angle = acosf(cosangle);
} else {
- *angle = (float) M_PI;
+ *angle = cosangle > 0.f ? 0.f : (float) M_PI;
}
*ax = axis[0];
*ay = axis[1];
|
travis: For powerpc job, build both UART variants.
The powerpc port can be built with two different UART drivers, so build
both in CI.
The default compiler is now powerpc64le-linux-gnu- so it does not need to
be specified on the command line. | @@ -416,4 +416,5 @@ jobs:
- sudo apt-get install gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross
script:
- make ${MAKEOPTS} -C mpy-cross
- - make ${MAKEOPTS} -C ports/powerpc CROSS_COMPILE=powerpc64le-linux-gnu-
+ - make ${MAKEOPTS} -C ports/powerpc UART=potato
+ - make ${MAKEOPTS} -C ports/powerpc UART=lpc_serial
|
imxrt: Fixed isel and pad registers address getters | @@ -316,12 +316,12 @@ static volatile u32 *_imxrt_IOpadGetReg(int pad)
return NULL;
if (pad >= pctl_pad_snvs_test_mode)
- return imxrt_common.iomuxsnvs + 3;
+ return imxrt_common.iomuxsnvs + 3 + (pad - pctl_pad_snvs_test_mode);
if (pad >= pctl_pad_gpio_spi_b0_00)
- return imxrt_common.iomuxc + 429;
+ return imxrt_commo... |
pyocf: Volume not to inherit from ctypes.Structure
Volume object is never referenced from C code, so there
is no need to inherit from ctypes.Structure. | #
-# Copyright(c) 2019-2021 Intel Corporation
+# Copyright(c) 2019-2022 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -77,9 +77,7 @@ class VolumeIoPriv(Structure):
VOLUME_POISON = 0x13
-class Volume(Structure):
-
- _fields_ = [("_storage", c_void_p)]
+class Volume():
_instances_ = weakref.WeakValueDict... |
Align dots after typo correction
Forgot to add an additional dot in order to align the output after a letter was removed. | @@ -423,8 +423,8 @@ if(outmode == 0)
{
fprintf(stdout, "total hashes read from file.......: %ld\n"
"\x1B[32mhandshakes from clients...........: %ld\x1B[0m\n"
- "little endian router detected....: %ld\n"
- "big endian router detected.......: %ld\n"
+ "little endian router detected.....: %ld\n"
+ "big endian router detec... |
Change specification link to the DataFormat spec | @@ -16,7 +16,7 @@ energy consumption.
The ASTC data format specification is available here:
-* [OES_texture_compression_astc](https://www.khronos.org/registry/OpenGL/extensions/OES/OES_texture_compression_astc.txt)
+* [Khronos Data Format Specification v1.2 # ASTC](https://www.khronos.org/registry/DataFormat/specs/1.2/... |
Sockeye: Checker code improvements | @@ -293,11 +293,10 @@ instance Checkable ParseAST.PortMap AST.PortMap where
let
mappedId = ParseAST.mappedId portMap
mappedPort = ParseAST.mappedPort portMap
- idents = [mappedId, mappedPort]
- checkedIds <- check context idents
+ (checkedId, checkedPort) <- check context (mappedId, mappedPort)
return $ AST.PortMap
- {... |
toml: Added NULL check | bool shouldWriteMetakey (const Key * meta)
{
+ if (meta == NULL)
+ {
+ return false;
+ }
const char * blackList[] = { "order", "origvalue", "tomltype", NULL };
for (size_t i = 0; blackList[i] != NULL; i++)
{
@@ -42,7 +46,7 @@ bool shouldWriteMetakey (const Key * meta)
bool isMetakeyComment (const char * comment)
{
- re... |
ps8815: Add displayport related settings
This patch adds one more register for displayport related settings
with ps8815.
BRANCH=firmware-volteer-13672.B-main
TEST=make buildall | /* Vendor defined registers */
#define PS8815_P1_REG_HW_REVISION 0xF0
+/*
+ * Below register is defined from Parade PS8815 Register Table,
+ * See b:189587527 for more detail.
+ */
+
+/* Displayport related settings */
+#define PS8815_REG_DP_EQ_SETTING 0xF8
+#define PS8815_AUTO_EQ_DISABLE BIT(7)
+#define PS8815_DPEQ_LO... |
sixtop: add a comment about a design decision on Figure 31, RFC 8480 | @@ -263,6 +263,13 @@ sixp_input(const uint8_t *buf, uint16_t len, const linkaddr_t *src_addr)
seqno != pkt.seqno) {
LOG_ERR("6P: sixp_input() fails because of invalid seqno [seqno:%u, %u]\n",
seqno, pkt.seqno);
+ /*
+ * Figure 31 of RFC 8480 implies there is a chance to receive a
+ * 6P Response having RC_ERR_SEQNUM an... |
Add label macro.
A lexically scoped version of prompt is often useful. | (propagate ,r ,f)))))
(defmacro prompt
- "Set up a prompt point that can be aborted to. Tag should be a value
+ "Set up a checkpoint that can be returned to. Tag should be a value
that is used in a return statement, like a keyword."
[tag & body]
(with-syms [res target payload fib]
,payload
(propagate ,res ,fib)))))
+(d... |
added missing type to GroupType name attribute | <xs:element name="file" type="FileType" />
<xs:element name="group" type="GroupType" />
</xs:choice>
- <xs:attribute name="name" use="required" />
+ <xs:attribute name="name" type="xs:string" use="required" />
<!-- layer reference -->
<xs:attribute name="layer" type="RestrictedString" use="optional" />
</xs:complexType... |
Adding "backlog" label to exemptLabels.
Just to make sure it doesn't get closed. | @@ -6,6 +6,7 @@ daysUntilClose: 7
exemptLabels:
- pinned
- security
+ - backlog
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
|
Missing check on application error | @@ -3826,8 +3826,7 @@ const uint8_t* picoquic_decode_datagram_frame(picoquic_cnx_t* cnx, const uint8_t
length = bytes_max - bytes;
}
- if (bytes != NULL) {
- if (cnx->callback_fn != NULL) {
+ if (bytes != NULL && cnx->callback_fn != NULL) {
/* submit the data to the app */
if (cnx->callback_fn(cnx, 0, (uint8_t*)bytes, ... |
it83xx/flash: handle AP's command of get status while erasing
This change makes EC handle get status command from AP while erasing.
BRANCH=none
TEST=Software sync works on Asurada. | @@ -502,6 +502,18 @@ int FLASH_DMA_CODE flash_physical_erase(int offset, int size)
*/
if (IS_ENABLED(IT83XX_CHIP_FLASH_IS_KGD) && (size > 0x10000))
watchdog_reload();
+ /*
+ * EC still need to handle AP's EC_CMD_GET_COMMS_STATUS command
+ * during erasing.
+ */
+#ifdef IT83XX_IRQ_SPI_SLAVE
+ if (IS_ENABLED(CONFIG_SPI) ... |
arch/sim: fix visual studio Linker Tools Error LNK2019
nuttx_all.lib(up_initialstate.obj) : error LNK2019:
unresolved external symbol '___builtin_frame_addres' referenced in function '_up_getsp'
Return stack pointer from esp | @@ -77,7 +77,13 @@ extern "C"
static inline uintptr_t up_getsp(void)
{
+#ifdef _MSC_VER
+ uintptr_t regval;
+ __asm mov regval, esp;
+ return regval;
+#else
return (uintptr_t)__builtin_frame_address(0);
+#endif
}
/****************************************************************************
|
upstream: avoid dns timeout null event injection | @@ -842,10 +842,11 @@ int flb_upstream_conn_timeouts(struct mk_list *list)
}
if (drop == FLB_TRUE) {
+ if (u_conn->event.status != MK_EVENT_NONE) {
mk_event_inject(u_conn->evl, &u_conn->event,
MK_EVENT_READ | MK_EVENT_WRITE,
FLB_TRUE);
-
+ }
u_conn->net_error = ETIMEDOUT;
prepare_destroy_conn(u_conn);
}
|
Encoder support for rIP relative addressing | @@ -541,6 +541,13 @@ static ZydisBool ZydisIsSPReg(ZydisRegister reg)
reg == ZYDIS_REGISTER_RSP;
}
+static ZydisBool ZydisIsIPReg(ZydisRegister reg)
+{
+ return reg == ZYDIS_REGISTER_IP ||
+ reg == ZYDIS_REGISTER_EIP ||
+ reg == ZYDIS_REGISTER_RIP;
+}
+
static ZydisBool ZydisIsStackReg(ZydisRegister reg)
{
return Zydis... |
travis BUGFIX calling clang in sudo
Travis installs clang into directories available only via login shell
(not just via environment as tried in previous commit), so sudo must be
invoked with -i option in case the command needs clang as in the case of
building libpcre2. | @@ -60,7 +60,7 @@ jobs:
- cd cmocka-1.1.2 && mkdir build && cd build && cmake .. && make -j2 && sudo make install && cd ../..
- wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz
- tar -xzf pcre2-10.30.tar.gz
- - cd pcre2-10.30 && ./configure && make -j2 && sudo -E make install && cd ..
+ - cd pcre2-10.30 && ./confi... |
Improve comments in utils/rel.h.
Mark the fields that should be accessed via partitioning-related
functions, as we already did for some other fields.
Amit Langote
Discussion: | @@ -95,10 +95,15 @@ typedef struct RelationData
List *rd_fkeylist; /* list of ForeignKeyCacheInfo (see below) */
bool rd_fkeyvalid; /* true if list has been computed */
+ /* data managed by RelationGetPartitionKey: */
PartitionKey rd_partkey; /* partition key, or NULL */
MemoryContext rd_partkeycxt; /* private context ... |
Fix frame categorization | @@ -71,11 +71,13 @@ tdep_stash_frame (struct dwarf_cursor *d, struct dwarf_reg_state *rs)
&& DWARF_GET_LOC(d->loc[rs->ret_addr_column]) == d->cfa-8
&& (rs->reg.where[RBP] == DWARF_WHERE_UNDEF
|| rs->reg.where[RBP] == DWARF_WHERE_SAME
+ || rs->reg.where[RBP] == DWARF_WHERE_CFA
|| (rs->reg.where[RBP] == DWARF_WHERE_CFARE... |
Delete contrib/libs/libunwind. | - source_filter: "^contrib/libs/libunwind_master"
includes:
- unwind.h: contrib/libs/libunwind_master/include/unwind.h
-- source_filter: "^contrib/libs/libunwind/"
- includes:
- - unwind.h: contrib/libs/libunwind/include/unwind.h
- source_filter: "^contrib/libs/cppkafka"
includes:
|
s2n_connection_set_protocol_preferences doc | @@ -905,6 +905,17 @@ int s2n_connection_set_cipher_preferences(struct s2n_connection *conn, const cha
s2n_connection. Calling this function is not necessary unless you want to set the
cipher preferences on the connection to something different than what is in the s2n_config.
+
+## s2n\_connection\_set\_protocol\_prefer... |
Write ACK later to reduce conn_create_ack_frame call count | @@ -991,16 +991,7 @@ static ssize_t conn_write_handshake_pkt(ngtcp2_conn *conn, uint8_t *dest,
ctx.user_data = conn;
- if (type != NGTCP2_PKT_0RTT_PROTECTED) {
- rv = conn_create_ack_frame(conn, &ackfr, &pktns->acktr, ts,
- NGTCP2_DEFAULT_ACK_DELAY_EXPONENT);
- if (rv != 0) {
- return rv;
- }
- }
-
- if (ngtcp2_pq_empt... |
added missing newline to error report | @@ -5275,7 +5275,7 @@ else
{
if(ifa->ifa_addr->sa_family != AF_PACKET)
{
- printf("getifaddrs() - ifa_name failed");
+ printf("getifaddrs() - ifa_name failed\n");
drivererrorflag = true;
}
}
|
fix: use sane value for json_tokener max_depth
INT_MAX causes a NULL pointer if there is not enough memory available to
fit (INT_MAX * sizeof(struct json_tokener_srec)). | #define _POSIX_C_SOURCE 200809L
+
+// arbitrary number, it's probably sufficient, higher number = more memory usage
+#define JSON_MAX_DEPTH 512
+
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
@@ -481,7 +485,7 @@ int main(int argc, char **argv) {
char *resp = ipc_single_command(socketfd, type, command, &len... |
Update dwc2_stm32.h
Support STM32H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx | #define EP_FIFO_SIZE_FS 4096
#define EP_MAX_HS 9
#define EP_FIFO_SIZE_HS 4096
+ #if (! defined USB2_OTG_FS)
+ // H7 with only 1 USB port: H72x / H73x / H7Ax / H7Bx
+ // USB_OTG_FS_PERIPH_BASE and OTG_FS_IRQn not defined
+ #define USB_OTG_FS_PERIPH_BASE USB1_OTG_HS_PERIPH_BASE
+ #define OTG_FS_IRQn OTG_HS_IRQn
#elif CFG... |
Allow setting mchp hexmate location from a variable | @@ -321,9 +321,15 @@ set(xc32_bin2hex ${XC32_BIN}/xc32-bin2hex)
set(xc32_objcopy ${XC32_BIN}/xc32-objcopy)
set(output_file "$<TARGET_FILE_DIR:${exe_target}>/${exe_target}.hex")
+# Locate microchip hexmate.
+set(MCHP_HEXMATE_PATH "" CACHE STRING "Path to microchip hexmate, usually this should be mplab's path")
+find_pro... |
in_tail: free memory if allocated by expand_tilde
Only free memory when it is actually allocated by expand_tilde,
otherwise we're freeing memory that shouldn't be freed (at least not
here). | @@ -152,8 +152,10 @@ static inline int do_glob(const char *pattern, int flags,
/* invoke glob with new parameters */
ret = glob(pattern, new_flags, NULL, pglob);
- /* remove temporary buffer */
- if (tmp != NULL) {
+ /* remove temporary buffer, if allocated by expand_tilde above.
+ * Note that this buffer is only used ... |
imlib: Fix imlib_rgb565_to_l output.
It should not be negative when the imlib_rgb565_to_l function input is zero, e.g. y=0.137931f, fast_floorf(116 * 0.137931f) = 15.999996, 15.999996 - 16 < 0. | @@ -412,7 +412,7 @@ int8_t imlib_rgb565_to_l(uint16_t pixel)
y = (y>0.008856f) ? fast_cbrtf(y) : ((y * 7.787037f) + 0.137931f);
- return fast_floorf(116 * y) - 16;
+ return IM_MAX(IM_MIN(fast_floorf(116 * y) - 16, COLOR_L_MAX), COLOR_L_MIN);
}
int8_t imlib_rgb565_to_a(uint16_t pixel)
@@ -427,7 +427,7 @@ int8_t imlib_rg... |
minor notebook fix | "plt.title('Relative difference') \n",
"plt.savefig('benchmark_rel.pdf',bbox_inches = 'tight')\n",
"plt.show()\n",
- "print frac_diff\n",
+ "#print frac_diff\n",
"print(f'Max frac diff for s = 0.1-100: {np.amax(frac_diff1)}')\n",
"print(f'Max frac diff for s = 50-250: {np.amax(frac_diff2)}')"
]
|
usb_ppc: Fix broken tests build
Define ppc_prints and ppc_err_prints (to do nothing) for test builds.
TEST=make tests BOARD=ampton
BRANCH=none
Tested-by: Patryk Duda | #ifndef TEST_BUILD
#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ## args)
#define CPRINTS(format, args...) cprints(CC_USBPD, format, ## args)
+#else
+#define CPRINTF(args...)
+#define CPRINTS(args...)
+#endif
int ppc_prints(const char *string, int port)
{
+#ifndef TEST_BUILD
return CPRINTS("ppc p%d %s", po... |
Add genFilenameLineComments. | @@ -16,22 +16,41 @@ package cgen
import (
"fmt"
+ "strings"
a "github.com/google/puffs/lang/ast"
t "github.com/google/puffs/lang/token"
)
+// genFilenameLineComments is whether to print "// foo.puffs:123\n" comments in
+// the generated code. This can be useful for debugging, although it is not
+// enabled by default a... |
FIPS Checksums: checkout the head of the base repo as pristine | @@ -18,7 +18,8 @@ jobs:
mkdir ./artifact
- uses: actions/checkout@v2
with:
- ref: ${{ github.event.pull_request.base.sha }}
+ repository: ${{ github.event.pull_request.base.repo.full_name }}
+ ref: ${{ github.event.pull_request.base.ref }}
path: source-pristine
- name: config pristine
run: ../source-pristine/config ena... |
chip/mt8192_scp: change clock source to ULPOSC for UART
26M clock cannot be used when AP enters S3. Changes the clock source to
ULPOSC instead.
Note: it is still 26M.
BRANCH=none
TEST=powerd_dbus_suspend | @@ -25,19 +25,18 @@ static uint8_t init_done, tx_started;
void uart_init(void)
{
const uint32_t baud_rate = CONFIG_UART_BAUD_RATE;
- /* TODO: use ULPOSC1 for S3 */
const uint32_t uart_clock = 26000000;
const uint32_t div = DIV_ROUND_NEAREST(uart_clock, baud_rate * 16);
#if UARTN == 0
- SCP_UART_CK_SEL |= UART0_CK_SEL_V... |
[mod_webdav] one fewer buffer copy for COPY,MOVE
one fewer buffer copy of Destination for COPY,MOVE | @@ -102,7 +102,6 @@ INIT_FUNC(mod_webdav_init) {
p->tmp_buf = buffer_init();
p->uri.scheme = buffer_init();
- p->uri.path_raw = buffer_init();
p->uri.path = buffer_init();
p->uri.authority = buffer_init();
@@ -154,7 +153,6 @@ FREE_FUNC(mod_webdav_free) {
}
buffer_free(p->uri.scheme);
- buffer_free(p->uri.path_raw);
buf... |
Fix y_parity signature for eip1559 and eip2930 | @@ -28,6 +28,13 @@ unsigned int io_seproxyhal_touch_tx_ok(const bagl_element_t *e) {
sizeof(signature),
&info);
explicit_bzero(&privateKey, sizeof(privateKey));
+ if (txContext.txType == EIP1559 || txContext.txType == EIP2930) {
+ if (info & CX_ECCINFO_PARITY_ODD) {
+ G_io_apdu_buffer[0] = 1;
+ } else {
+ G_io_apdu_buf... |
FIX ifftc for odd dimensions | @@ -1028,7 +1028,10 @@ static struct linop_s* linop_fft_create_priv(int N, const long dims[N], unsigned
complex float one[1] = { 1. };
md_fill(N, dims, fftmod_mat, one, CFL_SIZE);
+ if (forward)
fftmod(N, dims, flags, fftmodk_mat, fftmod_mat);
+ else
+ ifftmod(N, dims, flags, fftmodk_mat, fftmod_mat);
fftscale(N, dims,... |
fix target.h | #define GEPRCF411
-#define F4
-#define F411
-
//PORTS
#define SPI_PORTS \
SPI1_PA5PA6PA7 \
#define BUZZER_PIN PIN_B2
//GYRO
-#define MPU6XXX_SPI_PORT SPI_PORT1
-#define MPU6XXX_NSS PIN_A4
-#define MPU6XXX_INT PIN_A1
+#define GYRO_SPI_PORT SPI_PORT1
+#define GYRO_NSS PIN_A4
+#define GYRO_INT PIN_A1
#define GYRO_ORIENTAT... |
Localise add button elements | @@ -110,19 +110,19 @@ class ToolPicker extends Component {
onClick={this.setTool("actors")}
title={`${l10n("TOOL_ADD_ACTOR_LABEL")} (a)`}
>
- Actor
+ {l10n("ACTOR")}
</MenuItem>
<MenuItem
onClick={this.setTool("triggers")}
title={`${l10n("TOOL_ADD_TRIGGER_LABEL")} (t)`}
>
- Trigger
+ {l10n("TRIGGER")}
</MenuItem>
<Menu... |
Use cuCrealf instead of cuCabsf for cuda_zexpj - supports negative numbers correctly | @@ -528,7 +528,7 @@ __global__ void kern_zexpj(int N, cuFloatComplex* dst, const cuFloatComplex* src
for (int i = start; i < N; i += stride) {
- float abs = cuCabsf(src[i]); // moved out, otherwise it triggers a compiler error in nvcc
+ float abs = cuCrealf(src[i]); // moved out, otherwise it triggers a compiler error ... |
fix to remove tmp_dir from arch exclusion list | @@ -121,7 +121,7 @@ foreach my $distro (@distros) {
# exclude other arches, iso and src dirs
my @n_arches = grep { $_ ne $arch } @arches;
for my $n_arch (@n_arches) {
- $tar_args .= "--exclude $tmp_dir/$distro/$n_arch \\\n";
+ $tar_args .= "--exclude $distro/$n_arch \\\n";
}
$tar_args .= "--exclude $distro/iso \\\n";
$... |
Added API Endpoint /api/help returning a quick summary of available API routes | using Autofac;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.Infrastructure;
+using Microsoft.AspNetCore.Mvc.Internal;
using Miningcore.Api.Extensions;
using Miningcore.Api.Responses;
using Miningcore.Blockchain;
@@ -14,6 +16,7 @@ using Miningcore.Persistence.Repositories;
using Mini... |
[docs] - Move manifest file name outside code block in SOURCEINSTALL.md | @@ -65,14 +65,12 @@ There is a "list" option on the clone\_aomp.sh that provides useful information
$AOMP_REPOS/aomp/bin/clone_aomp.sh list
```
The above command will produce output like this showing you the location and branch of the repos in the AOMP\_REPOS directory and if there are any discrepencies with respect to... |
delete class declare | @@ -55,37 +55,10 @@ typedef struct
float moment;
} Inertia;
-
-class Manipulator;
-class Link;
-class Base;
-class Joint;
-class Tool;
-
Eigen::Vector3f makeEigenVector3(float v1, float v2, float v3);
Eigen::Matrix3f makeEigenMatrix3(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32... |
If trying to delete last frame in animation, delete all tiles rather than removing frame | @@ -1720,6 +1720,13 @@ const removeMetasprite: CaseReducer<
state.spriteAnimations.entities[action.payload.spriteAnimationId];
if (!spriteAnimation || spriteAnimation.frames.length <= 1) {
+ // Remove tiles if only frame in animation
+ metaspritesAdapter.updateOne(state.metasprites, {
+ id: action.payload.metaspriteId,... |
kukui: enlarge stack for hook_task
We are seeing a stack overflow from hook_task. Enlarge it
to prevent from crashing.
TEST=not seeing a EC crash
BRANCH=kukui | * See CONFIG_TASK_LIST in config.h for details.
*/
#define CONFIG_TASK_LIST \
- TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_ALWAYS(HOOKS, hook_task, NULL, VENTI_TASK_STACK_SIZE) \
TASK_ALWAYS(CHARGER, charger_task, NULL, VENTI_TASK_STACK_SIZE) \
TASK_ALWAYS(USB_CHG, usb_charger_task, NULL, VENT... |
schema parser DOC remove misleading comment
Fixes | @@ -113,7 +113,7 @@ LY_ERR lys_parse(struct ly_ctx *ctx, struct ly_in *in, LYS_INFORMAT format, cons
*
* @param[in] ctx libyang context where to process the data model.
* @param[in] data The string containing the dumped data model in the specified format.
- * @param[in] format Format of the schema to parse. Can be 0 to... |
Remove incorrect PSA ECB definition
There is no PSA ALG_ECB, only ALG_ECB_NO_PADDING. Fix one incorrect
declaration, and remove another that is just redundant. | @@ -328,7 +328,7 @@ extern "C" {
#endif /* PSA_WANT_ALG_XTS */
#if defined(PSA_WANT_ALG_ECB_NO_PADDING)
-#define MBEDTLS_PSA_BUILTIN_ALG_ECB 1
+#define MBEDTLS_PSA_BUILTIN_ALG_ECB_NO_PADDING 1
#endif
#if defined(PSA_WANT_ALG_CBC_NO_PADDING)
@@ -509,7 +509,6 @@ extern "C" {
#if defined(MBEDTLS_AES_C) || defined(MBEDTLS_... |
create training dir if it not exist in GPU | @@ -221,7 +221,6 @@ namespace NCatboostCuda {
NCatboostOptions::TCatBoostOptions& catBoostOptions,
NCatboostOptions::TOutputFilesOptions& outputOptions,
TBinarizedFeaturesManager& featuresManager) {
-
UpdateBoostingTypeOption(dataProvider.GetSampleCount(),
&catBoostOptions.BoostingOptions->BoostingType);
@@ -245,7 +244... |
Add command line option to control transport protocol
Add -s to enforce SCTP and -t to enforce TCP. The default is to
use SCTP and TCP. | -c : number of contexts (default: 1)
-R : receive buffer size in byte
-v : log level (0 .. 4)
+ -t : use tcp as transport protocol
+ -s : use sctp as transport protocol
Each new flow will be put on the next context (if more than one context is
specified) and when reaching the end of the total number of contexts, it
@@ ... |
Fix gbdkjs compile error | @@ -27,7 +27,7 @@ extern UBYTE script_ptr_bank;
extern UBYTE *script_start_ptr;
extern UBYTE script_cmd_args[6];
extern UBYTE script_cmd_args_len;
-extern SCRIPT_CMD script_cmds[];
+extern const SCRIPT_CMD script_cmds[];
extern UBYTE *script_ptr;
extern UWORD script_ptr_x;
extern UWORD script_ptr_y;
|
Build stl header units only when not present and add dummy append_headerunits_objectfiles function | @@ -167,10 +167,11 @@ function generate_stl_headerunits_for_batchcmds(target, batchcmds, headerunits,
local depmtime = 0
for _, headerunit in ipairs(headerunits) do
local bmifile = path.join(stlcachedir, headerunit.name .. get_bmi_extension())
+ if not os.isfile(bmifile) then
local args = { "-c", "-x", "c++-system-head... |
interop: Enable chacha20 test case | # - CLIENT_PARAMS contains user-supplied command line parameters
case $TESTCASE in
- versionnegotiation|handshake|transfer|retry|resumption|http3|multiconnect|zerortt)
+ versionnegotiation|handshake|transfer|retry|resumption|http3|multiconnect|zerortt|chacha20)
:
;;
*)
@@ -26,6 +26,9 @@ if [ "$ROLE" == "client" ]; then... |
Set log level when setting debug level
Making sure that we set the log level in the C library when user
sets the debug level via the Fortran interface.
Fixes | @@ -16,6 +16,7 @@ module piolib_mod
pio_noerr, pio_rearr_subset, pio_rearr_opt_t
!--------------
use pio_support, only : piodie, debug, debugio, debugasync, checkmpireturn
+ use pio_nf, only : pio_set_log_level
!
@@ -331,6 +332,7 @@ contains
!<
subroutine setdebuglevel(level)
integer(i4), intent(in) :: level
+ integer ... |
implementation done for STM32F769-Disco with ESP socket and SDCARD socket | #define ESP_USART_RX_PORT GPIOD
#define ESP_USART_RX_PIN LL_GPIO_PIN_2
#define ESP_USART_RX_PIN_AF LL_GPIO_AF_8
-#define ESP_USART_RS_PORT_CLK __HAL_RCC_GPIOD_CLK_ENABLE
-#define ESP_USART_RS_PORT GPIOD
-#define ESP_USART_RS_PIN LL_GPIO_PIN_2
+#define ESP_USART_RS_PORT_CLK __HAL_RCC_GPIOJ_CLK_ENABLE
+#define ESP_USART_... |
Code formatting changes and update if condition for empty delimiter | @@ -64,8 +64,7 @@ static Value formatString(VM *vm, int argCount, Value *args) {
memcpy(tmp, string->chars, stringLen);
int count = 0;
- while((tmp = strstr(tmp, "{}")))
- {
+ while ((tmp = strstr(tmp, "{}"))) {
count++;
tmp++;
}
@@ -135,20 +134,17 @@ static Value splitString(VM *vm, int argCount, Value *args) {
ObjLis... |
use standard variable name | START=95
USE_PROCD=1
-KADNODE_BIN=/usr/bin/kadnode
+PROG=/usr/bin/kadnode
OPTS=""
@@ -56,14 +56,14 @@ start_instance() {
append_opts_boolean "$cfg" dns_proxy_enable lpd_disable fwd_disable ipv4 ipv6
# Close stdin when cmd feature is present
- if [ $($KADNODE_BIN --version | grep -c cmd) -eq 1 ]; then
+ if [ $($PROG --v... |
/bsp/k210:add delay us function in board.c ,when using posix interface ,rt_hw_us_delay this function will be called in unistd.c file | /*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
+ *2021-06-10 xiaoyu implement rt_hw_us_delay()
*/
#include <rthw.h>
@@ -117,3 +118,19 @@ void rt_hw_cpu_reset(void)
}
MSH_CMD_E... |
travis: update location of setup-osx.sh | @@ -38,6 +38,6 @@ git:
before_install:
- git submodule update --init
- gem update --system
- - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./vendor/libgit2/ci/setup-osx.sh; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./vendor/libgit2/azure-pipelines/setup-osx.sh; fi
script: script/travisbuild
|
acrn-config: fix log macros for board defconfig
fix macros log level for board defconfig.
Acked-by: Victor Sun | @@ -203,10 +203,10 @@ def get_capacities(hv_info, config):
def get_log_opt(hv_info, config):
print("CONFIG_LOG_BUF_SIZE={}".format(hv_info.log.buf_size), file=config)
- print("CONFIG_NPK_LOGLEVEL={}".format(hv_info.log.level.npk), file=config)
- print("CONFIG_MEM_LOGLEVEL={}".format(hv_info.log.level.mem), file=config)... |
Fix C++20 compatibility: Removed feature used
The `std::allocator<T>` type in the C++ standard library does not declare
the `const_pointer` associated type anymore, as per the update of the
C++ standard.
This fix replaces its usage with a normal constant pointer:
```diff
typename std::allocator<void>::const_pointer
+co... | @@ -268,7 +268,7 @@ struct allocator {
inline pointer address(reference r) { return &r; }
inline const_pointer address(const_reference r) { return &r; }
- inline pointer allocate(size_type cnt, typename std::allocator<void>::const_pointer = 0)
+ inline pointer allocate(size_type cnt, const std::allocator<void>::value_t... |
probot: good first issues are the only exception | @@ -12,10 +12,7 @@ onlyLabels: []
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- - important
- good first issue
- - usability
- - security
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
|
I corrected a mismatched label in an IF - ENDIF block in the main
CMakeLists file. | @@ -1270,7 +1270,7 @@ IF(VISIT_OSPRAY)
THIRD_PARTY_INSTALL_LIBRARY(${l})
ENDIF()
ENDFOREACH()
- ENDIF(VISIT_OSPRAY_SKIP_INSTALL)
+ ENDIF(NOT VISIT_OSPRAY_SKIP_INSTALL)
# debug
MESSAGE(STATUS "OSPRAY_INCLUDE_DIR: " ${OSPRAY_INCLUDE_DIR})
|
Decrement firmware version. | * the IDE will Not connect if the major version number is different.
*/
#define FIRMWARE_VERSION_MAJOR (3)
-#define FIRMWARE_VERSION_MINOR (5)
-#define FIRMWARE_VERSION_PATCH (0)
+#define FIRMWARE_VERSION_MINOR (4)
+#define FIRMWARE_VERSION_PATCH (3)
/**
* To add a new debugging command, increment the last command valu... |
posix: fix inet_accept behavior | @@ -102,17 +102,6 @@ int inet_accept(unsigned socket, struct sockaddr *address, socklen_t *address_le
if ((err = socknamecall(socket, &msg, address, address_len)) < 0)
return set_errno(err);
- oid.port = err;
-
- if ((err = posix_newFile(p, 0)) < 0) {
- msg.type = mtClose;
- proc_send(oid.port, &msg);
- return set_errn... |
API change calibration flags | @@ -1501,12 +1501,12 @@ int LMS7_Device::Calibrate(bool dir_tx, size_t chan, double bw, unsigned flags)
lime::ReportError(EINVAL, "Invalid channel number.");
return -1;
}
- lms->EnableCalibrationByMCU((flags&1) == 0);
+ //lms->EnableCalibrationByMCU((flags&1) == 0);
lms->Modify_SPI_Reg_bits(LMS7param(MAC), (chan%2) + 1... |
[core] reset large path buffers from long URLs | @@ -184,6 +184,8 @@ request_reset_ex (request_st * const r)
buffer_clear(&r->uri.authority);
buffer_reset(&r->uri.path);
buffer_reset(&r->uri.query);
+ buffer_reset(&r->physical.path);
+ buffer_reset(&r->physical.rel_path);
buffer_reset(&r->target_orig);
buffer_reset(&r->target); /*(see comments in request_reset())*/
b... |
testing ESSID length only will fail on ESSID changes | @@ -346,7 +346,7 @@ for(hccapxzeiger1 = hccapxzeigerakt1; hccapxzeiger1 < (hccapx1list +hccapx1count
hccapxzeigerakt1 = hccapxzeiger1;
return true;
}
- if(hccapxzeiger1->essidlen > hccapxzeiger2->essidlen)
+ if(memcmp(hccapxzeiger2->essid, hccapxzeiger1->essid, ESSID_LEN_MAX) > 0)
{
return false;
}
@@ -363,7 +363,7 @@ ... |
fix the dram low addr defined in the soc.h header | #define SOC_IROM_HIGH 0x40400000
#define SOC_DROM_LOW 0x3F400000
#define SOC_DROM_HIGH 0x3F800000
-#define SOC_DRAM_LOW 0x3FAE0000
+#define SOC_DRAM_LOW 0x3FFAE000
#define SOC_DRAM_HIGH 0x40000000
#define SOC_RTC_IRAM_LOW 0x400C0000
#define SOC_RTC_IRAM_HIGH 0x400C2000
|
fix: User-Agent dynamically inserts username | @@ -37,7 +37,11 @@ reddit_adapter_init(struct reddit_adapter *adapter, struct logconf *config)
ua_easy_setopt(adapter->ua, adapter->p_client, &curl_setopt_cb);
- ua_reqheader_add(adapter->ua, "User-Agent", "orca:github.com/cee-studio/orca:v.0 (by /u/LucasMull)");
+ char auth[512];
+ snprintf(auth, sizeof(auth), "orca:g... |
Completions: Add suggestions for option `force` | @@ -106,6 +106,10 @@ function __fish_kdb_subcommand_supports_option_color -d 'Check if the current su
__fish_kdb_subcommand_does_not_include complete help list-tools qt-gui
end
+function __fish_kdb_subcommand_supports_option_force -d 'Check if the current subcommand supports the option force'
+ __fish_kdb_subcommand_in... |
Add instructions to install lcov for MacOS. | @@ -148,9 +148,10 @@ Vagrant.configure(2) do |config|
# Basic environment to build/test pgBackRest using homebrew installed in the local user account.
#-------------------------------------------------------------------------------------------------------------------------------
# mkdir ~/homebrew && curl -L https://gi... |
python3 eval_metrics bug fix | @@ -924,17 +924,20 @@ cdef class _CatBoost:
stagedPredictIterator.set_model(self.__model)
return stagedPredictIterator
- cpdef _base_eval_metrics(self, _PoolBase pool, metrics_description, int ntree_start, int ntree_end, int eval_period, int thread_count, str result_dir, str tmp_dir):
+ cpdef _base_eval_metrics(self, _... |
sysrepo BUGFIX check implemented modules revisions
... when installing a new module and do not allow
updating an existing module this way.
Fixes | @@ -960,10 +960,10 @@ sr_install_module(sr_conn_ctx_t *conn, const char *schema_path, const char *sear
{
sr_error_info_t *err_info = NULL;
struct ly_ctx *tmp_ly_ctx = NULL;
- const struct lys_module *ly_mod;
+ const struct lys_module *ly_mod, *ly_iter, *ly_iter2;
LYS_INFORMAT format;
char *mod_name = NULL;
- int i;
+ u... |
rainier: final fix for accel orientation.
Rainier has landscape orientation and last patch was 90 degrees off in
its base rotation value.
TEST=Flash ec on rainier and tilt device.
BRANCH=None | @@ -352,8 +352,8 @@ static struct bmi160_drv_data_t g_bmi160_data;
/* Matrix to rotate accelerometer into standard reference frame */
const matrix_3x3_t base_standard_ref = {
- { 0, FLOAT_TO_FP(-1), 0},
- { FLOAT_TO_FP(1), 0, 0},
+ { 0, FLOAT_TO_FP(1), 0},
+ { FLOAT_TO_FP(-1), 0, 0},
{ 0, 0, FLOAT_TO_FP(1)}
};
|
hv: remove unnecessary debug symbols
remove unnecessary debug symbols. | @@ -84,9 +84,7 @@ static void init_host_state(void)
uint64_t gdt_base;
uint64_t idt_base;
- pr_dbg("*********************");
pr_dbg("Initialize host state");
- pr_dbg("*********************");
/***************************************************
* 16 - Bit fields
@@ -241,9 +239,7 @@ static void init_exec_ctrl(struct ac... |
Move certain targets so they build when tests are disabled | @@ -281,9 +281,6 @@ target_include_directories(picohttp-core
picoquic)
set_picoquic_compile_settings(picohttp-core)
-include(CTest)
-
-if(BUILD_TESTING AND picoquic_BUILD_TESTS)
add_executable(picoquicdemo
picoquicfirst/picoquicdemo.c
picoquicfirst/getopt.c)
@@ -302,6 +299,10 @@ if(BUILD_TESTING AND picoquic_BUILD_TEST... |
remove hoverer after focus change | @@ -1264,15 +1264,19 @@ drawbar(Monitor *m)
} else {
drw_setscheme(drw, scheme[SchemeNorm]);
}
-
}
if (drw->scheme != scheme[SchemeNorm]) {
+ if (i != selmon->gesture - 1)
+ {
drw_text(drw, x, 0, w, bh, lrpad / 2, (showalttag ? tagsalt[i] : tags[i]), urg & 1 << i, 4);
+ } else {
+ drw_text(drw, x, 0, w, bh, lrpad / 2, ... |
We don't need to push the default font | @@ -1062,7 +1062,6 @@ static void compute_swapchain_display(struct swapchain_data *data)
ImGui::SetCurrentContext(data->imgui_context);
ImGui::NewFrame();
position_layer(data);
- ImGui::PushFont(font);
if (instance_data->params.font_size > 0 && instance_data->params.width == 280)
instance_data->params.width = hudFirstR... |
[flang-340559] Another flang test case that works with code object v5. This update changes the Makefile to use code object v5 | @@ -5,7 +5,7 @@ TESTSRC_AUX = main.f90
TESTSRC_MAIN = matrix.f90
TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX)
-FLANG = flang -DUSE_GPU
+FLANG = flang -DUSE_GPU -mcode-object-version=5
OMP_BIN = $(AOMP)/bin/$(FLANG)
CC = $(OMP_BIN) $(VERBOSE)
|
Add PKEY_CTX setter tests for TLS1-PRF
PKEY_CTX setters tests were previously present for HKDF and scrypt; this
patch also adds tests for the third currently supported KDF, TLS1-PRF. | #include <openssl/kdf.h>
#include "testutil.h"
+static int test_kdf_tls1_prf(void)
+{
+ EVP_PKEY_CTX *pctx;
+ unsigned char out[16];
+ size_t outlen = sizeof(out);
+ pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_TLS1_PRF, NULL);
+
+ if (EVP_PKEY_derive_init(pctx) <= 0) {
+ TEST_error("EVP_PKEY_derive_init");
+ return 0;
+ }
+ if... |
undo removing deprecated items | $Project: Schema File for Package Description File Format Specification
Package file name convention <vendor>.<name>.<version>.pack
- SchemaVersion=1.7.0
+ SchemaVersion=1.7.1
+
+ 08. November 2020: v1.7.1
+ - undo removing deprecated attributes as they are still used in latest pdsc file versions:
+ DeviceVendorEnum: L... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.