message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
Add md-nits task
Assumes that Ruby is installed | @@ -39,6 +39,10 @@ jobs:
run: make -s build_generated
- name: make doc-nits
run: make doc-nits
+ - name: make md-nits
+ run: |
+ sudo gem install mdl
+ make md-nits
# This checks that we use ANSI C language syntax and semantics.
# We are not as strict with libraries, but rather adapt to what's
|
There are now 22 refs in the test repo
We brought in an updated libgit2 whose test repo gained a ref. | @@ -87,7 +87,7 @@ class RepositoryTest < Rugged::TestCase
def test_return_all_ref_names
refs = @repo.ref_names
refs.each {|name| assert name.kind_of?(String)}
- assert_equal 21, refs.count
+ assert_equal 22, refs.count
end
def test_return_all_tags
|
When unit tests are executed with --debug, dump VCD waveform | @@ -28,7 +28,6 @@ import shutil
sys.path.insert(0, '..')
import test_harness
-DUMP_WAVEFORM = False
DRIVER_PATH = 'obj/driver.cpp'
DRIVER_SRC = '''
#include <iostream>
@@ -119,7 +118,7 @@ def run_unit_test(filename, _):
'--exe', DRIVER_PATH
]
- if DUMP_WAVEFORM:
+ if test_harness.DEBUG:
verilator_args.append('--trace')
try:
|
Geocoder tweak | @@ -190,10 +190,10 @@ namespace carto { namespace geocoding {
}
}
- sqlFilters.insert(sqlFilters.end(), sqlNullFilters.begin(), sqlNullFilters.end());
if (sqlFilters.empty()) {
- sqlFilters.push_back("1=1");
+ return;
}
+ sqlFilters.insert(sqlFilters.end(), sqlNullFilters.begin(), sqlNullFilters.end());
std::string sql = "SELECT rowid, housenums, name, country_id, region_id, county_id, locality_id, neighbourhood_id, street_id, postcode_id FROM entities WHERE ";
for (std::size_t i = 0; i < sqlFilters.size(); i++) {
|
common MAINTENANCE redundant condition | @@ -1831,7 +1831,7 @@ sr_create_module_imps_incs_r(const struct lys_module *ly_mod, const struct lysp_
}
/* store all includes */
- includes = (lysp_submod ? lysp_submod->includes : ly_mod->parsed->includes);
+ includes = ly_mod->parsed->includes;
LY_ARRAY_FOR(includes, u) {
if ((err_info = sr_store_module_file(ly_mod, includes[u].submodule))) {
return err_info;
|
mmx: fix some uses of CHAR_MIN instead of INT8_MIN | @@ -160,8 +160,8 @@ simde_mm_adds_pi8 (simde__m64 a, simde__m64 b) {
for (int i = 0 ; i < 8 ; i++) {
if ((((b.i8[i]) > 0) && ((a.i8[i]) > (INT8_MAX - (b.i8[i]))))) {
r.i8[i] = INT8_MAX;
- } else if ((((b.i8[i]) < 0) && ((a.i8[i]) < (CHAR_MIN - (b.i8[i]))))) {
- r.i8[i] = CHAR_MIN;
+ } else if ((((b.i8[i]) < 0) && ((a.i8[i]) < (INT8_MIN - (b.i8[i]))))) {
+ r.i8[i] = INT8_MIN;
} else {
r.i8[i] = (a.i8[i]) + (b.i8[i]);
}
@@ -645,8 +645,8 @@ simde_mm_packs_pi16 (simde__m64 a, simde__m64 b) {
SIMDE__VECTORIZE
for (size_t i = 0 ; i < (8 / sizeof(int16_t)) ; i++) {
- if (a.i16[i] < CHAR_MIN) {
- r.i8[i] = CHAR_MIN;
+ if (a.i16[i] < INT8_MIN) {
+ r.i8[i] = INT8_MIN;
} else if (a.i16[i] > INT8_MAX) {
r.i8[i] = INT8_MAX;
} else {
@@ -656,8 +656,8 @@ simde_mm_packs_pi16 (simde__m64 a, simde__m64 b) {
SIMDE__VECTORIZE
for (size_t i = 0 ; i < (8 / sizeof(int16_t)) ; i++) {
- if (b.i16[i] < CHAR_MIN) {
- r.i8[i + 4] = CHAR_MIN;
+ if (b.i16[i] < INT8_MIN) {
+ r.i8[i + 4] = INT8_MIN;
} else if (b.i16[i] > INT8_MAX) {
r.i8[i + 4] = INT8_MAX;
} else {
@@ -1432,8 +1432,8 @@ simde_mm_subs_pi8 (simde__m64 a, simde__m64 b) {
simde__m64 r;
SIMDE__VECTORIZE
for (size_t i = 0 ; i < (8) ; i++) {
- if (((b.i8[i]) > 0 && (a.i8[i]) < CHAR_MIN + (b.i8[i]))) {
- r.i8[i] = CHAR_MIN;
+ if (((b.i8[i]) > 0 && (a.i8[i]) < INT8_MIN + (b.i8[i]))) {
+ r.i8[i] = INT8_MIN;
} else if ((b.i8[i]) < 0 && (a.i8[i]) > INT8_MAX + (b.i8[i])) {
r.i8[i] = INT8_MAX;
} else {
|
zephyr: corsola: fix Kconfig typo
TEST=kingler boots
BRANCH=none
Tested-by: Eric Yilun Lin | @@ -17,7 +17,7 @@ config BOARD_KINGLER
config VARIANT_CORSOLA_DB_DETECTION
bool "Corsola Platform Runtime Daughter Board Detection"
depends on PLATFORM_EC_USB_PD_TCPC_RUNTIME_CONFIG
- depends on PLATFORM_EC_USB_PD_MUX_RUNTIME_CONFIG
+ depends on PLATFORM_EC_USB_MUX_RUNTIME_CONFIG
help
Daughter board detection for Type-C subboard or HDMI subboard. This
includes pin configuration and driver loading.
|
[catboost] Fix gpu tests after r5062463
Note: mandatory check (NEED_CHECK) was skipped | @@ -646,6 +646,7 @@ def test_logloss_with_not_binarized_target(boosting_type):
'-i': '10',
'-w': '0.03',
'-T': '4',
+ '--target-border': '0.5',
'-m': output_model_path,
}
fit_catboost_gpu(params)
@@ -670,6 +671,7 @@ def test_fold_len_mult():
'-w': '0.03',
'-T': '4',
'--fold-len-multiplier': 1.2,
+ '--target-border': '0.5',
'-m': output_model_path,
}
fit_catboost_gpu(params)
@@ -694,6 +696,7 @@ def test_random_strength():
'-w': '0.03',
'-T': '4',
'--random-strength': 122,
+ '--target-border': '0.5',
'-m': output_model_path,
}
fit_catboost_gpu(params)
@@ -2095,6 +2098,7 @@ def test_eval_result_on_different_pool_type():
'--cd', data_file('querywise', 'train.cd'),
'-i', '10',
'-T', '4',
+ '--target-border', '0.5',
'--eval-file', eval_path,
)
|
Updated function name to correct naming convention. | @@ -111,7 +111,7 @@ next_sector:
}
int
-fcb_getnext_nolock_sector(struct fcb *fcb, struct fcb_entry *loc)
+fcb_getnext_sector_nolock(struct fcb *fcb, struct fcb_entry *loc)
{
int rc;
@@ -176,7 +176,7 @@ fcb_getnext_sector(struct fcb *fcb, struct fcb_entry *loc)
if (rc && rc != OS_NOT_STARTED) {
return FCB_ERR_ARGS;
}
- rc = fcb_getnext_nolock_sector(fcb, loc);
+ rc = fcb_getnext_sector_nolock(fcb, loc);
os_mutex_release(&fcb->f_mtx);
return rc;
|
Don't call strsignal, just print the signal number.
The strsignal call is not supported by some machines, so avoid its use. | @@ -882,7 +882,6 @@ static void noteterm (int sig)
*/
static void spawn_loop(void)
{
- const char *signame;
pid_t *kidpids = NULL;
int status;
int procs = 0;
@@ -978,9 +977,7 @@ static void spawn_loop(void)
}
/* The loop above can only break on termsig */
- signame = strsignal(termsig);
- syslog(LOG_INFO, "terminating on signal: %s(%d)",
- signame ? signame : "", termsig);
+ syslog(LOG_INFO, "terminating on signal: %d", termsig);
killall(0, kidpids);
}
# endif
|
Fix implementation of HARD_BREAKPOINT | #if !defined(BUILD_RTM)
-inline void HARD_Breakpoint() { };
+inline void HARD_Breakpoint()
+{
+ __BKPT(0);
+ while(true) { /*nop*/ }
+};
-#define HARD_BREAKPOINT() HardFault_Handler()
+#define HARD_BREAKPOINT() HARD_Breakpoint()
// #if defined(_DEBUG)
// #define DEBUG_HARD_BREAKPOINT() HARD_Breakpoint()
|
Reading music bank correctly (was also banked) | #include "BankManager.h"
#include "gbt_player.h"
#include "data_ptrs.h"
+#include "BankData.h"
void MusicPlay(UBYTE index, UBYTE loop, UBYTE return_bank)
{
+ UBYTE music_bank = ReadBankedUBYTE(16, &music_banks[index]);
+
PUSH_BANK(return_bank);
- gbt_play(music_tracks[index], music_banks[index], 7);
+ gbt_play(music_tracks[index], music_bank, 7);
gbt_loop(loop);
+
POP_BANK;
}
|
Remove debugging line that snuck in. | @@ -76,7 +76,6 @@ int zmk_keymap_layer_deactivate(u8_t layer)
int zmk_keymap_position_state_changed(u32_t position, bool pressed)
{
- LOG_DBG("Searching %d layers for a binding", ZMK_KEYMAP_LAYERS_LEN);
for (int layer = ZMK_KEYMAP_LAYERS_LEN - 1; layer >= zmk_keymap_layer_default; layer--)
{
if ((zmk_keymap_layer_state & BIT(layer)) == BIT(layer) || layer == zmk_keymap_layer_default)
|
Guard against omp_get_num_places returning zero | @@ -232,11 +232,11 @@ int get_num_procs(void);
#else
int get_num_procs(void) {
static int nums = 0;
-
+ int ret;
#if defined(__GLIBC_PREREQ)
cpu_set_t cpuset,*cpusetp;
size_t size;
- int ret;
+
#if !__GLIBC_PREREQ(2, 7)
int i;
#if !__GLIBC_PREREQ(2, 6)
@@ -249,7 +249,8 @@ int get_num_procs(void) {
#if defined(USE_OPENMP)
#if _OPENMP >= 201511
- nums = omp_get_num_places();
+ ret = omp_get_num_places();
+ if (ret >0 ) nums = ret;
#endif
return nums;
#endif
@@ -1800,11 +1801,12 @@ int get_num_procs(void);
int get_num_procs(void) {
static int nums = 0;
+ int ret;
#if defined(__GLIBC_PREREQ)
cpu_set_t cpuset,*cpusetp;
size_t size;
- int ret;
+
#if !__GLIBC_PREREQ(2, 7)
int i;
#if !__GLIBC_PREREQ(2, 6)
@@ -1818,7 +1820,8 @@ int get_num_procs(void) {
#if defined(USE_OPENMP)
/* if (omp_get_proc_bind() != omp_proc_bind_false) */
#if _OPENMP >= 201511
- nums = omp_get_num_places();
+ ret = omp_get_num_places();
+ if (ret >0 ) nums = ret;
#endif
return nums;
#endif
|
apps/openssl: clean-up of unused fallback code
Remove code in help_main() that duplicates the case when 'openssl' is
called with no arguments, which is now handled in main(). | @@ -312,12 +312,6 @@ int help_main(int argc, char **argv)
DISPLAY_COLUMNS dc;
char *new_argv[3];
- if (argc == 0) {
- new_argv[0] = "help";
- new_argv[1] = NULL;
- return do_cmd(prog_init(), 1, new_argv);
- }
-
prog = opt_init(argc, argv, help_options);
while ((o = opt_next()) != OPT_hEOF) {
switch (o) {
|
external/mbedtls: Modify a typo of MBED_TIZENRT
Change MBED_TIZNERT to MBED_TIZENRT | @@ -330,7 +330,7 @@ static void sighandler( int signum )
void mbedtls_set_alarm( int seconds )
{
-#if !defined(MBED_TIZNERT)
+#if !defined(MBED_TIZENRT)
mbedtls_timing_alarmed = 0;
signal( SIGALRM, sighandler );
alarm( seconds );
|
[tb] Clean up alignment issues and unused code | @@ -277,7 +277,6 @@ module mempool_tb;
to_mempool_req.aw.id = 'h18d;
to_mempool_req.aw.addr = addr;
to_mempool_req.aw.len = '0;
- //to_mempool_req.aw.size = $clog2(AxiDataWidth/8);
to_mempool_req.aw.size = 'h2;
to_mempool_req.aw.burst = axi_pkg::BURST_INCR;
to_mempool_req.aw_valid = 1'b1;
@@ -368,24 +367,6 @@ module mempool_tb;
fetch_en = 1'b1;
end
- /*********
- * EOC *
- *********/
-
- localparam addr_t EOCAddress = 32'h4000_0000;
-
-// initial begin
-// while (1) begin
-// @(posedge clk); #TT;
-// if (eoc_valid) begin
-// // Finish simulation
-// $timeformat(-9, 2, " ns", 0);
-// $display("[EOC] Simulation ended at %t (retval = %0d).", $time, dut.i_ctrl_registers.eoc);
-// $finish(0);
-// end
-// end
-// end
-
/***********************
* L2 Initialization *
***********************/
|
Apply vdpm changes
vitasdk/vdpm#25 makes problems | set -e
curl -sL https://github.com/vitasdk/vdpm/raw/master/vdpm -o vdpm
chmod +x vdpm
-curl -L https://github.com/vitasdk/vdpm/raw/master/install-all.sh | bash > /dev/null
+curl -L https://github.com/vitasdk/vdpm/raw/master/include/install-packages.sh -o install-packages.sh
+sed -i "s/\.\.\///" install-packages.sh
+curl -L https://github.com/vitasdk/vdpm/raw/master/install-all.sh | sed -e "s/include\///" | bash > /dev/null
rm vdpm
|
Fixed redundant condition 'tkn!=NULL' warning [parser.c:1197]. | @@ -1194,7 +1194,7 @@ parse_specifier (GLogItem * logitem, char **str, const char *p, const char *end)
if (!(tkn = parse_string (&(*str), end, 1)))
tkn = alloc_string ("-");
- if (tkn != NULL && *tkn == '\0') {
+ if (*tkn == '\0') {
free (tkn);
tkn = alloc_string ("-");
}
|
Remove update of plugin.asc | @@ -3,8 +3,6 @@ Ethereum application Plugins : Technical Specifications
Ledger Firmware Team <[email protected]>
Specification version 1.0 - 24th of September 2020
-## 2.0
- - Add field in pluginSharedRO, breaking change.
## 1.0
- Initial release
|
CMake improvements | @@ -159,7 +159,7 @@ endif ()
#################################################
# SETTINGS FOR UNIX COMPILER
-if (${CMAKE_C_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_C_COMPILER_ID} MATCHES "AppleClang" OR ${CMAKE_C_COMPILER_ID} MATCHES "GNU")
+if (CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID MATCHES "AppleClang" OR CMAKE_C_COMPILER_ID MATCHES "GNU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -pedantic -Wall -Wextra")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c99 -pedantic -Wall -Wextra")
@@ -234,7 +234,7 @@ if (${CMAKE_C_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_C_COMPILER_ID} MATCHES "Ap
endif ()
# SETTINGS FOR VISUAL STUDIO COMPILER
-if ("x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC")
+if (CMAKE_C_COMPILER_ID MATCHES "MSVC")
if (CMAKE_C_FLAGS MATCHES "/W[0-4]")
string(REGEX REPLACE "/W[0-4]" "/W3" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
else ()
@@ -246,6 +246,8 @@ if ("x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC")
endif ()
endif ()
+message(STATUS "Compiler flags (CMAKE_C_FLAGS): ${CMAKE_C_FLAGS}")
+
#################################################
# INCLUDE SUBDIRS
|
Update state machine string in OTA demo | @@ -191,13 +191,15 @@ static BaseType_t prxCreateNetworkConnection( void )
static const char * pcStateStr[ eOTA_AgentState_Max ] =
{
+ "Init",
"Ready",
- "InSelfTest",
"RequestingJob",
- "ProcessingJob",
- "InitFileTransfer",
- "ReceivingFile",
- "CloseFile",
+ "WaitingForJob",
+ "CreatingFile",
+ "RequestingFileBlock",
+ "WaitingForFileBlock",
+ "InSelfTest",
+ "ClosingFile",
"ShuttingDown",
"Stopped"
};
|
[doc] add link to wiki in doc/outdated/ssl.txt | @@ -21,7 +21,10 @@ Module: core
Description
===========
-lighttpd supports SSLv2 and SSLv3 if it is compiled against openssl.
+lighttpd supports TLS with mod_openssl.
+
+The latest lighttpd SSL/TLS doc can be found at:
+https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_SSL
Configuration
-------------
@@ -32,11 +35,10 @@ certificate and have to enable the SSL engine.::
ssl.engine = "enable"
ssl.pemfile = "/path/to/server.pem"
-The HTTPS protocol does not allow you to use name-based virtual
-hosting with SSL. If you want to run multiple SSL servers with
-one lighttpd instance you must use IP-based virtual hosting: ::
+To enable SSL for a specific port, put the directives within a
+$SERVER["socket"] condition: ::
- $SERVER["socket"] == "10.0.0.1:443" {
+ $SERVER["socket"] == "*:443" {
ssl.engine = "enable"
ssl.pemfile = "www.example.org.pem"
server.name = "www.example.org"
@@ -45,11 +47,14 @@ one lighttpd instance you must use IP-based virtual hosting: ::
}
If you have a .crt and a .key file, cat them together into a
-single PEM file:
-::
+single PEM file: ::
$ cat host.key host.crt > host.pem
+or provide both ssl.pemfile and ssl.privkey directives: ::
+
+ ssl.pemfile = "host.crt"
+ ssl.privkey = "host.key"
Self-Signed Certificates
------------------------
|
Initialize LRU lists in domain of cache lines | @@ -867,63 +867,35 @@ void ocf_lru_dirty_cline(ocf_cache_t cache, struct ocf_part *part,
OCF_METADATA_LRU_WR_UNLOCK(cline);
}
-static ocf_cache_line_t next_phys_invalid(ocf_cache_t cache,
- ocf_cache_line_t phys)
-{
- ocf_cache_line_t lg;
- ocf_cache_line_t collision_table_entries =
- ocf_metadata_collision_table_entries(cache);
-
- if (phys == collision_table_entries)
- return collision_table_entries;
-
- lg = ocf_metadata_map_phy2lg(cache, phys);
- while (metadata_test_valid_any(cache, lg)) {
- ++phys;
-
- if (phys == collision_table_entries)
- break;
-
- lg = ocf_metadata_map_phy2lg(cache, phys);
- }
-
- return phys;
-}
-
/* put invalid cachelines on freelist partition lru list */
void ocf_lru_populate(ocf_cache_t cache, ocf_cache_line_t num_free_clines)
{
- ocf_cache_line_t phys, cline;
- ocf_cache_line_t collision_table_entries =
- ocf_metadata_collision_table_entries(cache);
+ ocf_cache_line_t cnt, cline;
+ ocf_cache_line_t entries = ocf_metadata_collision_table_entries(cache);
struct ocf_lru_list *list;
unsigned lru_list;
- unsigned i;
unsigned step = 0;
- phys = 0;
- for (i = 0; i < num_free_clines; i++) {
- /* find first invalid cacheline */
- phys = next_phys_invalid(cache, phys);
- ENV_BUG_ON(phys == collision_table_entries);
- cline = ocf_metadata_map_phy2lg(cache, phys);
- ++phys;
+ cnt = 0;
+ for (cline = 0; cline < entries; cline++) {
+ OCF_COND_RESCHED_DEFAULT(step);
+
+ if (metadata_test_valid_any(cache, cline))
+ continue;
ocf_metadata_set_partition_id(cache, cline, PARTITION_FREELIST);
lru_list = (cline % OCF_NUM_LRU_LISTS);
list = ocf_lru_get_list(&cache->free, lru_list, true);
- add_lru_head(cache, list, cline);
+ add_lru_head_nobalance(cache, list, cline);
- OCF_COND_RESCHED_DEFAULT(step);
+ cnt++;
}
- /* we should have reached the last invalid cache line */
- phys = next_phys_invalid(cache, phys);
- ENV_BUG_ON(phys != collision_table_entries);
+ ENV_BUG_ON(cnt != num_free_clines);
- env_atomic_set(&cache->free.runtime->curr_size, i);
+ env_atomic_set(&cache->free.runtime->curr_size, cnt);
}
static bool _is_cache_line_acting(struct ocf_cache *cache,
|
Fixed segfault with empty routes array. | @@ -616,14 +616,13 @@ nxt_http_route_find(nxt_http_routes_t *routes, nxt_str_t *name)
route = &routes->route[0];
end = route + routes->items;
- do {
+ while (route < end) {
if (nxt_strstr_eq(&(*route)->name, name)) {
return *route;
}
route++;
-
- } while (route < end);
+ }
return NULL;
}
@@ -681,12 +680,11 @@ nxt_http_routes_cleanup(nxt_task_t *task, nxt_http_routes_t *routes)
route = &routes->route[0];
end = route + routes->items;
- do {
+ while (route < end) {
nxt_http_route_cleanup(task, *route);
route++;
-
- } while (route < end);
+ }
}
}
@@ -699,12 +697,11 @@ nxt_http_route_cleanup(nxt_task_t *task, nxt_http_route_t *route)
match = &route->match[0];
end = match + route->items;
- do {
+ while (match < end) {
nxt_http_pass_cleanup(task, &(*match)->pass);
match++;
-
- } while (match < end);
+ }
}
|
path: string format fix | @@ -219,7 +219,7 @@ static int validatePermission (Key * key, Key * parentKey)
if (isError)
{
- ELEKTRA_SET_ERRORF (207, parentKey, "User %s does not have [%cd s] permission on %s", name, lastCharDel (errorMessage),
+ ELEKTRA_SET_ERRORF (207, parentKey, "User %s does not have [%s] permission on %s", name, lastCharDel (errorMessage),
validPath);
return -1;
}
|
version T13.841: changed Makefile to produce single program xdag | -# cheatcoin: Makefile; T13.656-T13.816; $DVS:time$
+# cheatcoin: Makefile; T13.656-T13.841; $DVS:time$
dnet = ../dnet
dfstools = ../dus/programs/dfstools/source
@@ -84,13 +84,10 @@ flags = -std=gnu11 -O3 -DDFSTOOLS -DCHEATCOIN -DNDEBUG -g -lpthread -lcrypto -lm
all: xdag
xdag: $(sources) $(headers) Makefile
- gcc -o xdag $(sources) $(flags)
-
-xdagfast:
- gcc -o xdagfast $(sources) -DSHA256_USE_OPENSSL_TXFM $(flags)
+ gcc -o xdag $(sources) -DSHA256_USE_OPENSSL_TXFM $(flags)
clean:
- rm xdag xdagfast
+ rm xdag
install: xdag
sudo cp xdag /usr/local/bin/xdag
|
Correction of an error in the test to update the vector w for solving a nonconvex problem. | @@ -1225,7 +1225,7 @@ void gfc3d_IPM(GlobalFrictionContactProblem* restrict problem, double* restrict
/** Correction of w to take into account the dependence
on the tangential velocity */
- if (options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_UPDATE_S] == 0)
+ if (options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_UPDATE_S] == 1)
{
printf("update w\n");
for(unsigned int i = 0; i < nd; ++ i)
@@ -1668,7 +1668,7 @@ void gfc3d_ipm_set_default(SolverOptions* options)
options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_GET_PROBLEM_INFO] = SICONOS_FRICTION_3D_IPM_GET_PROBLEM_INFO_NO;
- options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_UPDATE_S] = 1;
+ options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_UPDATE_S] = 0;
options->iparam[SICONOS_FRICTION_3D_IPM_IPARAM_NESTEROV_TODD_SCALING] = 1;
|
Tidy up attribute prefix bindings on error (fixes | @@ -2529,8 +2529,10 @@ doContent(XML_Parser parser,
return XML_ERROR_NO_MEMORY;
poolFinish(&tempPool);
result = storeAtts(parser, enc, s, &name, &bindings);
- if (result)
+ if (result != XML_ERROR_NONE) {
+ freeBindings(parser, bindings);
return result;
+ }
poolFinish(&tempPool);
if (startElementHandler) {
startElementHandler(handlerArg, name.str, (const XML_Char **)atts);
|
luke: remove non-preloaded searchers correctly for Lua 5.3 too. | ]]
-package.loaders = {package.loaders[1]} -- everything is preloaded
+-- Everything is preloaded.
+package.searchers = package.searchers or package.loaders
+for i = 2, #package.searchers do
+ package.searchers[i] = nil
+end
|
bin2c: check fread explicit against expected value | @@ -60,7 +60,7 @@ main (int argc, char *argv[]) {
return -1;
}
- if (fread (buf, file_size, 1, f_input) == 0) {
+ if (fread (buf, file_size, 1, f_input) != 1) {
fprintf (stderr, "%s: can't read from %s\n", argv[0], argv[1]);
free (buf);
fclose (f_input);
|
Server Stateless Retry packet cannot contain ACK and PADDING frames | @@ -2189,7 +2189,9 @@ static int conn_recv_handshake_pkt(ngtcp2_conn *conn, const uint8_t *pkt,
switch (fr.type) {
case NGTCP2_FRAME_ACK:
- if (hd.type == NGTCP2_PKT_CLIENT_INITIAL) {
+ switch (hd.type) {
+ case NGTCP2_PKT_CLIENT_INITIAL:
+ case NGTCP2_PKT_SERVER_STATELESS_RETRY:
return NGTCP2_ERR_PROTO;
}
/* TODO Assume that all packets here are unprotected */
@@ -2199,6 +2201,9 @@ static int conn_recv_handshake_pkt(ngtcp2_conn *conn, const uint8_t *pkt,
}
continue;
case NGTCP2_FRAME_PADDING:
+ if (hd.type == NGTCP2_PKT_SERVER_STATELESS_RETRY) {
+ return NGTCP2_ERR_PROTO;
+ }
continue;
case NGTCP2_FRAME_STREAM:
require_ack = 1;
|
options/ansi: Implement mbsrtowcs() | @@ -12,6 +12,7 @@ namespace {
// mbsrtowcs() and wcsrtombs() have an internal state.
__mlibc_mbstate mbrlen_state = __MLIBC_MBSTATE_INITIALIZER;
__mlibc_mbstate mbrtowc_state = __MLIBC_MBSTATE_INITIALIZER;
+ __mlibc_mbstate mbsrtowcs_state = __MLIBC_MBSTATE_INITIALIZER;
}
wint_t btowc(int c) {
@@ -84,9 +85,35 @@ size_t mbrtowc(wchar_t *wcp, const char *mbs, size_t mb_limit, mbstate_t *stp) {
size_t wcrtomb(char *__restrict, wchar_t, mbstate_t *__restrict)
MLIBC_STUB_BODY
-size_t mbsrtowcs(wchar_t *__restrict wcs, const char **__restrict mbs,
- size_t max_wcs, mbstate_t *__restrict)
- MLIBC_STUB_BODY
+size_t mbsrtowcs(wchar_t *wcs, const char **mbsp, size_t wc_limit, mbstate_t *stp) {
+ __ensure(mbsp);
+
+ auto cc = mlibc::current_charcode();
+ __mlibc_mbstate st = __MLIBC_MBSTATE_INITIALIZER;
+ mlibc::code_seq<const char> nseq{*mbsp, nullptr};
+ mlibc::code_seq<wchar_t> wseq{wcs, wcs + wc_limit};
+
+ if(!stp)
+ stp = &mbsrtowcs_state;
+
+ if(!wcs) {
+ size_t size;
+ if(auto e = cc->decode_wtranscode_length(nseq, &size, st); e != mlibc::charcode_error::null)
+ __ensure(!"decode_wtranscode() errors are not handled");
+ return size;
+ }
+
+ if(auto e = cc->decode_wtranscode(nseq, wseq, st); e != mlibc::charcode_error::null) {
+ __ensure(!"decode_wtranscode() errors are not handled");
+ __builtin_unreachable();
+ }else{
+ size_t n = wseq.it - wcs;
+ if(n < wc_limit) // Null-terminate resulting wide string.
+ wcs[n] = 0;
+ *mbsp = nullptr;
+ return n;
+ }
+}
size_t wcsrtombs(char *mbs, const wchar_t **wcsp, size_t mb_limit, mbstate_t *stp) {
__ensure(wcsp && "wcsrtombs() with null input");
|
x86: Fix build
We should include <sys/syscall.h> for SYS_rt_sigreturn in x86/Gos-linux.c | @@ -26,6 +26,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "unwind_i.h"
#include "offsets.h"
+#include <sys/syscall.h>
+
PROTECTED int
unw_is_signal_frame (unw_cursor_t *cursor)
{
|
links: enforce valid URI on render
Fixes urbit/landscape#280 | @@ -67,6 +67,7 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
const size = node.children ? node.children.size : 0;
const contents = node.post.contents;
const hostname = URLparser.exec(contents[1].url) ? URLparser.exec(contents[1].url)[4] : null;
+ const href = URLparser.exec(contents[1].url) ? contents[1].url : `http://${contents[1].url}`
const baseUrl = props.baseUrl || `/~404/${resource}`;
@@ -120,7 +121,7 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
<RemoteContent
ref={r => { remoteRef.current = r }}
renderUrl={false}
- url={contents[1].url}
+ url={href}
text={contents[0].text}
unfold={true}
onLoad={onMeasure}
@@ -145,7 +146,7 @@ export const LinkItem = (props: LinkItemProps): ReactElement => {
}}
/>
<Text color="gray" p={2} flexShrink={0}>
- <Anchor target="_blank" rel="noopener noreferrer" style={{ textDecoration: 'none' }} href={contents[1].url}>
+ <Anchor target="_blank" rel="noopener noreferrer" style={{ textDecoration: 'none' }} href={href}>
<Box display='flex'>
<Icon icon='ArrowExternal' mr={1} />{hostname}
</Box>
|
[persistence] refactored the drop_if_empty in item apply functions. | @@ -10397,7 +10397,7 @@ item_apply_list_elem_delete(void *engine, hash_item *it,
ret = ENGINE_FAILED; break;
}
- if (info->ccnt == 0 && drop_if_empty) {
+ if (drop_if_empty && info->ccnt == 0) {
do_item_unlink(it, ITEM_UNLINK_NORMAL);
}
} while(0);
@@ -10454,7 +10454,8 @@ item_apply_set_elem_insert(void *engine, hash_item *it, const char *value, const
}
ENGINE_ERROR_CODE
-item_apply_set_elem_delete(void *engine, hash_item *it, const char *value, const uint32_t nbytes,
+item_apply_set_elem_delete(void *engine, hash_item *it,
+ const char *value, const uint32_t nbytes,
const bool drop_if_empty)
{
const char *key = item_get_key(it);
@@ -10481,7 +10482,7 @@ item_apply_set_elem_delete(void *engine, hash_item *it, const char *value, const
break;
}
- if (info->ccnt == 0 && drop_if_empty) {
+ if (drop_if_empty && info->ccnt == 0) {
do_item_unlink(it, ITEM_UNLINK_NORMAL);
}
} while(0);
@@ -10541,7 +10542,8 @@ item_apply_map_elem_insert(void *engine, hash_item *it,
ENGINE_ERROR_CODE
item_apply_map_elem_delete(void *engine, hash_item *it,
- const char *field, const uint32_t nfield, const bool drop_if_empty)
+ const char *field, const uint32_t nfield,
+ const bool drop_if_empty)
{
const char *key = item_get_key(it);
map_meta_info *info;
@@ -10579,7 +10581,7 @@ item_apply_map_elem_delete(void *engine, hash_item *it,
ret = ENGINE_FAILED; break;
}
- if (info->ccnt == 0 && drop_if_empty) {
+ if (drop_if_empty && info->ccnt == 0) {
do_item_unlink(it, ITEM_UNLINK_NORMAL);
}
} while(0);
@@ -10692,7 +10694,7 @@ item_apply_btree_elem_delete(void *engine, hash_item *it,
ret = ENGINE_FAILED; break;
}
- if (info->ccnt == 0 && drop_if_empty) {
+ if (drop_if_empty && info->ccnt == 0) {
do_item_unlink(it, ITEM_UNLINK_NORMAL);
}
} while(0);
@@ -10754,7 +10756,7 @@ item_apply_btree_elem_delete_logical(void *engine, hash_item *it,
ret = ENGINE_FAILED; break;
}
- if (info->ccnt == 0 && drop_if_empty) {
+ if (drop_if_empty && info->ccnt == 0) {
do_item_unlink(it, ITEM_UNLINK_NORMAL);
}
} while(0);
|
ks: Simplify ksNew(0, KS_END) | @@ -252,14 +252,10 @@ KeySet * ksVNew (size_t alloc, va_list va)
/*errno = KDB_ERR_NOMEM;*/
return 0;
}
+
ksInit (keyset);
- if (alloc == 0)
- {
- keyset->alloc = alloc;
- keyset->array = 0;
- return keyset;
- }
+ if (alloc == 0) return keyset;
alloc++; /* for ending null byte */
if (alloc < KEYSET_SIZE)
|
Eliminate use of deprecated imp module. | @@ -9,7 +9,7 @@ import math
import signal
import threading
import atexit
-import imp
+import types
import re
import pprint
import time
@@ -30,7 +30,6 @@ _py_soext = '.so'
_py_dylib = ''
try:
- import imp
import sysconfig
import distutils.sysconfig
@@ -1412,7 +1411,7 @@ class ApplicationHandler(object):
self.target = entry_point
elif application_type != 'static':
- self.module = imp.new_module('__wsgi__')
+ self.module = types.ModuleType('__wsgi__')
self.module.__file__ = entry_point
with open(entry_point, 'r') as fp:
@@ -1521,7 +1520,7 @@ class ResourceHandler(object):
for extension, script in resources:
extension_name = re.sub(r'[^\w]{1}', '_', extension)
module_name = '__wsgi_resource%s__' % extension_name
- module = imp.new_module(module_name)
+ module = types.ModuleType(module_name)
module.__file__ = script
with open(script, 'r') as fp:
|
Add description in X509_STORE manipulation
Add memory management description in X509_STORE_add_cert, otherwise
users will not be aware that they are leaking memory... | @@ -55,7 +55,9 @@ operate on pointers to B<X509> objects, though.
X509_STORE_add_cert() and X509_STORE_add_crl() add the respective object
to the B<X509_STORE>'s local storage. Untrusted objects should not be
-added in this way.
+added in this way. The added object's reference count is incremented by one,
+hence the caller retains ownership of the object and needs to free it when it
+is no longer needed.
X509_STORE_set_depth(), X509_STORE_set_flags(), X509_STORE_set_purpose(),
X509_STORE_set_trust(), and X509_STORE_set1_param() set the default values
@@ -90,7 +92,7 @@ L<X509_STORE_get0_param(3)>
=head1 COPYRIGHT
-Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
+Copyright 2017-2019 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use
this file except in compliance with the License. You can obtain a copy
|
Fix retry protection key | @@ -79,13 +79,13 @@ const picoquic_version_parameters_t picoquic_supported_versions[] = {
{ PICOQUIC_V1_VERSION,
sizeof(picoquic_cleartext_v1_salt),
picoquic_cleartext_v1_salt,
- sizeof(picoquic_cleartext_v1_salt),
- picoquic_cleartext_v1_salt },
+ sizeof(picoquic_retry_protection_v1),
+ picoquic_retry_protection_v1 },
{ PICOQUIC_TWENTYFIRST_INTEROP_VERSION,
sizeof(picoquic_cleartext_v1_salt),
picoquic_cleartext_v1_salt,
- sizeof(picoquic_cleartext_v1_salt),
- picoquic_cleartext_v1_salt },
+ sizeof(picoquic_retry_protection_v1),
+ picoquic_retry_protection_v1 },
{ PICOQUIC_TWENTIETH_INTEROP_VERSION,
sizeof(picoquic_cleartext_draft_29_salt),
picoquic_cleartext_draft_29_salt,
|
revert change from yesterday setting compiler for OSX | @@ -302,10 +302,6 @@ function initialize_build_visit()
# See issue #1499 (https://visitbugs.ornl.gov/issues/1499)
# use gcc for 10.9 & earlier
- export C_COMPILER=${C_COMPILER:-"gcc"}
- export CXX_COMPILER=${CXX_COMPILER:-"g++"}
- export FC_COMPILER=${FC_COMPILER:-$GFORTRAN}
-
if [[ ${VER%%.*} < 8 ]] ; then
export MACOSX_DEPLOYMENT_TARGET=10.3
@@ -345,6 +341,9 @@ function initialize_build_visit()
export CXX_COMPILER=${CXX_COMPILER:-"clang++"}
fi
+ export C_COMPILER=${C_COMPILER:-"gcc"}
+ export CXX_COMPILER=${CXX_COMPILER:-"g++"}
+ export FC_COMPILER=${FC_COMPILER:-$GFORTRAN}
export C_OPT_FLAGS=${C_OPT_FLAGS:-"-O2"}
export CFLAGS=${CFLAGS:-"-fno-common -fexceptions"}
export CXX_OPT_FLAGS=${CXX_OPT_FLAGS:-"-O2"}
|
pybricks.experimental.restore_firmware: Require USB.
USB power is required to keep the hub on during the final
stage of the firmware update process.
Fixes | @@ -534,11 +534,11 @@ pbio_error_t pb_flash_restore_firmware(void) {
return PBIO_ERROR_INVALID_OP;
}
- // Check that the hub is plugged in and charging.
- if (pbdrv_charger_get_status() != PBDRV_CHARGER_STATUS_CHARGE) {
- mp_printf(&mp_plat_print, "Please connect the hub via USB.\n");
- // TODO: Stop here once charging is fully implemented.
- // return PBIO_ERROR_FAILED;
+ // Check that usb is plugged in.
+ pbdrv_charger_status_t status = pbdrv_charger_get_status();
+ if (status != PBDRV_CHARGER_STATUS_CHARGE && status != PBDRV_CHARGER_STATUS_COMPLETE) {
+ mp_printf(&mp_plat_print, "Please connect the hub via USB and try again.\n");
+ return PBIO_SUCCESS;
}
mp_printf(&mp_plat_print, "Checking firmware backup files.\n");
@@ -602,6 +602,13 @@ pbio_error_t pb_flash_restore_firmware(void) {
MICROPY_EVENT_POLL_HOOK;
}
+ // Check that usb is plugged in.
+ status = pbdrv_charger_get_status();
+ if (status != PBDRV_CHARGER_STATUS_CHARGE && status != PBDRV_CHARGER_STATUS_COMPLETE) {
+ mp_printf(&mp_plat_print, "Please connect the hub via USB and try again.\n");
+ return PBIO_SUCCESS;
+ }
+
mp_printf(&mp_plat_print, "Restoring firmware...\n");
// Open firmware file
|
make convolutions more flexible | /* Copyright 2014. The Regents of the University of California.
+ * Copyright 2017. Martin Uecker.
* All rights reserved. Use of this source code is governed by
* a BSD-style license which can be found in the LICENSE file.
*
* Authors:
- * 2012-10-28 Martin Uecker [email protected]
+ * 2012, 2017 Martin Uecker <[email protected]>
*/
#include <complex.h>
@@ -127,11 +128,11 @@ struct conv_plan* conv_plan(int N, unsigned int flags, enum conv_type ctype, enu
// X X 1
// X 1 X
// X 1 1 (inefficient)
- // 1 X X (or only for adjoint?)
+ // 1 X X
- // for now:
- assert((1 == idims1[i]) || (idims1[i] == odims[i]));
- assert((1 == idims2[i]) || (idims2[i] == odims[i]));
+ assert((1 == idims1[i]) || (idims1[i] == odims[i]) || (idims1[i] == idims2[i]));
+ assert((1 == idims2[i]) || (idims2[i] == odims[i]) || (idims2[i] == idims1[i]));
+ assert((1 == odims[i]) || (idims2[i] == odims[i]) || (idims1[i] == odims[i]));
plan->dims1[i] = idims1[i];
plan->dims2[i] = odims[i];
@@ -213,7 +214,9 @@ static void conv_cyclic(struct conv_plan* plan, complex float* dst, const comple
// FIXME: optimize tmp away when possible
complex float* tmp = md_alloc_sameplace(plan->N, plan->dims1, CFL_SIZE, plan->kernel);
ifft(plan->N, plan->dims1, plan->flags, tmp, src1);
- md_zmul2(plan->N, plan->dims, plan->str2, dst, plan->str1, tmp, plan->kstr, plan->kernel);
+ md_clear(plan->N, plan->dims2, dst, CFL_SIZE);
+ md_zfmac2(plan->N, plan->dims, plan->str2, dst, plan->str1, tmp, plan->kstr, plan->kernel);
+ // md_zmul2(plan->N, plan->dims, plan->str2, dst, plan->str1, tmp, plan->kstr, plan->kernel);
fft(plan->N, plan->dims2, plan->flags, dst, dst);
md_free(tmp);
}
|
Array: Simplify `elektraArrayValidateName` | */
int elektraArrayValidateName (const Key * key)
{
- if (!key)
- {
- return -1;
- }
-
- const char * current = keyBaseName (key);
-
- if (!current)
- {
- return -1;
- }
-
- if (!strcmp (current, "#"))
- {
- return 0;
- }
+ const char * current;
+ if (!key || !(current = keyBaseName (key)) || *current != '#') return -1;
+ if (!strcmp (current, "#")) return 0;
- if (*current == '#')
- {
current++;
int underscores = 0;
int digits = 0;
- for (; *current == '_'; current++)
+ while (*current == '_')
{
+ current++;
underscores++;
}
- for (; isdigit ((unsigned char)*current); current++)
+ while (isdigit ((unsigned char)*current))
{
+ current++;
digits++;
}
@@ -70,11 +57,6 @@ int elektraArrayValidateName (const Key * key)
{
return -1;
}
- }
- else
- {
- return -1;
- }
return 1;
}
|
BugID:15136123:[WhiteScan] uninitialized remoteipaddr type | @@ -568,7 +568,7 @@ static err_t salnetconn_delete(sal_netconn_t *conn)
static err_t salnetconn_connect(sal_netconn_t *conn, int8_t *addr, u16_t port)
{
sal_conn_t statconn = {0};
- ip_addr_t remoteipaddr;
+ ip_addr_t remoteipaddr = {0};
#if SAL_PACKET_SEND_MODE_ASYNC
struct sal_sock *sock;
#endif
|
os_cputime: Minor comment fix | @@ -88,9 +88,9 @@ extern struct os_cputime_data g_os_cputime;
#define CPUTIME_LT(__t1, __t2) ((int32_t) ((__t1) - (__t2)) < 0)
/** evaluates to true if t1 is after t2 in time */
#define CPUTIME_GT(__t1, __t2) ((int32_t) ((__t1) - (__t2)) > 0)
-/** evaluates to true if t1 is after t2 in time */
-#define CPUTIME_GEQ(__t1, __t2) ((int32_t) ((__t1) - (__t2)) >= 0)
/** evaluates to true if t1 is on or after t2 in time */
+#define CPUTIME_GEQ(__t1, __t2) ((int32_t) ((__t1) - (__t2)) >= 0)
+/** evaluates to true if t1 is on or before t2 in time */
#define CPUTIME_LEQ(__t1, __t2) ((int32_t) ((__t1) - (__t2)) <= 0)
/**
|
ip6-nd: correct set-ip6-nd-proxy CLI short_help
Type: fix | @@ -113,7 +113,7 @@ set_ip6_nd_proxy_cmd (vlib_main_t * vm,
VLIB_CLI_COMMAND (set_ip6_nd_proxy_command, static) =
{
.path = "set ip6 nd proxy",
- .short_help = "set ip6 nd proxy <HOST> <INTERFACE>",
+ .short_help = "set ip6 nd proxy <interface> [del] <host-ip>",
.function = set_ip6_nd_proxy_cmd,
};
/* *INDENT-ON* */
|
asurada: do not set PPC Vconn in board hook
PPC Vconn control should have been handled in the set_vconn.
TEST=Vconn is still sourcing on asurada
BRANCH=none | @@ -475,12 +475,10 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
void board_pd_vconn_ctrl(int port, enum usbpd_cc_pin cc_pin, int enabled)
{
/*
- * We ignore the cc_pin because the polarity should already be set
- * correctly in the PPC driver via the pd state machine.
+ * We ignore the cc_pin and PPC vconn because polarity and PPC vconn
+ * should already be set correctly in the PPC driver via the pd
+ * state machine.
*/
- if (ppc_set_vconn(port, enabled) != EC_SUCCESS)
- cprints(CC_USBPD, "C%d: Failed %sabling vconn",
- port, enabled ? "en" : "dis");
}
/* Called on AP S3 -> S0 transition */
|
Update: Config.h: Less concepts can be matched per cycle, it doesn't affect the capability, wonderful | //Occurrence time distance in which case event belief is preferred over eternal
#define EVENT_BELIEF_DISTANCE 20
//Amount of belief concepts to select to be matched to the selected event
-#define BELIEF_CONCEPT_MATCH_TARGET 160
+#define BELIEF_CONCEPT_MATCH_TARGET 80
//Adaptation speed of the concept priority threshold to meet the match target
#define CONCEPT_THRESHOLD_ADAPTATION 0.000001
//Usage boost for input
|
Work CI-CD
Add missing parameter to yaml template.
***NO_CI*** | @@ -627,6 +627,8 @@ jobs:
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
- template: azure-pipelines-templates/download-install-esp32-build-components.yml
- template: azure-pipelines-templates/download-install-ninja.yml
+ parameters:
+ repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
- template: azure-pipelines-templates/build-esp32.yml
- task: CopyFiles@1
|
Add legacy behavior for finding Python | @@ -1402,14 +1402,17 @@ if(${TINYSPLINE_BINDING_REQUESTED})
# Python
if(${TINYSPLINE_ENABLE_PYTHON})
- if(${TINYSPLINE_PYTHON_VERSION} STREQUAL "2")
- # Map legacy variables.
- if(DEFINED PYTHON_INCLUDE_DIR)
- set(Python2_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR})
- endif()
- if(DEFINED PYTHON_LIBRARY)
- set(Python2_LIBRARIES ${PYTHON_LIBRARY})
+ if(DEFINED PYTHON_INCLUDE_DIR OR DEFINED PYTHON_LIBRARY)
+ # Legacy behavior.
+ find_package(PythonLibs REQUIRED)
+ set(TINYSPLINE_PYTHON_FOUND ${PYTHONLIBS_FOUND})
+ set(TINYSPLINE_PYTHON_VERSION_STRING ${PYTHONLIBS_VERSION_STRING})
+ set(TINYSPLINE_PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
+ set(TINYSPLINE_PYTHON_LIBRARIES ${PYTHON_LIBRARIES})
+ if(${PYTHONLIBS_VERSION_STRING} MATCHES "^3.")
+ set(TINYSPLINE_PYTHON_DEFINES "-py3")
endif()
+ elseif(${TINYSPLINE_PYTHON_VERSION} STREQUAL "2")
find_package(Python2 REQUIRED
COMPONENTS Interpreter Development
)
@@ -1418,13 +1421,6 @@ if(${TINYSPLINE_BINDING_REQUESTED})
set(TINYSPLINE_PYTHON_INCLUDE_DIRS ${Python2_INCLUDE_DIRS})
set(TINYSPLINE_PYTHON_LIBRARIES ${Python2_LIBRARIES})
elseif(${TINYSPLINE_PYTHON_VERSION} STREQUAL "3")
- # Map legacy variables.
- if(DEFINED PYTHON_INCLUDE_DIR)
- set(Python3_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR})
- endif()
- if(DEFINED PYTHON_LIBRARY)
- set(Python3_LIBRARIES ${PYTHON_LIBRARY})
- endif()
find_package(Python3 REQUIRED
COMPONENTS Interpreter Development
)
@@ -1434,13 +1430,6 @@ if(${TINYSPLINE_BINDING_REQUESTED})
set(TINYSPLINE_PYTHON_LIBRARIES ${Python3_LIBRARIES})
set(TINYSPLINE_PYTHON_DEFINES "-py3")
elseif(${TINYSPLINE_PYTHON_VERSION} STREQUAL "ANY")
- # Map legacy variables.
- if(DEFINED PYTHON_INCLUDE_DIR)
- set(Python_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR})
- endif()
- if(DEFINED PYTHON_LIBRARY)
- set(Python_LIBRARIES ${PYTHON_LIBRARY})
- endif()
find_package(Python REQUIRED
COMPONENTS Interpreter Development
)
|
Print message on unexpected non-drop | @@ -232,10 +232,16 @@ void check_egress_port(fake_cmd_t cmd, int egress_port, LCPARAMS) {
}
if (lcdata->pkt_idx != last_error_pkt_idx) {
+ if (cmd.out_port == DROP) {
+ debug(" " T4LIT(!!,error) " " T4LIT(Packet #%d,packet) "@" T4LIT(core%d,core) ": expected to drop the packet, but got egress port " T4LIT(%d%s,error) "\n",
+ lcdata->pkt_idx + 1, rte_lcore_id(),
+ egress_port, port_designation_egress);
+ } else {
debug(" " T4LIT(!!,error) " " T4LIT(Packet #%d,packet) "@" T4LIT(core%d,core) ": expected egress port is " T4LIT(%d%s,expected) ", got " T4LIT(%d%s,error) "\n",
lcdata->pkt_idx + 1, rte_lcore_id(),
cmd.out_port, port_designation_cmd,
egress_port, port_designation_egress);
+ }
error_encountered(LCPARAMS_IN);
}
|
Fix: Incorrect bounds in scaling and shifting coeffs | @@ -1374,10 +1374,10 @@ bool colour_scc(int scc_id, int *colour, int c, int stmt_pos, int pv, PlutoProg
return true;
}
- stmt_id = sccs[scc_id].vertices[stmt_pos];
if (options->scc_cluster) {
fcg_offset = ddg->sccs[scc_id].fcg_scc_offset;
} else {
+ stmt_id = sccs[scc_id].vertices[stmt_pos];
fcg_offset = ddg->vertices[stmt_id].fcg_stmt_offset;
}
@@ -1835,18 +1835,18 @@ void add_coeff_constraints_from_scc_clustered_fcg_colouring (PlutoConstraints *c
scc_offset = 0;
for (j=0;j<num_sccs; j++) {
- for (k=0; k<ddg->sccs[j].max_dim; k++) {
for (i=0;i<ddg->sccs[j].size; i++) {
stmt_id = ddg->sccs[j].vertices[i];
+ for (k=0; k<ddg->sccs[j].max_dim; k++) {
if (colour[scc_offset+k]==c && stmts[stmt_id]->is_orig_loop[k]) {
pluto_constraints_add_lb(coeffcst,npar+1+stmt_id*(nvar+1)+k,1);
} else {
pluto_constraints_add_equality(coeffcst);
- coeffcst->val[coeffcst->nrows-1][npar+1+j*(stmt_id+1)+k] = 1;
+ coeffcst->val[coeffcst->nrows-1][npar+1+stmt_id*(nvar+1)+k] = 1;
}
}
}
- scc_offset += k;
+ scc_offset += ddg->sccs[j].max_dim;
}
}
|
Don't show close button on REPL | @@ -184,7 +184,9 @@ class ConsoleViewController: UIViewController, UITextViewDelegate, InputAssistan
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
+ if !(self is REPLViewController) {
navigationItem.rightBarButtonItems = [UIBarButtonItem(barButtonSystemItem: .stop, target: self, action: #selector(close))]
+ }
navigationController?.view.backgroundColor = .white
navigationController?.navigationBar.shadowImage = UIImage()
}
|
Documentation: clean-up of isolated README.rst files
Clean up of a couple of README.rst files located respectively under hypervisor/
and devicemodel/ to remove obsolete and unmaintained information. Both hold a
basic introduction about the folder content and refer to the official
documentation website for more detailed information. | @@ -3,78 +3,10 @@ ACRN Device Model
Introduction
============
-The ACRN Device Model provides **device sharing** capabilities between the Service OS and Guest OSs. It is a component that is used in conjunction with the `ACRN Hypervisor`_ and this is installed within the Service OS. You can find out more about Project ACRN on the `Project ACRN documentation`_ website.
-
-
-Building the Device Model
-=========================
-
-Build dependencies
-******************
-
-* For Clear Linux
-
-.. code-block:: console
-
- sudo swupd bundle-add os-clr-on-clr \
- os-utils-gui-dev
-
-* For CentOS
-
-.. code-block:: console
-
- sudo yum install gcc \
- libuuid-devel \
- openssl-devel \
- libpciaccess-devel \
- libusb-devel
-
-* For Fedora 27
-
-.. code-block:: console
-
- sudo dnf install gcc \
- libuuid-devel \
- openssl-devel \
- libpciaccess-devel \
- libusb-devel
-
-Build
-*****
-To build the Device Model
-
-.. code-block:: console
-
- make
-
-To clean the build artefacts
-
-.. code-block:: console
-
- make clean
-
-Runtime dependencies
-********************
-
-* On CentOS
-
-.. code-block:: console
-
- sudo yum install openssl-libs \
- zlib \
- libpciaccess \
- libuuid \
- libusb
-
-* On Fedora 27
-
-.. code-block:: console
-
- sudo dnf install openssl-libs \
- zlib \
- libpciaccess \
- libuuid \
- libusb
+The ACRN Device Model provides **device sharing** capabilities between the
+Service OS and Guest OSs. It is a component that is used in conjunction with
+the `ACRN Hypervisor`_ and this is installed within the Service OS. You can
+find out more about Project ACRN on the `Project ACRN documentation`_ website.
.. _`ACRN Hypervisor`: https://github.com/projectacrn/acrn-hypervisor
.. _`Project ACRN documentation`: https://projectacrn.github.io/
|
Fix wrong macro definition | @@ -76,7 +76,7 @@ extern "C" {
#define ESP_DBG_TYPE_TRACE 0x40 /*!< Debug trace messages for program flow */
#define ESP_DBG_TYPE_STATE 0x20 /*!< Debug state messages (such as state machines) */
-#define ESP_DBG_TYPE_ALL (GSM_DBG_TYPE_TRACE | GSM_DBG_TYPE_STATE) /*!< All debug types */
+#define ESP_DBG_TYPE_ALL (ESP_DBG_TYPE_TRACE | ESP_DBG_TYPE_STATE) /*!< All debug types */
/**
* \}
|
feat(wifi_provisioning): Optimize memory for wifi scan ap number | @@ -702,16 +702,17 @@ static esp_err_t update_wifi_scan_results(void)
goto exit;
}
- prov_ctx->ap_list[curr_channel] = (wifi_ap_record_t *) calloc(count, sizeof(wifi_ap_record_t));
+ uint16_t get_count = MIN(count, MAX_SCAN_RESULTS);
+ prov_ctx->ap_list[curr_channel] = (wifi_ap_record_t *) calloc(get_count, sizeof(wifi_ap_record_t));
if (!prov_ctx->ap_list[curr_channel]) {
ESP_LOGE(TAG, "Failed to allocate memory for AP list");
goto exit;
}
- if (esp_wifi_scan_get_ap_records(&count, prov_ctx->ap_list[curr_channel]) != ESP_OK) {
+ if (esp_wifi_scan_get_ap_records(&get_count, prov_ctx->ap_list[curr_channel]) != ESP_OK) {
ESP_LOGE(TAG, "Failed to get scanned AP records");
goto exit;
}
- prov_ctx->ap_list_len[curr_channel] = count;
+ prov_ctx->ap_list_len[curr_channel] = get_count;
if (prov_ctx->channels_per_group) {
ESP_LOGD(TAG, "Scan results for channel %d :", curr_channel);
@@ -734,7 +735,7 @@ static esp_err_t update_wifi_scan_results(void)
/* Store results in sorted list */
{
- int rc = MIN(count, MAX_SCAN_RESULTS);
+ int rc = get_count;
int is = MAX_SCAN_RESULTS - rc - 1;
while (rc > 0 && is >= 0) {
if (prov_ctx->ap_list_sorted[is]) {
|
odyssey: update config file documentation | @@ -256,26 +256,27 @@ client_max 100
listen {
# Bind address.
host "*"
-
+#
# Listen port.
port 6432
-
+#
# TCP listen backlog.
backlog 128
-
-# Enable TLS support.
+#
+# TLS support.
+#
+# Supported TLS modes:
+#
+# "disable" - disable TLS protocol
+# "allow" - switch to TLS protocol on request
+# "require" - TLS clients only
+# "verify_ca" - require valid client certificate
+# "verify_full" - require valid client ceritifcate
+#
# tls "disable"
-
-# TLS certificate file.
# tls_cert_file ""
-
-# TLS key file.
# tls_key_file ""
-
-# TLS CA file.
# tls_ca_file ""
-
-# TLS protocols to accept.
# tls_protocols ""
}
|
fix bugged assertion check | @@ -3503,7 +3503,7 @@ PlutoMatrix *pluto_get_new_access_func(const Stmt *stmt,
// IF_DEBUG2(printf("New access function is \n"));
// IF_DEBUG2(pluto_matrix_print(stdout, newacc));
- assert(newacc->ncols = stmt->trans->nrows+npar+1);
+ assert(newacc->ncols == stmt->trans->nrows+npar+1);
pluto_matrix_free(remap);
free(remap_divs);
|
Activate I2Cv1 for ST_NUCLEO64_F401RE_NF board
Signed by piwi1263 | @@ -70,6 +70,7 @@ foreach(SRC_FILE ${CHIBIOS_PORT_SRCS})
${CHIBIOS_BOARD} STREQUAL "NETDUINO3_WIFI" OR
${CHIBIOS_BOARD} STREQUAL "I2M_ELECTRON_NF" OR
${CHIBIOS_BOARD} STREQUAL "I2M_OXYGEN_NF" OR
+ ${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F401RE_NF" OR
${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F411RE_NF" OR
${CHIBIOS_BOARD} STREQUAL "GHI_FEZ_CERB40_NF")
${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/ports/STM32/LLD/I2Cv1
@@ -110,6 +111,7 @@ if(${CHIBIOS_BOARD} STREQUAL "ST_STM32F429I_DISCOVERY" OR
${CHIBIOS_BOARD} STREQUAL "NETDUINO3_WIFI" OR
${CHIBIOS_BOARD} STREQUAL "I2M_ELECTRON_NF" OR
${CHIBIOS_BOARD} STREQUAL "I2M_OXYGEN_NF" OR
+ ${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F401RE_NF" OR
${CHIBIOS_BOARD} STREQUAL "ST_NUCLEO64_F411RE_NF" OR
${CHIBIOS_BOARD} STREQUAL "GHI_FEZ_CERB40_NF")
list(APPEND CHIBIOS_INCLUDE_DIRS ${PROJECT_BINARY_DIR}/ChibiOS_Source/os/hal/ports/STM32/LLD/I2Cv1)
|
Prevent sending io to volume if it not opened | @@ -263,8 +263,10 @@ void ocf_volume_submit_io(struct ocf_io *io)
ENV_BUG_ON(!volume->type->properties->ops.submit_io);
- if (!volume->opened)
+ if (!volume->opened) {
io->end(io, -OCF_ERR_IO);
+ return;
+ }
volume->type->properties->ops.submit_io(io);
}
@@ -275,8 +277,10 @@ void ocf_volume_submit_flush(struct ocf_io *io)
ENV_BUG_ON(!volume->type->properties->ops.submit_flush);
- if (!volume->opened)
+ if (!volume->opened) {
io->end(io, -OCF_ERR_IO);
+ return;
+ }
if (!volume->type->properties->ops.submit_flush) {
ocf_io_end(io, 0);
@@ -290,8 +294,10 @@ void ocf_volume_submit_discard(struct ocf_io *io)
{
ocf_volume_t volume = ocf_io_get_volume(io);
- if (!volume->opened)
+ if (!volume->opened) {
io->end(io, -OCF_ERR_IO);
+ return;
+ }
if (!volume->type->properties->ops.submit_discard) {
ocf_io_end(io, 0);
|
Makefile now compiles on Mac | @@ -13,13 +13,13 @@ UNAME=$(shell uname)
# Mac OSX
ifeq ($(UNAME), Darwin)
-DRAWFUNCTIONS_C=redist/RawDrawNull.c
-GRAPHICS_LOFI:=redist/RawDrawNull.o
+DRAWFUNCTIONS=redist/DrawFunctions.c redist/RawDrawNull.c
+GRAPHICS_LOFI:=redist/DrawFunctions.o redist/RawDrawNull.o
# Linux / FreeBSD
else
LDFLAGS:=$(LDFLAGS) -lX11
-DRAWFUNCTIONS_C=redist/XDriver.c redist/DrawFunctions.c
+DRAWFUNCTIONS=redist/DrawFunctions.c redist/XDriver.c
GRAPHICS_LOFI:=redist/DrawFunctions.o redist/XDriver.o
endif
|
Add nme.system.System.exeDirectory | @@ -19,6 +19,7 @@ class System
public static var totalMemory(get, null):Int;
public static var totalMemoryNumber(get, null):Float;
public static var exeName(get, null):String;
+ public static var exeDirectory(get, null):String;
static var args:Array<String>;
static public function exit(?inCode:Int)
@@ -114,6 +115,16 @@ class System
return func();
}
+ private static function get_exeDirectory():String
+ {
+ var name = exeName.split("\\").join("/");
+ var slash = name.lastIndexOf("/");
+ if (slash<0)
+ return "./";
+ return name.substr(0,slash+1);
+ }
+
+
public static function restart() : Void
{
#if android
|
fixes typos in http.c | @@ -2909,7 +2909,7 @@ u3_http_ef_that(u3_noun tat)
cli_u = _proxy_warc_new(htp_u, (u3_atom)u3k(sip), (u3_atom)u3k(non),
(c3_s)por, (c3_o)sec);
- // resolve to loopback if networking is disabling
+ // resolve to loopback if networking is disabled
//
if ( c3n == u3_Host.ops_u.net ) {
cli_u->ipf_w = INADDR_LOOPBACK;
|
ulp: fix ulp external project args
Closes | @@ -47,10 +47,9 @@ function(ulp_embed_binary app_name s_sources exp_dep_srcs)
INSTALL_COMMAND ""
CMAKE_ARGS -DCMAKE_GENERATOR=${CMAKE_GENERATOR}
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FLAG}
- -DULP_S_SOURCES=${sources} -DULP_APP_NAME=${app_name}
+ -DULP_S_SOURCES=$<TARGET_PROPERTY:${app_name},ULP_SOURCES>
+ -DULP_APP_NAME=${app_name}
-DCOMPONENT_DIR=${COMPONENT_DIR}
- # Even though this resolves to a ';' separated list, this is fine. This must be special behavior
- # for generator expressions.
-DCOMPONENT_INCLUDES=$<TARGET_PROPERTY:${COMPONENT_TARGET},INTERFACE_INCLUDE_DIRECTORIES>
-DIDF_PATH=${idf_path}
-DSDKCONFIG=${SDKCONFIG_HEADER}
@@ -60,9 +59,10 @@ function(ulp_embed_binary app_name s_sources exp_dep_srcs)
BUILD_BYPRODUCTS ${ulp_artifacts} ${ulp_artifacts_extras} ${ulp_ps_sources}
${CMAKE_CURRENT_BINARY_DIR}/${app_name}/${app_name}
BUILD_ALWAYS 1
- LIST_SEPARATOR |
)
+ set_property(TARGET ${app_name} PROPERTY ULP_SOURCES "${sources}")
+
spaces2list(exp_dep_srcs)
set_source_files_properties(${exp_dep_srcs} PROPERTIES OBJECT_DEPENDS ${ulp_artifacts})
|
Make: use drone var directly | @@ -10,9 +10,13 @@ SE=arm-none-eabi-size
GCC_VERSION = $(shell arm-none-eabi-gcc -dumpversion)
GIT_VERSION = unkown
-ifneq (,$(wildcard .git/refs/heads/master))
+ifneq ($(DRONE_COMMIT),)
+ GIT_VERSION = $(DRONE_COMMIT)
+else
+ ifneq ($(wildcard .git/refs/heads/master),)
GIT_VERSION = $(shell sh -c 'cat .git/refs/heads/master')
endif
+endif
INCLUDE = src \
src/main \
|
chat-hook: rerun fix on OTA | state-2
state-3
state-4
+ state-5
==
::
++$ state-5 [%5 state-base]
+$ state-4 [%4 state-base]
+$ state-3 [%3 state-base]
+$ state-2 [%2 state-base]
$% [%chat-update update:store]
==
--
-=| state-4
+=| state-5
=* state -
::
%- agent:dbug
=/ old !<(versioned-state old-vase)
=| cards=(list card)
|-
- ?: ?=(%4 -.old)
+ ?: ?=(%5 -.old)
[cards this(state old)]
- ?: ?=(%3 -.old)
+ ?: ?=(?(%3 %4) -.old)
=. cards
%+ weld cards
^- (list card)
[%pass /pokeme %agent [our.bol %chat-hook] %poke %noun !>(%fix-dm)]~
- $(-.old %4)
+ $(-.old %5)
?: ?=(%2 -.old)
=. cards
%+ weld cards
|
Add ROTATE inline RISC-V zbb/zbkb asm for DES | : "cc"); \
ret; \
})
+# elif defined(__riscv_zbb) || defined(__riscv_zbkb)
+# if __riscv_xlen == 64
+# define ROTATE(x, n) ({ register unsigned int ret; \
+ asm ("roriw %0, %1, %2" \
+ : "=r"(ret) \
+ : "r"(x), "i"(n)); ret; })
+# endif
+# if __riscv_xlen == 32
+# define ROTATE(x, n) ({ register unsigned int ret; \
+ asm ("rori %0, %1, %2" \
+ : "=r"(ret) \
+ : "r"(x), "i"(n)); ret; })
+# endif
# endif
# endif
# ifndef ROTATE
|
Fix Gtest-trace output for illumos/Solaris | @@ -207,7 +207,7 @@ sighandler (int signal, void *siginfo UNUSED, void *context)
printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_eip);
#endif
#elif UNW_TARGET_X86_64
-#if defined __linux__
+#if defined __linux__ || defined __sun
printf (" @ %lx", (unsigned long) uc->uc_mcontext.gregs[REG_RIP]);
#elif defined __FreeBSD__
printf (" @ %lx", (unsigned long) uc->uc_mcontext.mc_rip);
|
Update changelog for version 0.7.0 | ## Changelog
+### 0.7.0
+
+- Tuples from pairs to octuples have been made instances of `FromLuaStack` and
+ `ToLuaStack`.
+- New functions `dostring` and `dofile` are provided to load and run strings and
+ files in a single step.
+- `LuaStatus` was renamed to `Status`, the *Lua* prefix was removed from its
+ type constructors.
+- The constructor `ErrFile` was added to `Status`. It is returned by `loadfile`
+ if the file cannot be read.
+- Remove unused FFI bindings and unused types, including all functions unsafe to
+ use from within Haskell and the library functions added with 0.5.0. Users with
+ special requirements should define their own wrappers and raw bindings.
+- The module *Foreign.Lua.Api.SafeBindings* was merge into
+ *Foreign.Lua.Api.RawBindings*.
+- FFI bindings are changed to use newtypes where sensible, most notably
+ `StackIndex`, `NumArgs`, and `NumResults`, but also the newly introduced
+ newtypes `StatusCode`, `TypeCode`, and `LuaBool`.
+- Add functions `tointegerx` and `tonumberx` which can be used to get and check
+ values from the stack in a single step.
+- The signature of `concat` was changed from `Int -> Lua ()` to
+ `NumArgs -> Lua ()`.
+- The signature of `loadfile` was changed from `String -> Lua Int` to
+ `String -> Lua Status`.
+- The type `LTYPE` was renamed to `Type`, its constructors were renamed to
+ follow the pattern `Type<Typename>`. `LuaRelation` was renamed to
+ `RelationalOperator`, the *Lua* prefix was removed from its constructors.
+- Add function `tolist` to allow getting a generic list from the stack without
+ having to worry about the overlapping instance with `[Char]`.
+
+
### 0.6.0
* Supported Lua Versions now include Lua 5.2 and Lua 5.3. LuaJIT and Lua 5.1
* Drop support for GHC versions < 7.8, avoid compiler warnings.
* Ensure no symbols are stripped when linking the bundled lua interpreter.
* Simplify `tostring` function definition. (Sean Proctor)
-* Explicitly decprecate `strlen`. (Sean Proctor)
+* Explicitly deprecate `strlen`. (Sean Proctor)
* Add links to lua documentation for functions wrapping the official lua C API.
(Sean Proctor).
|
update ya tool arc
call utimes
Note: mandatory check (NEED_CHECK) was skipped | },
"arc": {
"formula": {
- "sandbox_id": [362054312],
+ "sandbox_id": [362727586],
"match": "arc"
},
"executable": {
|
Tests: BOM test. | @@ -83,6 +83,25 @@ class TestConfiguration(TestControl):
'unicode number',
)
+ def test_json_utf8_bom(self):
+ self.assertIn(
+ 'success',
+ self.conf(
+ b"""\xEF\xBB\xBF
+ {
+ "app": {
+ "type": "python",
+ "processes": {"spare": 0},
+ "path": "/app",
+ "module": "wsgi"
+ }
+ }
+ """,
+ 'applications',
+ ),
+ 'UTF-8 BOM',
+ )
+
def test_applications_open_brace(self):
self.assertIn('error', self.conf('{', 'applications'), 'open brace')
|
Also adjust the version in the .pc | @@ -468,7 +468,7 @@ install (FILES
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/UPNP/
)
-set (VERSION ${UPNP_VERSION_STRING})
+set (VERSION ${PUPNP_VERSION_STRING})
set (prefix ${CMAKE_INSTALL_PREFIX})
set (exec_prefix "\${prefix}")
set (libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
|
Test deeply nested group parsing with a failing allocator | @@ -6831,6 +6831,52 @@ START_TEST(test_alloc_system_notation)
#undef MAX_ALLOC_COUNT
END_TEST
+START_TEST(test_alloc_nested_groups)
+{
+ const char *text =
+ "<!DOCTYPE doc [\n"
+ "<!ELEMENT doc "
+ /* Sixteen elements per line */
+ "(e,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,"
+ "(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?,(e?"
+ "))))))))))))))))))))))))))))))))>\n"
+ "<!ELEMENT e EMPTY>"
+ "]>\n"
+ "<doc><e/></doc>";
+ CharData storage;
+ int i;
+#define MAX_ALLOC_COUNT 10
+ int repeat = 0;
+
+ for (i = 0; i < MAX_ALLOC_COUNT; i++) {
+ /* Repeat some counts to allow for cached allocations */
+ if ((i == 2 && repeat < 3) || (i == 3 && repeat == 3)) {
+ i--;
+ repeat++;
+ }
+ allocation_count = i;
+ CharData_Init(&storage);
+ XML_SetElementDeclHandler(parser, dummy_element_decl_handler);
+ XML_SetStartElementHandler(parser, record_element_start_handler);
+ XML_SetUserData(parser, &storage);
+ dummy_handler_flags = 0;
+ if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
+ XML_TRUE) != XML_STATUS_ERROR)
+ break;
+ XML_ParserReset(parser, NULL);
+ }
+
+ if (i == 0)
+ fail("Parse succeeded despite failing reallocator");
+ if (i == MAX_ALLOC_COUNT)
+ fail("Parse failed at maximum reallocation count");
+ CharData_CheckString(&storage, "doce");
+ if (dummy_handler_flags != DUMMY_ELEMENT_DECL_HANDLER_FLAG)
+ fail("Element handler not fired");
+}
+#undef MAX_ALLOC_COUNT
+END_TEST
+
START_TEST(test_alloc_realloc_nested_groups)
{
const char *text =
@@ -7674,6 +7720,7 @@ make_suite(void)
tcase_add_test(tc_alloc, test_alloc_notation);
tcase_add_test(tc_alloc, test_alloc_public_notation);
tcase_add_test(tc_alloc, test_alloc_system_notation);
+ tcase_add_test(tc_alloc, test_alloc_nested_groups);
tcase_add_test(tc_alloc, test_alloc_realloc_nested_groups);
suite_add_tcase(s, tc_nsalloc);
|
remove spammy azimuth-tracker printfs | =/ m (async:stdio ,block)
^- form:m
;< =json bind:m (request-rpc url `'block number' %eth-block-number ~)
- ~& [%block-number json (parse-eth-block-number:rpc:ethereum json)]
(get-block-by-number url (parse-eth-block-number:rpc:ethereum json))
::
++ get-block-by-number
;< state=app-state bind:m (zoom state number.id.latest-block)
|- ^- form:m
=* walk-loop $
- ~& [%walk-loop number.state]
?: (gth number.state number.id.latest-block)
;< now=@da bind:m get-time:stdio
;< ~ bind:m (wait-effect:stdio (add now ~s10))
|= [url=@ta whos=(set ship) =a=pending-udiffs =block blocks=(list block)]
=/ m (async:stdio ,[pending-udiffs (lest ^block)])
^- form:m
- ~& [%taking id.block]
?: &(?=(^ blocks) !=(parent-hash.block hash.id.i.blocks))
~& %rewinding
(rewind url a-pending-udiffs block blocks)
|
fix wrong version header for tls1.3 | @@ -2560,8 +2560,14 @@ int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush )
#endif
/* Skip writing the record content type to after the encryption,
* as it may change when using the CID extension. */
-
- mbedtls_ssl_write_version( ssl->major_ver, ssl->minor_ver,
+ int minor_ver = ssl->minor_ver;
+#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
+ /* TLS 1.3 still uses the TLS 1.3 version identifier
+ * for backwards compatibility. */
+ if( minor_ver == MBEDTLS_SSL_MINOR_VERSION_4 )
+ minor_ver = MBEDTLS_SSL_MINOR_VERSION_3;
+#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
+ mbedtls_ssl_write_version( ssl->major_ver, minor_ver,
ssl->conf->transport, ssl->out_hdr + 1 );
memcpy( ssl->out_ctr, ssl->cur_out_ctr, MBEDTLS_SSL_SEQUENCE_NUMBER_LEN );
@@ -2577,7 +2583,7 @@ int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush )
rec.data_offset = ssl->out_msg - rec.buf;
memcpy( &rec.ctr[0], ssl->out_ctr, sizeof( rec.ctr ) );
- mbedtls_ssl_write_version( ssl->major_ver, ssl->minor_ver,
+ mbedtls_ssl_write_version( ssl->major_ver, minor_ver,
ssl->conf->transport, rec.ver );
rec.type = ssl->out_msgtype;
@@ -5619,6 +5625,7 @@ static void ssl_buffering_free_slot( mbedtls_ssl_context *ssl,
void mbedtls_ssl_write_version( int major, int minor, int transport,
unsigned char ver[2] )
{
+
#if defined(MBEDTLS_SSL_PROTO_DTLS)
if( transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM )
{
|
add DEBUG condition to select debug configuration by default
DEBUG_MM_HEAPINFO can be enabled when DEBUG is enabled.
warning: (ENABLE_HEAPINFO) selects DEBUG_MM_HEAPINFO which has unmet direct dependencies (DEBUG) | @@ -77,7 +77,7 @@ config ENABLE_HEAPINFO
bool "heapinfo"
default y
depends on !BUILD_PROTECTED
- select DEBUG_MM_HEAPINFO
+ select DEBUG_MM_HEAPINFO if DEBUG
---help---
Show information about memory status per thread
|
admin/lmod: include lua-libs for centos8 | @@ -31,6 +31,7 @@ BuildRequires: lua >= %{luaver}
BuildRequires: lua-devel >= %{luaver}
%if 0%{?rhel} > 7
+BuildRequires: lua-libs
BuildRequires: lua-filesystem
BuildRequires: lua-posix
BuildRequires: procps-ng
|
github: update pull request template
The current wording is a bit curt. Flesh it out a bit and put in some
useful detail. | -Please do not submit a Pull Request via github. Our project makes use of
-mailing lists for patch submission and review. For more details please
-see https://open-power.github.io/skiboot/
+Hi there,
+
+The skiboot project (generally) doesn't take contributions via github pull
+requests. Contributions should sent to the skiboot mailing list using the
+git-format-patch and git-send-email tools. If you're unfamiliar with these
+tools, there's a guide here:
+
+https://www.freedesktop.org/wiki/Software/PulseAudio/HowToUseGitSendEmail/
+
+The list address is:
+
+ [email protected]
+
+Posting to the list does not require subscribing to the list. Posts from a
+non-subscribers are moderated to cut down on spam, but anyone posting
+genuine contributions will be whitelisted.
+
+See https://open-power.github.io/skiboot/ for more details.
|
out_opentelemetry: fixed uri sanitizer issue
This code works in the same way as the original except it doesn't lose
default values. Anything else is just the same. | @@ -94,38 +94,28 @@ static void check_proxy(struct flb_output_instance *ins,
}
}
-static char *sanitize_uri(struct flb_output_instance *ins,
- struct opentelemetry_context *ctx,
- struct flb_upstream *upstream,
- char *check_uri){
- char *uri = NULL;
- char *tmp = NULL;
- char *tmp_uri = NULL;
- int ulen;
-
- if (ins->host.uri) {
- uri = flb_strdup(ins->host.uri->full);
- }
- else {
- tmp = flb_output_get_property(check_uri, ins);
- if (tmp) {
- uri = flb_strdup(tmp);
- }
- }
+static char *sanitize_uri(char *uri){
+ char *new_uri;
+ int uri_len;
- if (!uri) {
+ if (uri == NULL) {
uri = flb_strdup("/");
}
else if (uri[0] != '/') {
- ulen = strlen(uri);
- tmp_uri = flb_malloc(ulen + 2);
- tmp_uri[0] = '/';
- memcpy(tmp_uri + 1, uri, ulen);
- tmp_uri[ulen + 1] = '\0';
- flb_free(uri);
- uri = tmp_uri;
+ uri_len = strlen(uri);
+ new_uri = flb_calloc(uri_len + 2, sizeof(char));
+
+ if (new_uri != NULL) {
+ new_uri[0] = '/';
+
+ strncat(new_uri, uri, uri_len + 1);
}
+ uri = new_uri;
+ }
+
+ /* This function could return NULL if flb_calloc fails */
+
return uri;
}
@@ -138,6 +128,7 @@ struct opentelemetry_context *flb_opentelemetry_context_create(
char *host = NULL;
char *port = NULL;
char *metrics_uri = NULL;
+ char *traces_uri = NULL;
char *logs_uri = NULL;
struct flb_upstream *upstream;
struct opentelemetry_context *ctx = NULL;
@@ -202,14 +193,41 @@ struct opentelemetry_context *flb_opentelemetry_context_create(
return NULL;
}
- logs_uri = sanitize_uri(ins, ctx, upstream, "logs_uri");
- metrics_uri = sanitize_uri(ins, ctx, upstream, "metrics_uri");
+ logs_uri = sanitize_uri(ctx->logs_uri);
+ traces_uri = sanitize_uri(ctx->traces_uri);
+ metrics_uri = sanitize_uri(ctx->metrics_uri);
ctx->u = upstream;
ctx->host = ins->host.name;
ctx->port = ins->host.port;
- ctx->metrics_uri = metrics_uri;
+
+ if (logs_uri == NULL) {
+ flb_plg_trace(ctx->ins,
+ "Could not allocate memory for sanitized "
+ "log endpoint uri");
+ }
+ else {
ctx->logs_uri = logs_uri;
+ }
+
+ if (traces_uri == NULL) {
+ flb_plg_trace(ctx->ins,
+ "Could not allocate memory for sanitized "
+ "trace endpoint uri");
+ }
+ else {
+ ctx->traces_uri = traces_uri;
+ }
+
+ if (metrics_uri == NULL) {
+ flb_plg_trace(ctx->ins,
+ "Could not allocate memory for sanitized "
+ "metric endpoint uri");
+ }
+ else {
+ ctx->metrics_uri = metrics_uri;
+ }
+
/* Set instance flags into upstream */
flb_output_upstream_set(ctx->u, ins);
|
Little change to process.awk | @@ -38,7 +38,8 @@ END {
t=1
error=0
- printf "---------------------- Process %s logs -------------------------------\n", iter
+ printf "---------------------- Process %s logs ----------------------------\n", iter
+ printf " (time in usec)\n", iter
while (t <= 10) {
i=1
min = usec_table[t][1];
|
firmware: Update to
stable
RaspberryPi 3B+ support | -RPIFW_DATE ?= "20180313"
-SRCREV ?= "af994023ab491420598bfd5648b9dcab956f7e11"
+RPIFW_DATE ?= "20180417"
+SRCREV ?= "5db8e4e1c63178e200d6fbea23ed4a9bf4656658"
RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/${SRCREV}.tar.gz"
RPIFW_S ?= "${WORKDIR}/firmware-${SRCREV}"
SRC_URI = "${RPIFW_SRC_URI}"
-SRC_URI[md5sum] = "0c388f3631093368ac92a15a262d0f7c"
-SRC_URI[sha256sum] = "e2afa23886de586856a1d604da2a85e4559715816dccbd70ae828b840beafc21"
+SRC_URI[md5sum] = "6bce52f22a7a005a9bcdb9912b132590"
+SRC_URI[sha256sum] = "84568c4e7f5b0deee4cd76e7c0b48315885f983d6131d8148ef8af8438328a36"
PV = "${RPIFW_DATE}"
|
[catboost/java] bump version, fix linux-x86_64 library layout in deployed artifact | <groupId>ai.catboost</groupId>
<artifactId>catboost-prediction</artifactId>
- <version>0.2-SNAPSHOT</version>
+ <version>0.2.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>CatBoost model applier</name>
<description>Java module to apply CatBoost models</description>
|
mangle: remove so many Shrink's | @@ -685,7 +685,12 @@ static void mangle_NegByte(run_t* run, bool printable) {
static void mangle_Expand(run_t* run, bool printable) {
size_t off = mangle_getOffSet(run);
- size_t len = mangle_getLen(run->global->mutate.maxInputSz - off);
+ size_t len;
+ if (util_rnd64() % 16) {
+ len = mangle_getLen(HF_MIN(16, run->global->mutate.maxInputSz - off));
+ } else {
+ len = mangle_getLen(run->global->mutate.maxInputSz - off);
+ }
mangle_Inflate(run, off, len, printable);
}
@@ -697,6 +702,14 @@ static void mangle_Shrink(run_t* run, bool printable HF_ATTR_UNUSED) {
size_t off_start = mangle_getOffSet(run);
size_t len = mangle_LenLeft(run, off_start);
+ if (len == 0) {
+ return;
+ }
+ if (util_rnd64() % 16) {
+ len = mangle_getLen(HF_MIN(16, len));
+ } else {
+ len = mangle_getLen(len);
+ }
size_t off_end = off_start + len;
size_t len_to_move = run->dynfile->size - off_end;
@@ -798,15 +811,6 @@ void mangle_mangleContent(run_t* run, unsigned slow_factor) {
static void (*const mangleFuncs[])(run_t * run, bool printable) = {
/* Every *Insert or Expand expands file, so add one Shrink for each */
mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
- mangle_Shrink,
mangle_Expand,
mangle_Bit,
mangle_IncByte,
@@ -837,7 +841,6 @@ void mangle_mangleContent(run_t* run, unsigned slow_factor) {
if (run->mutationsPerRun == 0U) {
return;
}
-
if (run->dynfile->size == 0U) {
mangle_Resize(run, /* printable= */ run->global->cfg.only_printable);
}
@@ -851,11 +854,11 @@ void mangle_mangleContent(run_t* run, unsigned slow_factor) {
case 6 ... 10:
changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 5);
break;
- case 11 ... 15:
+ case 11 ... 20:
changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 10);
break;
default:
- changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 20);
+ changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 30);
break;
}
|
Don't select indentation | @@ -1118,6 +1118,9 @@ fileprivate func parseArgs(_ args: inout [String]) {
textView.contentTextView.insertText(lines.joined(separator: "\n"))
textView.contentTextView.selectedRange = NSRange(location: nsRange.location, length: textView.contentTextView.selectedRange.location-nsRange.location)
+ if selected.components(separatedBy: "\n").count == 1, let range = textView.contentTextView.selectedTextRange {
+ textView.contentTextView.selectedTextRange = textView.contentTextView.textRange(from: range.end, to: range.end)
+ }
} else {
textView.contentTextView.insertText(EditorViewController.indentation)
}
@@ -1448,6 +1451,9 @@ fileprivate func parseArgs(_ args: inout [String]) {
textView.replace(textRange, withText: lines.joined(separator: "\n"))
textView.selectedRange = NSRange(location: nsRange.location, length: textView.selectedRange.location-nsRange.location)
+ if selected.components(separatedBy: "\n").count == 1, let range = textView.selectedTextRange {
+ textView.selectedTextRange = textView.textRange(from: range.end, to: range.end)
+ }
}
return false
}
|
Fix SRCDIR for qemu build
RDIR (the initial working directory) is not necessarily the top of the
chipyard source tree. | @@ -122,7 +122,7 @@ CC= CXX= module_all riscv-pk --prefix="${RISCV}" --host=riscv64-unknown-elf
module_all riscv-tests --prefix="${RISCV}/riscv64-unknown-elf"
# Common tools (not in any particular toolchain dir)
-SRCDIR="$RDIR/toolchains" module_all qemu --prefix="${RISCV}" --target-list=riscv64-softmmu
+SRCDIR="$(pwd)/toolchains" module_all qemu --prefix="${RISCV}" --target-list=riscv64-softmmu
cd "$RDIR"
|
Add test coverage for pg_current_logfile() function.
There has been no coverage at all up to now. Given Thomas Kellerer's
recent report, I suspect this may fail on (some?) Windows machines,
but let's find out.
Discussion: | @@ -3,7 +3,7 @@ use warnings;
use PostgresNode;
use TestLib;
-use Test::More tests => 4;
+use Test::More tests => 5;
use Time::HiRes qw(usleep);
# Set up node with logging collector
@@ -47,6 +47,10 @@ for (my $attempts = 0; $attempts < $max_attempts; $attempts++)
like($first_logfile, qr/division by zero/, 'found expected log file content');
+# While we're at it, test pg_current_logfile() function
+is($node->safe_psql('postgres', "SELECT pg_current_logfile('stderr')"),
+ $lfname, 'pg_current_logfile() gives correct answer');
+
# Sleep 2 seconds and ask for log rotation; this should result in
# output into a different log file name.
sleep(2);
|
fuzz: no need to reset run->dynamicFileSz | @@ -382,7 +382,6 @@ static void fuzz_fuzzLoop(run_t* run) {
run->report[0] = '\0';
run->mainWorker = true;
run->mutationsPerRun = run->global->mutate.mutationsPerRun;
- run->dynamicFileSz = 0;
run->tmOutSignaled = false;
run->linux.hwCnts.cpuInstrCnt = 0;
@@ -416,7 +415,6 @@ static void fuzz_fuzzLoopSocket(run_t* run) {
run->report[0] = '\0';
run->mainWorker = true;
run->mutationsPerRun = run->global->mutate.mutationsPerRun;
- run->dynamicFileSz = 0;
run->tmOutSignaled = false;
run->linux.hwCnts.cpuInstrCnt = 0;
|
more swap for rpi3 | @@ -31,9 +31,9 @@ sudo systemctl restart systemd-binfmt
Warning, you need a 64bit OS:
-If building on the Pi, you will also need a large swap (2 GB+)
-and reduce GPU memory to a minimum (e.g. 16 MB) using `raspi-config`
-(and reboot) before starting the build:
+If building on the Pi, you will also need a large swap (3 GB+)
+[optionally reduce GPU memory to a minimum (e.g. 16 MB) using `raspi-config`
+(and reboot) before starting the build]:
You can use e.g. '`make -j4`' to speed up the build, but on a Pi 3 with 1GB memory you will likely
run out of memory at some point and need to run the build again.
|
Fix EFF Open Audio License removal.
The earlier commit changed the html, but not the original
TeX source document. | @@ -119,12 +119,9 @@ info)
Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'
\item[LICENSE]
- License information, eg, 'All Rights Reserved', 'Any
+ License information, for example, 'All Rights Reserved', 'Any
Use Permitted', a URL to a license such as a Creative Commons license
-("www.creativecommons.org/blahblah/license.html") or the EFF Open
-Audio License ('distributed under the terms of the Open Audio
-License. see http://www.eff.org/IP/Open\_licenses/eff\_oal.html for
-details'), etc.
+(e.g. "creativecommons.org/license/by/4.0/") or similar.
\item[ORGANIZATION]
Name of the organization producing the track (i.e.
|
call ENnextH before ENnextQ | @@ -87,8 +87,8 @@ Contributors to this version (listed in order of first contribution):
ENrunH(&t);
ENrunQ(&qt);
// collect results
- ENnextQ(&qstep);
ENnextH(&tstep);
+ ENnextQ(&qstep);
} while (tstep > 0);
ENcloseQ();
ENcloseH();
|
lib: libco: sync changes for FreeBSD and non-gcc compilers | #define text_section __declspec(allocate(".text"))
#elif defined(__APPLE__) && defined(__MACH__)
#define text_section __attribute__((section("__TEXT,__text")))
+#elif defined(__clang__)
+ #define text_section __attribute__((section(".text")))
#else
#define text_section __attribute__((section(".text#")))
#endif
|
Update comment in pack module to cover a more common use case.
The KeyValue object is actively being removed so this is no longer the best example.
Instead use an example that should outlive the KeyValue object. | @@ -25,10 +25,10 @@ pckWriteStrP(packWrite, NULL, .defaultWrite = true) is not valid since there is
NULLs are not stored in a pack and are therefore not typed. A NULL is essentially just a gap in the field IDs. Fields that are
frequently NULL are best stored at the end of an object. When using read functions the default will always be returned
when the field is NULL (i.e. missing). There are times when NULL must be explicitly passed, for example:
-pckWriteStrP(resultPack, result.pageChecksumResult != NULL ? jsonFromKv(result.pageChecksumResult) : NULL);
-In this case, NULL is declared since jsonFromKv() does not accept a NULL parameter and, following the rules for NULLs the field ID
-is skipped when result.pageChecksumResult == NULL. Upon reading, we can declare a NULL_STR when a NULL (field ID gap) is
-encountered, e.g. jsonToVar(pckReadStrP(jobResult, .defaultValue = NULL_STR)).
+pckWriteStrP(pack, strEmpty(checksumSha1) ? NULL : checksumSha1);
+In this case, NULL is declared since checksumSha1 might be empty and, following the rules for NULLs the field ID is skipped when
+strEmpty(checksumSha1). Upon reading, we can declare an empty string when a NULL (field ID gap) is encountered,
+e.g. pckReadStrP(pack, .defaultValue = EMPTY_STR)).
A pack is an object by default. Objects can store fields, objects, or arrays. Objects and arrays will be referred to collectively as
containers. Fields contain data to be stored, e.g. integers, strings, etc.
|
http_client: do not wait for more data on HTTP 204 response status | @@ -346,6 +346,9 @@ static int process_data(struct flb_http_client *c)
return FLB_HTTP_OK;
}
}
+ else {
+ return FLB_HTTP_OK;
+ }
}
else if (c->resp.headers_end && c->resp.content_length <= 0) {
return FLB_HTTP_OK;
|
Implement rect_inset, rect_union | @@ -115,6 +115,26 @@ Rect* rect_clip(Rect subject, Rect cutting, int* count, bool* occluded) {
return clipped;
}
+Rect rect_union(Rect a, Rect b) {
+ Rect ret;
+ ret.origin.x = MIN(rect_min_x(a), rect_min_x(b));
+ ret.origin.y = MIN(rect_min_y(a), rect_min_y(b));
+ ret.size.width = MAX(a.size.width, b.size.width);
+ ret.size.height = MAX(a.size.height, b.size.height);
+ return ret;
+}
+
+bool rect_is_null(Rect rect) {
+ return (rect_min_x(rect) == 0 &&
+ rect_min_y(rect) == 0 &&
+ rect_max_x(rect) == 0 &&
+ rect_max_y(rect) == 0);
+}
+
+Rect rect_null() {
+ return rect_zero();
+}
+
Rect rect_intersect(Rect a, Rect b) {
Rect result;
@@ -168,3 +188,16 @@ Rect convert_rect(Rect outer, Rect inner) {
return ret;
}
+Rect rect_inset(Rect src, int dx, int dy) {
+ Rect ret;
+ ret.origin.x = src.origin.x - dx;
+ ret.origin.y = src.origin.y - dy;
+ ret.size.width = src.size.width + (dx * 2);
+ ret.size.height = src.size.height + (dy * 2);
+
+ if (ret.size.width < 0 || ret.size.height < 0) {
+ return rect_null();
+ }
+ return ret;
+}
+
|
Use unicode representation when comparing query string | @@ -115,7 +115,13 @@ namespace carto {
return Op<double>()(v1.get<double>(), v2.get<double>());
}
if (v1.is<std::string>() && v2.is<std::string>()) {
- return Op<std::string>()(v1.get<std::string>(), v2.get<std::string>());
+ std::string str1 = v1.get<std::string>();
+ std::wstring wstr1;
+ utf8::utf8to32(str1.begin(), str1.end(), std::back_inserter(wstr1));
+ std::string str2 = v2.get<std::string>();
+ std::wstring wstr2;
+ utf8::utf8to32(str2.begin(), str2.end(), std::back_inserter(wstr2));
+ return Op<std::wstring>()(wstr1, wstr2);
}
return false;
}
|
Add __unused to variables that are only used if TU_LOG does something | @@ -134,11 +134,11 @@ typedef union TU_ATTR_PACKED
TU_VERIFY_STATIC(sizeof(rp2040_buffer_control_t) == 2, "size is not correct");
-static inline void print_bufctrl16(uint32_t u16)
+static inline void print_bufctrl16(uint32_t __unused u16)
{
- rp2040_buffer_control_t bufctrl;
-
- bufctrl.u16 = u16;
+ rp2040_buffer_control_t __unused bufctrl = {
+ .u16 = u16
+ };
TU_LOG(2, "len = %u, available = %u, stall = %u, reset = %u, toggle = %u, last = %u, full = %u\r\n",
bufctrl.xfer_len, bufctrl.available, bufctrl.stall, bufctrl.reset_bufsel, bufctrl.data_toggle, bufctrl.last_buf, bufctrl.full);
|
fix minor spelling issue by removing contraction | */
/* Setting configUSING_QEMU results in console output when an LED toggles as
-LEDs aren't visible in QEMU. */
+LEDs are not visible in QEMU. */
#define configUSING_QEMU 1
#define configMAX_API_CALL_INTERRUPT_PRIORITY 18
|
SOVERSION bump to version 5.1.6 | @@ -39,7 +39,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 5)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 5)
+set(SYSREPO_MICRO_SOVERSION 6)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
[arch][arm64] change CACHE_LINE to 64 for cortex a53,57 and 72 | #define PAGE_SIZE (1UL << PAGE_SIZE_SHIFT)
#define USER_PAGE_SIZE (1UL << USER_PAGE_SIZE_SHIFT)
+#if ARM64_CPU_CORTEX_A53 || ARM64_CPU_CORTEX_A57 || ARM64_CPU_CORTEX_A72
+#define CACHE_LINE 64
+#else
#define CACHE_LINE 32
-
+#endif
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.