message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
|---|---|
debian: fixup board and scenario detection
Using e.g.
debuild -eACRN_BOARDLIST= -eACRN_SCENARIOLIST= -eCONFIGDIRS=<custom config path> -- binary
builds all board/scenario combinations provided in <custom config path>.
|
@@ -44,10 +44,6 @@ export RELEASE ?= 0
debian/configs/configurations.mk:
@:
-ifeq ($(ACRN_SCENARIOLIST),)
-$(error No scenarios defined. Please set ACRN_SCENARIOLIST)
-endif
-
# misc/config_tools/data: contains ACRN supported configuration
# debian/configs: add additional, unsupported configurations here!
CONFIGDIRS ?= misc/config_tools/data debian/configs
@@ -81,13 +77,22 @@ endef
# get all XML data
$(foreach xml,$(CONFIGXMLS),$(call get-xml-data,$(xml)))
-# honor variable ACRN_BOARDLIST
+# honor variable ACRN_BOARDLIST by filtering the discovered board configurations accordingly
ifneq ($(ACRN_BOARDLIST),)
-boardlist := $(sort $(ACRN_BOARDLIST))
+boardlist := $(sort $(filter $(boardlist),$(ACRN_BOARDLIST)))
endif
-# honor variable ACRN_SCENARIOLIST
+# honor variable ACRN_SCENARIOLIST by filtering the discovered scenario configurations
+ifneq ($(ACRN_SCENARIOLIST),)
$(foreach b,$(boardlist),$(eval scenariolist_$(b) := $(filter $(scenariolist_$(b)),$(ACRN_SCENARIOLIST))))
+endif
+
+# only keep boards with at least one valid scenario configuration
+boardlist := $(foreach b,$(boardlist),$(if $(scenariolist_$(b)),$b))
+# assert nonempty boardlist
+ifeq ($(boardlist),)
+$(error No valid board/scenario configurations specified/found)
+endif
# board config name -> board config file
bfile = $(abspath $(config_$1))
|
stm32/usb: Allow board to select which USBD is used as the main one.
By defining MICROPY_HW_USB_MAIN_DEV a given board can select to use either
USB_PHY_FS_ID or USB_PHY_HS_ID as the main USBD peripheral, on which the
REPL will appear. If not defined this will be automatically configured.
|
#include "bufhelper.h"
#include "usb.h"
+// Work out which USB device to use as the main one (the one with the REPL)
+#if !defined(MICROPY_HW_USB_MAIN_DEV)
#if defined(USE_USB_FS)
-#define USB_PHY_ID USB_PHY_FS_ID
+#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_FS_ID)
#elif defined(USE_USB_HS) && defined(USE_USB_HS_IN_FS)
-#define USB_PHY_ID USB_PHY_HS_ID
+#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID)
#else
-#error Unable to determine proper USB_PHY_ID to use
+#error Unable to determine proper MICROPY_HW_USB_MAIN_DEV to use
+#endif
#endif
// this will be persistent across a soft-reset
@@ -123,7 +126,7 @@ bool pyb_usb_dev_init(uint16_t vid, uint16_t pid, usb_device_mode_t mode, USBD_H
// set up the USBD state
USBD_HandleTypeDef *usbd = &usb_dev->hUSBDDevice;
- usbd->id = USB_PHY_ID;
+ usbd->id = MICROPY_HW_USB_MAIN_DEV;
usbd->dev_state = USBD_STATE_DEFAULT;
usbd->pDesc = (USBD_DescriptorsTypeDef*)&USBD_Descriptors;
usbd->pClass = &USBD_CDC_MSC_HID;
|
Back out state.offset change in oculus
This makes rendering work correctly again, but now most likely state.offset does not work right.
|
@@ -375,7 +375,7 @@ static void oculusRenderTo(void (*callback)(void*), void* userdata) {
mat4_identity(transform);
mat4_rotateQuat(transform, orient);
transform[12] = -(transform[0] * pos[0] + transform[4] * pos[1] + transform[8] * pos[2]);
- transform[13] = -(transform[1] * pos[0] + transform[5] * pos[1] + transform[9] * pos[2] + state.offset);
+ transform[13] = -(transform[1] * pos[0] + transform[5] * pos[1] + transform[9] * pos[2]);
transform[14] = -(transform[2] * pos[0] + transform[6] * pos[1] + transform[10] * pos[2]);
ovrMatrix4f projection = ovrMatrix4f_Projection(desc.DefaultEyeFov[eye], state.clipNear, state.clipFar, ovrProjection_ClipRangeOpenGL);
|
Fixed Slack username of payment success notifications
|
@@ -56,7 +56,7 @@ namespace MiningCore.Notifications
private readonly BlockingCollection<QueuedNotification> queue = new BlockingCollection<QueuedNotification>();
private IDisposable queueSub;
- private HttpClient httpClient = new HttpClient(new HttpClientHandler
+ private readonly HttpClient httpClient = new HttpClient(new HttpClientHandler
{
AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip
});
@@ -172,7 +172,7 @@ namespace MiningCore.Notifications
poolConfig?.SlackNotifications?.NotifyBlockFound == true)
{
await SendSlackNotificationAsync(poolConfig.SlackNotifications.WebHookUrl, notification.Subject, notification.Msg,
- poolConfig.SlackNotifications.Channel, poolConfig.SlackNotifications.BlockFoundUsername,
+ poolConfig.SlackNotifications.Channel, poolConfig.SlackNotifications.PaymentSuccessUsername,
poolConfig.SlackNotifications.PaymentSuccessEmoji);
}
|
drivers/display/lcd160cr.py: In fast_spi, send command before flushing.
The intention of oflush() is to flush the "fast SPI" command itself so that
the SPI object is ready to use when the function returns.
|
@@ -428,9 +428,9 @@ class LCD160CR:
self._send(self.buf19)
def fast_spi(self, flush=True):
+ self._send(b'\x02\x12')
if flush:
self.oflush()
- self._send(b'\x02\x12')
return self.spi
def show_framebuf(self, buf):
|
use rm instead of unlink
|
@@ -149,7 +149,7 @@ image: patch_version
clean:
@echo -e "\t[CLEAN] build environment";
rm -r -f $(BUILD_DIR)
- unlink build
+ rm -f build
rm -r -f $(DONUT_HARDWARE_ROOT)/viv_project
rm -r -f $(DONUT_HARDWARE_ROOT)/ip
rm -r -f $(DONUT_HARDWARE_ROOT)/sim/ies
|
options/posix: Add assertion to getcwd()
|
@@ -165,6 +165,7 @@ int ftruncate(int fd, off_t size) {
return 0;
}
char *getcwd(char *buffer, size_t size) {
+ __ensure(buffer && "glibc extension for !buffer is not implemented");
if(!mlibc::sys_getcwd) {
MLIBC_MISSING_SYSDEP();
errno = ENOSYS;
|
removed ath9k_htc devices from know as working list due to driver issue
|
@@ -170,8 +170,6 @@ This list is for information purposes only and should not be regarded as a bindi
* ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
-* ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
-
* ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
* ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
|
Update documentation for the string type
Looks like we had forgotten to update it when we added new operations on strings.
|
@@ -75,9 +75,13 @@ local y: float = i * 1.0
### Strings
Pallene also has a `string` type, for Lua strings.
-The syntax for string literals is the same as in Lua.
+The syntax for string literals is the same as in Lua
+You can use single quotes, double quotes, or `[[`.
-Currently, the only supported operations for Pallene strings are concatenation with the `..` operator and printing strings to stdout with `io.write`.
+The primitive operators that operate on strings are the concatenation operator `..`, the length operator `#`, and the comparison operators (`==`, `~=`, `<`, `>`, `<=`, `>=`).
+
+Pallene also implements some functions from the `string` library.
+Currently we implement `string.char` and `string.sub` but more may be implemented in the future.
### Arrays
|
util/mknum.pl: Call OpenSSL::Ordinals::renumber() for real releases
When the source isn't in development any more (the version number
doesn't the tags 'dev' or 'alpha'), we renumber the unassigned symbols
to ensure that we have fixed numbers on all.
|
@@ -88,6 +88,13 @@ foreach my $f (($symhacks_file // (), @ARGV)) {
close IN;
}
+# As long as we're running in development or alpha releases, we can have
+# symbols without specific numbers assigned. When in beta or final release,
+# all symbols MUST have an assigned number.
+if ($version !~ m/^\d+\.\d+\.\d+(?:[a-z]+)?-(?:dev|alpha)/) {
+ $ordinals->renumber();
+}
+
if ($checkexist) {
my %new_names = map { $_->name() => 1 }
$ordinals->items(comparator => sub { $_[0] cmp $_[1] },
|
pyocf: security test for alru params
|
@@ -179,6 +179,46 @@ def test_neg_set_alru_param(pyocf_ctx, cm, cls):
cache.set_cleaning_policy_param(CleaningPolicy.ALRU, i, 1)
+def get_alru_param_valid_rage(param_id):
+ if param_id == AlruParams.WAKE_UP_TIME:
+ return ConfValidValues.cleaning_alru_wake_up_time_range
+ elif param_id == AlruParams.STALE_BUFFER_TIME:
+ return ConfValidValues.cleaning_alru_staleness_time_range
+ elif param_id == AlruParams.FLUSH_MAX_BUFFERS:
+ return ConfValidValues.cleaning_alru_flush_max_buffers_range
+ elif param_id == AlruParams.ACTIVITY_THRESHOLD:
+ return ConfValidValues.cleaning_alru_activity_threshold_range
+
+
+@pytest.mark.parametrize("cm", CacheMode)
+@pytest.mark.parametrize("cls", CacheLineSize)
+@pytest.mark.parametrize("param", AlruParams)
+@pytest.mark.security
+def test_neg_set_alru_param_value(pyocf_ctx, cm, cls, param):
+ """
+ Test whether it is possible to set invalid value to any of alru cleaning policy params
+ :param pyocf_ctx: basic pyocf context fixture
+ :param cm: cache mode we start with
+ :param cls: cache line size we start with
+ :param param: alru parameter to fuzz
+ :return:
+ """
+ # Start cache device
+ cache_device = Volume(S.from_MiB(30))
+ cache = Cache.start_on_device(cache_device, cache_mode=cm, cache_line_size=cls)
+
+ cache.set_cleaning_policy(CleaningPolicy.ALRU)
+
+ # Set to invalid alru param value and check if failed
+ valid_range = get_alru_param_valid_rage(param)
+ for i in RandomGenerator(DefaultRanges.UINT32):
+ if i in valid_range:
+ continue
+ with pytest.raises(OcfError, match="Error setting cleaning policy param"):
+ cache.set_cleaning_policy_param(CleaningPolicy.ALRU, param, i)
+ print("\n" + i)
+
+
@pytest.mark.parametrize("cm", CacheMode)
@pytest.mark.parametrize("cls", CacheLineSize)
@pytest.mark.security
|
remove unused gpio_t struct
|
@@ -40,21 +40,6 @@ typedef struct __attribute__((__packed__)){
};
}luos_uuid_t;
-// GPIO struct
-typedef struct __attribute__((__packed__)){
- union {
- struct __attribute__((__packed__)){
- float p1;
- uint8_t p5;
- uint8_t p6;
- float p7;
- float p8;
- float p9;
- };
- uint8_t unmap[(4 * sizeof(float)) + 2]; /*!< Uncmaped form. */
- };
- }gpio_t;
-
// Handy struct
typedef struct __attribute__((__packed__)){
union {
|
Update version to fix compilation with vs2019
|
@@ -23,8 +23,9 @@ typedef struct clap_version {
#define CLAP_VERSION_MAJOR ((uint32_t)0)
#define CLAP_VERSION_MINOR ((uint32_t)25)
#define CLAP_VERSION_REVISION ((uint32_t)0)
-#define CLAP_VERSION \
- ((clap_version_t){CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION})
+#define CLAP_VERSION_INIT {CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION}
+
+static const CLAP_CONSTEXPR clap_version_t CLAP_VERSION = CLAP_VERSION_INIT;
// For version 0, we require the same minor version because
// we may still break the ABI at this point
|
VirtualScroller: fix iOS jumpiness case
|
@@ -110,12 +110,10 @@ export default class VirtualScroller<T> extends Component<VirtualScrollerProps<T
scrollbar: 0
};
- this.updateVisible = IS_IOS
- ? _.debounce(this.updateVisible.bind(this), 100)
- : this.updateVisible.bind(this);
+ this.updateVisible = this.updateVisible.bind(this);
this.invertedKeyHandler = this.invertedKeyHandler.bind(this);
- this.onScroll = IS_IOS ? _.debounce(this.onScroll.bind(this), 150) : this.onScroll.bind(this);
+ this.onScroll = IS_IOS ? _.debounce(this.onScroll.bind(this), 400) : this.onScroll.bind(this);
this.scrollKeyMap = this.scrollKeyMap.bind(this);
this.setWindow = this.setWindow.bind(this);
}
|
Added CAN zerobyte write function for SYNC in CANOpen.
|
@@ -221,6 +221,9 @@ uint32_t drvCanWrite(uint8_t channel, uint32_t id, uint8_t *p_data, uint32_t len
if((channel > DRV_CAN_MAX_CH)||(id > 0x1FFFFFFF))
return 0;
+ if(p_data == NULL && length > 0)
+ return 0;
+
uint32_t tx_len, sent_len, i;
CAN_HandleTypeDef *p_hCANx = drv_can_tbl[channel].p_hCANx;
CAN_TxHeaderTypeDef tx_header;
@@ -244,6 +247,7 @@ uint32_t drvCanWrite(uint8_t channel, uint32_t id, uint8_t *p_data, uint32_t len
tx_header.RTR = CAN_RTR_DATA;
sent_len = 0;
+
while(sent_len < length)
{
tx_len = length - sent_len;
@@ -268,6 +272,17 @@ uint32_t drvCanWrite(uint8_t channel, uint32_t id, uint8_t *p_data, uint32_t len
}
}
+ if(length == 0)
+ {
+ tx_header.DLC = 0;
+
+ if(HAL_CAN_AddTxMessage(p_hCANx, &tx_header, tx_data, &tx_mailbox) == HAL_OK)
+ {
+ /* Wait transmission complete */
+ while(HAL_CAN_GetTxMailboxesFreeLevel(p_hCANx) != 3);
+ }
+ }
+
return sent_len;
}
|
move use_opaque_psk
|
@@ -402,28 +402,6 @@ static void ssl_update_checksum_sha256( mbedtls_ssl_context *, const unsigned ch
static void ssl_update_checksum_sha384( mbedtls_ssl_context *, const unsigned char *, size_t );
#endif /* MBEDTLS_SHA384_C */
-#if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED) && \
- defined(MBEDTLS_USE_PSA_CRYPTO)
-static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl )
-{
- if( ssl->conf->f_psk != NULL )
- {
- /* If we've used a callback to select the PSK,
- * the static configuration is irrelevant. */
- if( ! mbedtls_svc_key_id_is_null( ssl->handshake->psk_opaque ) )
- return( 1 );
-
- return( 0 );
- }
-
- if( ! mbedtls_svc_key_id_is_null( ssl->conf->psk_opaque ) )
- return( 1 );
-
- return( 0 );
-}
-#endif /* MBEDTLS_USE_PSA_CRYPTO &&
- MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
-
int mbedtls_ssl_tls_prf( const mbedtls_tls_prf_types prf,
const unsigned char *secret, size_t slen,
const char *label,
@@ -7965,6 +7943,29 @@ static int ssl_set_handshake_prfs( mbedtls_ssl_handshake_params *handshake,
return( 0 );
}
+
+#if defined(MBEDTLS_KEY_EXCHANGE_PSK_ENABLED) && \
+ defined(MBEDTLS_USE_PSA_CRYPTO)
+static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl )
+{
+ if( ssl->conf->f_psk != NULL )
+ {
+ /* If we've used a callback to select the PSK,
+ * the static configuration is irrelevant. */
+ if( ! mbedtls_svc_key_id_is_null( ssl->handshake->psk_opaque ) )
+ return( 1 );
+
+ return( 0 );
+ }
+
+ if( ! mbedtls_svc_key_id_is_null( ssl->conf->psk_opaque ) )
+ return( 1 );
+
+ return( 0 );
+}
+#endif /* MBEDTLS_USE_PSA_CRYPTO &&
+ MBEDTLS_KEY_EXCHANGE_PSK_ENABLED */
+
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
#endif /* MBEDTLS_SSL_TLS_C */
|
Link Checker: Disable check for LLVM webpages
|
@@ -20,11 +20,9 @@ http://www.snmp.com/protocol
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.81.7888
# LLVM links broken currently
https://clang.llvm.org/docs/ClangFormat.html
-https://clang.llvm.org/docs/ClangFormat.html
-https://clang.llvm.org/docs/ClangFormat.html
-https://clang.llvm.org/docs/ClangFormat.html
-https://clang.llvm.org/docs/ClangFormat.html
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
https://clang.llvm.org/index.html
-https://jira.apache.org/jira/browse/MDEP-518
+https://llvm.org/docs/XRay.html
https://llvm.org/docs/XRayExample.html
+https://jira.apache.org/jira/browse/MDEP-518
+
|
SOVERSION bump to version 2.7.1
|
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 7)
-set(LIBYANG_MICRO_SOVERSION 0)
+set(LIBYANG_MICRO_SOVERSION 1)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
|
CMSIS-DSP: API corrections in bitreversal_f16
|
@@ -41,7 +41,7 @@ void arm_bitreversal_f16(
float16_t * pSrc,
uint16_t fftSize,
uint16_t bitRevFactor,
-uint16_t * pBitRevTab)
+const uint16_t * pBitRevTab)
{
uint16_t fftLenBy2, fftLenBy2p1;
uint16_t i, j;
|
whrlpool/asm/wp-x86_64.pl: add CFI annotations.
|
@@ -66,13 +66,21 @@ $code=<<___;
.type $func,\@function,3
.align 16
$func:
+.cfi_startproc
mov %rsp,%rax
+.cfi_def_cfa_register %rax
push %rbx
+.cfi_push %rbx
push %rbp
+.cfi_push %rbp
push %r12
+.cfi_push %r12
push %r13
+.cfi_push %r13
push %r14
+.cfi_push %r14
push %r15
+.cfi_push %r15
sub \$128+40,%rsp
and \$-64,%rsp
@@ -82,6 +90,7 @@ $func:
mov %rsi,8(%r10)
mov %rdx,16(%r10)
mov %rax,32(%r10) # saved stack pointer
+.cfi_cfa_expression %rsp+`128+32`,deref,+8
.Lprologue:
mov %r10,%rbx
@@ -205,15 +214,24 @@ $code.=<<___;
jmp .Louterloop
.Lalldone:
mov 32(%rbx),%rsi # restore saved pointer
+.cfi_def_cfa %rsi,8
mov -48(%rsi),%r15
+.cfi_restore %r15
mov -40(%rsi),%r14
+.cfi_restore %r14
mov -32(%rsi),%r13
+.cfi_restore %r13
mov -24(%rsi),%r12
+.cfi_restore %r12
mov -16(%rsi),%rbp
+.cfi_restore %rbp
mov -8(%rsi),%rbx
+.cfi_restore %rbx
lea (%rsi),%rsp
+.cfi_def_cfa_register %rsp
.Lepilogue:
ret
+.cfi_endproc
.size $func,.-$func
.align 64
|
Add comment about constant_mask
Fixes
|
@@ -8,6 +8,23 @@ extern "C" {
#pragma pack(push, CLAP_ALIGN)
+// Sample code for reading a stereo buffer:
+//
+// bool isLeftConstant = (buffer->constant_mask & (1 << 0)) != 0;
+// bool isRightConstant = (buffer->constant_mask & (1 << 1)) != 0;
+//
+// for (int i = 0; i < N; ++i) {
+// float l = data32[0][i * isLeftConstant];
+// float r = data32[1][i * isRightConstant];
+// }
+//
+// Note: checking the constant mask is optional, and this implies that
+// the buffer must be filled with the constant value.
+// Rationale: if a buffer reader doesn't check the constant mask, then it may
+// process garbage samples and in result, garbage samples may be transmitted
+// to the audio interface with all the bad consequences it can have.
+//
+// The constant mask is a hint.
typedef struct clap_audio_buffer {
// Either data32 or data64 pointer will be set.
float **data32;
|
Fix CryptoPP compilation issues on iOS
|
@@ -39,6 +39,7 @@ if(WIN32)
endif(WIN32)
if(IOS)
+ add_definitions("-DCRYPTOPP_NO_CXX17")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fobjc-arc -fmodules -fvisibility=hidden")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fobjc-arc -fmodules -stdlib=libc++ -std=c++17 -ftemplate-depth=1024 -fexceptions -frtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-aligned-allocation")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Os")
|
evp_extra_test2: Test DH param checks with non-NULL libctx
|
@@ -376,6 +376,13 @@ static int test_dh_paramgen(void)
&& TEST_true(EVP_PKEY_paramgen(gctx, &pkey))
&& TEST_ptr(pkey);
+ EVP_PKEY_CTX_free(gctx);
+ gctx = NULL;
+
+ ret = ret && TEST_ptr(gctx = EVP_PKEY_CTX_new_from_pkey(mainctx, pkey, NULL))
+ && TEST_int_eq(EVP_PKEY_param_check(gctx), 1)
+ && TEST_int_eq(EVP_PKEY_param_check_quick(gctx), 1);
+
EVP_PKEY_CTX_free(gctx);
EVP_PKEY_free(pkey);
return ret;
|
Move virtualization option to Miscellaneous menu
|
@@ -779,7 +779,6 @@ PPH_EMENU PhpCreateProcessMenu(
PhInsertEMenuItem(menu, PhCreateEMenuSeparator(), ULONG_MAX);
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_PROCESS_CREATEDUMPFILE, L"Create dump fi&le...", NULL, NULL), ULONG_MAX);
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_PROCESS_DEBUG, L"De&bug", NULL, NULL), ULONG_MAX);
- PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_PROCESS_VIRTUALIZATION, L"Virtuali&zation", NULL, NULL), ULONG_MAX);
PhInsertEMenuItem(menu, PhCreateEMenuSeparator(), ULONG_MAX);
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_PROCESS_AFFINITY, L"&Affinity", NULL, NULL), ULONG_MAX);
PhInsertEMenuItem(menu, PhCreateEMenuItem(0, ID_PROCESS_BOOST, L"&Boost", NULL, NULL), ULONG_MAX);
@@ -817,6 +816,7 @@ PPH_EMENU PhpCreateProcessMenu(
PhInsertEMenuItem(menuItem, PhCreateEMenuItem(0, ID_MISCELLANEOUS_REDUCEWORKINGSET, L"Reduce working &set", NULL, NULL), ULONG_MAX);
PhInsertEMenuItem(menuItem, PhCreateEMenuItem(0, ID_MISCELLANEOUS_RUNAS, L"&Run as...", NULL, NULL), ULONG_MAX);
PhInsertEMenuItem(menuItem, PhCreateEMenuItem(0, ID_MISCELLANEOUS_RUNASTHISUSER, L"Run &as this user...", NULL, NULL), ULONG_MAX);
+ PhInsertEMenuItem(menuItem, PhCreateEMenuItem(0, ID_PROCESS_VIRTUALIZATION, L"Virtuali&zation", NULL, NULL), ULONG_MAX);
PhInsertEMenuItem(menu, menuItem, ULONG_MAX);
menuItem = PhCreateEMenuItem(0, ID_PROCESS_WINDOW, L"&Window", NULL, NULL);
|
Correct MMIO read timeout value.
|
@@ -47,7 +47,8 @@ parameter CCIP_MDATA_WIDTH = 16;
// Number of requests that can be accepted after almost full is asserted.
parameter CCIP_TX_ALMOST_FULL_THRESHOLD = 8;
-parameter CCIP_MMIO_RD_TIMEOUT = 512;
+// pClk cycles by which an MMIO read response must be generated.
+parameter CCIP_MMIO_RD_TIMEOUT = 65536;
parameter CCIP_SYNC_RESET_POLARITY=1; // Active High Reset
|
cache: respect XDG_CACHE_HOME
|
@@ -63,18 +63,20 @@ static char * elektraStrConcat (const char * a, const char * b)
static int resolveCacheDirectory (Plugin * handle, CacheHandle * ch, Key * errorKey)
{
+ KeySet * resolverConfig;
char * cacheDir = getenv ("XDG_CACHE_HOME");
if (cacheDir)
{
cacheDir = elektraStrConcat (cacheDir, "/elektra");
+ ch->cachePath = keyNew ("system/elektracache", KEY_END);
+ resolverConfig = ksNew (5, keyNew ("system/path", KEY_VALUE, cacheDir, KEY_END), KS_END);
}
else
{
- cacheDir = getenv ("HOME");
- cacheDir = elektraStrConcat (cacheDir, "/.cache/elektra");
+ ch->cachePath = keyNew ("user/elektracache", KEY_END);
+ resolverConfig = ksNew (5, keyNew ("user/path", KEY_VALUE, "/.cache/elektra", KEY_END), KS_END);
}
- KeySet * resolverConfig = ksNew (5, keyNew ("user/path", KEY_VALUE, cacheDir, KEY_END), KS_END);
ch->resolver = elektraPluginOpen (KDB_RESOLVER, ch->modules, resolverConfig, ch->cachePath);
if (!ch->resolver)
{
@@ -196,14 +198,14 @@ static char * kdbCacheFileName (CacheHandle * ch, Key * parentKey, PathMode mode
ELEKTRA_LOG_DEBUG ("mountpoint name: %s", name);
if (strlen (name) != 0)
{
- cacheFileName = elektraStrConcat (directory, "/backend/");
+ cacheFileName = elektraStrConcat (directory, "/backend");
char * tmp = cacheFileName;
cacheFileName = elektraStrConcat (cacheFileName, name);
elektraFree (tmp);
}
else if (elektraStrCmp (value, "default") == 0)
{
- cacheFileName = elektraStrConcat (directory, "/default/");
+ cacheFileName = elektraStrConcat (directory, "/default");
}
else
{
@@ -251,7 +253,6 @@ int elektraCacheOpen (Plugin * handle, Key * errorKey)
ch->modules = ksNew (0, KS_END);
elektraModulesInit (ch->modules, 0);
- ch->cachePath = keyNew ("user/elektracache", KEY_END);
if (resolveCacheDirectory (handle, ch, errorKey) == -1) return ELEKTRA_PLUGIN_STATUS_ERROR;
if (loadCacheStoragePlugin (handle, ch, errorKey) == -1) return ELEKTRA_PLUGIN_STATUS_ERROR;
|
add text time to debug
|
@@ -355,7 +355,7 @@ def create_frame(codec, beatmap, skin, paths, replay_event, resultinfo, start_in
while frame_info.osr_index < end_index: # len(replay_event) - 3:
status = render_draw(beatmap, component, cursor_event, frame_info, img, np_img, pbuffer,
preempt_followpoint, replay_event, start_index, time_preempt, updater, settings)
-
+ cv2.putText(np_img, str(replay_event[frame_info.osr_index][TIMES]), (100, 100), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255, 255), 2)
if status:
im = cv2.cvtColor(np_img, cv2.COLOR_BGRA2RGB)
writer.write(im)
|
driver/retimer/pi3hdx1204.h: Format with clang-format
BRANCH=none
TEST=none
|
#define PI3HDX1204_POWER_ON_DELAY_MS 13
/* Enable or disable the PI3HDX1204. */
-int pi3hdx1204_enable(const int i2c_port,
- const uint16_t i2c_addr_flags,
+int pi3hdx1204_enable(const int i2c_port, const uint16_t i2c_addr_flags,
const int enable);
struct pi3hdx1204_tuning {
|
compare git version with .version
|
@@ -39,6 +39,15 @@ if (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
list(GET PROJECT_VERSION_LIST 1 PROJECT_VERSION_MINOR)
list(GET PROJECT_VERSION_LIST 2 PROJECT_VERSION_PATCH)
set(__detect_version 1)
+ set(__version_str "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
+ if(EXISTS "${PROJECT_SOURCE_DIR}/.version")
+ file(READ "${PROJECT_SOURCE_DIR}/.version" __version_file)
+ if(NOT __version_str STREQUAL __version_file)
+ message(STATUS "Rewrite ${PROJECT_SOURCE_DIR}/.version with ${__version_str}")
+ endif()
+ else()
+ file(WRITE "${PROJECT_SOURCE_DIR}/.version" ${__version_str})
+ endif()
else()
message(STATUS "Fail to extract version's parts from \"${PROJECT_VERSION}\"")
endif()
|
mock: change use of strncat_s to strcat_s
safestr does not currently include strncat_s so this changes mock.c to
use strcat_s instead.
|
@@ -230,7 +230,7 @@ int ioctl(int fd, unsigned long request, ...)
hash = stupid_hash((uint32_t*)pr->buffer_address, pr->buffer_size / 4);
/* write hash to file in tmp */
strncpy_s(hashfilename, MAX_STRLEN, mock_devs[fd].pathname, strlen(mock_devs[fd].pathname) + 1);
- strncat_s(hashfilename, MAX_STRLEN, HASH_SUFFIX, sizeof(HASH_SUFFIX));
+ strcat_s(hashfilename, MAX_STRLEN, HASH_SUFFIX);
FILE* hashfile = fopen(hashfilename, "w");
if (hashfile) {
|
Documentation change only: add Quick Start Guide section to main README.md.
|
@@ -153,6 +153,23 @@ Configuration information for the examples and the tests can be found in the `cf
| Wi-Fi | The [sockets](/example/sockets "sockets example") example brings up a TCP/UDP socket by using the [device](/common/device "device API"), [network](/common/network "network API") and [sock](/common/sock "sock API") APIs. |
| GNSS | [location](/example/location "location example") example using a GNSS chip connected directly or via a cellular module.|
+# Quick Start Guide
+It is easy to get started with `ubxlib` using the [examples](/example) listed above and the build files in this repository as a basis.
+
+A step-by-step description of how to get started with an application based on `ubxlib` is given below:
+- Copy the source files for the [example](/example) that is closest to your intended application to your project directory.
+- Remove all definitions and include files that are related purely to the `ubxlib` test system; for example you only need to include the [ubxlib.h](/ubxlib.h) file and you will want the entry point to be something like `int main()` rather than `U_PORT_TEST_FUNCTION(...)`.
+- Adapt the definitions needed for your example, see the include file `u_cfg_app_platform_specific.h` for your platform; some examples of definitions that need to be set are:
+ - UART number and UART pins to use for connecting the MCU to the target module,
+ - network credentials (e.g. Wi-Fi SSID and password).
+- Copy the make or cmake files from the `runner` directory of the port ([port/platform/](/port/platform/)) of your chosen MCU and adapt them to your application:
+ - point out the `ubxlib` directory by setting the `UBXLIB_BASE` variable,
+ - remove any definitions related to the `ubxlib` test environment as you wish,
+ - if needed, add the source file(s) of your application to the make/cmake files.
+- Build and flash your adapted example using your IDE of choice or command-line make/cmake.
+
+General information about the build system is available in the [port directory](/port) and platform specific information is available in the [platform specific port directory](/port/platform) for your chosen MCU.
+
# Feature Request And Roadmap
New features can be requested and up-voted [here](https://github.com/u-blox/ubxlib/issues/12). The comments of this issue also contains an outlook about features of upcoming releases. Also it is the right place to discuss features and their priority.
|
{AH} add libctabixproxies to __all__, see
|
@@ -11,6 +11,8 @@ import pysam.libcfaidx as libcfaidx
from pysam.libcfaidx import *
import pysam.libctabix as libctabix
from pysam.libctabix import *
+import pysam.libctabixproxies as libctabixproxies
+from pysam.libctabixproxies import *
import pysam.libcsamfile as libcsamfile
from pysam.libcsamfile import *
import pysam.libcalignmentfile as libcalignmentfile
@@ -38,6 +40,7 @@ __all__ = \
libcbcf.__all__ +\
libcbgzf.__all__ +\
libcfaidx.__all__ +\
+ libctabixproxies.__all__ +\
libcalignmentfile.__all__ +\
libcalignedsegment.__all__ +\
libcsamfile.__all__ +\
|
Fix snapcraft builds.
|
@@ -13,22 +13,22 @@ icon: server/printer.png
apps:
server:
- command: sbin/ippserver
+ command: sbin/server
plugs: [avahi-observe, home, network, network-bind]
find:
- command: bin/ippfind
+ command: bin/find
plugs: [avahi-observe, home, network]
proxy:
- command: sbin/ippproxy
+ command: sbin/proxy
plugs: [avahi-observe, home, network]
tool:
- command: bin/ipptool
+ command: bin/tool
plugs: [avahi-observe, home, network]
transform:
- command: bin/ipptransform
+ command: bin/transform
plugs: [avahi-observe, home, network]
transform3d:
- command: bin/ipptransform3d
+ command: bin/transform3d
plugs: [avahi-observe, home, network]
parts:
|
zephyr/shim/chip/npcx/system_external_storage.c: Format with clang-format
BRANCH=none
TEST=none
|
@@ -66,8 +66,8 @@ void system_jump_to_booter(void)
*/
switch (system_get_shrspi_image_copy()) {
case EC_IMAGE_RW:
- flash_offset = CONFIG_EC_WRITABLE_STORAGE_OFF +
- CONFIG_RW_STORAGE_OFF;
+ flash_offset =
+ CONFIG_EC_WRITABLE_STORAGE_OFF + CONFIG_RW_STORAGE_OFF;
flash_used = CONFIG_RW_SIZE;
break;
#ifdef CONFIG_RW_B
@@ -79,15 +79,15 @@ void system_jump_to_booter(void)
#endif
case EC_IMAGE_RO:
default: /* Jump to RO by default */
- flash_offset = CONFIG_EC_PROTECTED_STORAGE_OFF +
- CONFIG_RO_STORAGE_OFF;
+ flash_offset =
+ CONFIG_EC_PROTECTED_STORAGE_OFF + CONFIG_RO_STORAGE_OFF;
flash_used = CONFIG_RO_SIZE;
break;
}
/* Make sure the reset vector is inside the destination image */
- addr_entry = *(uintptr_t *)(flash_offset +
- CONFIG_MAPPED_STORAGE_BASE + 4);
+ addr_entry =
+ *(uintptr_t *)(flash_offset + CONFIG_MAPPED_STORAGE_BASE + 4);
/*
* Speed up FW download time by increasing clock freq of EC. It will
@@ -104,19 +104,24 @@ void system_jump_to_booter(void)
/* Bypass for GMDA issue of ROM api utilities */
#if defined(CONFIG_SOC_SERIES_NPCX5) || \
defined(CONFIG_PLATFORM_EC_WORKAROUND_FLASH_DOWNLOAD_API)
- system_download_from_flash(
- flash_offset, /* The offset of the data in spi flash */
- CONFIG_PROGRAM_MEMORY_BASE, /* RAM Addr of downloaded data */
+ system_download_from_flash(flash_offset, /* The offset of the data in
+ spi flash */
+ CONFIG_PROGRAM_MEMORY_BASE, /* RAM Addr of
+ downloaded
+ data */
flash_used, /* Number of bytes to download */
- addr_entry /* jump to this address after download */
+ addr_entry /* jump to this address after
+ download */
);
#else
- download_from_flash(
- flash_offset, /* The offset of the data in spi flash */
- CONFIG_PROGRAM_MEMORY_BASE, /* RAM Addr of downloaded data */
+ download_from_flash(flash_offset, /* The offset of the data in spi flash
+ */
+ CONFIG_PROGRAM_MEMORY_BASE, /* RAM Addr of
+ downloaded data */
flash_used, /* Number of bytes to download */
SIGN_NO_CHECK, /* Need CRC check or not */
- addr_entry, /* jump to this address after download */
+ addr_entry, /* jump to this address after download
+ */
&status /* Status fo download */
);
#endif
|
Quick fix to _oc_copy_string_to_string_array
|
@@ -112,7 +112,7 @@ _oc_copy_string_to_string_array(oc_string_array_t *ocstringarray,
if (strlen(str) >= STRING_ARRAY_ITEM_MAX_LEN) {
return false;
}
- uint8_t pos = index * STRING_ARRAY_ITEM_MAX_LEN;
+ int pos = index * STRING_ARRAY_ITEM_MAX_LEN;
memcpy(oc_string(*ocstringarray) + pos, (const uint8_t *)str, strlen(str));
memcpy(oc_string(*ocstringarray) + pos + strlen(str), (const uint8_t *)"", 1);
return true;
|
Add getarch flags to disable AVX on x86
(and other small fixes to match Makefile behaviour)
|
@@ -70,6 +70,13 @@ if (X86_64)
set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native")
endif ()
+# On x86 no AVX support is available
+if (X86 OR X86_64)
+if ((DEFINED BINARY AND BINARY EQUAL 32) OR ("$CMAKE_SIZEOF_VOID_P}" EQUAL "4"))
+ set(GETARCH_FLAGS "${GETARCH_FLAGS} -DNO_AVX -DNO_AVX2 -DNO_AVX512")
+endif ()
+endif ()
+
if (INTERFACE64)
message(STATUS "Using 64-bit integers.")
set(GETARCH_FLAGS "${GETARCH_FLAGS} -DUSE64BITINT")
@@ -148,7 +155,9 @@ else()
endif ()
include("${PROJECT_SOURCE_DIR}/cmake/prebuild.cmake")
-
+if (DEFINED BINARY)
+ message(STATUS "Compiling a ${BINARY}-bit binary.")
+endif ()
if (NOT DEFINED NEED_PIC)
set(NEED_PIC 1)
endif ()
@@ -165,6 +174,9 @@ include("${PROJECT_SOURCE_DIR}/cmake/cc.cmake")
if (NOT NOFORTRAN)
# Fortran Compiler dependent settings
include("${PROJECT_SOURCE_DIR}/cmake/fc.cmake")
+else ()
+set(NO_LAPACK 1)
+set(NO_LAPACKE 1)
endif ()
if (BINARY64)
@@ -190,10 +202,15 @@ if (NEED_PIC)
endif ()
if (DYNAMIC_ARCH)
+ if (X86 OR X86_64 OR ARM64 OR PPC)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_ARCH")
if (DYNAMIC_OLDER)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_OLDER")
endif ()
+ else ()
+ unset (DYNAMIC_ARCH)
+ message (STATUS "DYNAMIC_ARCH is not supported on the target architecture, removing")
+ endif ()
endif ()
if (DYNAMIC_LIST)
|
[autotools] Fix for CMake missing files in the autotools distribution
|
@@ -16,6 +16,10 @@ SUBDIRS = \
EXTRA_DIST = \
CMakeLists.txt \
cmake/CmDaB.cmake \
+ cmake/autoheader.cmake \
+ cmake/options.cmake \
+ cmake/post-test.cmake \
+ cmake/test-functions.cmake \
IXML.cmake.in \
UPNP.cmake.in \
ixml/CMakeLists.txt \
|
Disable SOF ISR feedback calcuation by default s.t. examples still work
|
// Determine feedback value within SOF ISR within audio driver - if disabled the user has to call tud_audio_n_fb_set() with a suitable feedback value on its own. If done within audio driver SOF ISR, tud_audio_n_fb_set() is disabled for user
#ifndef CFG_TUD_AUDIO_ENABLE_FEEDBACK_DETERMINATION_WITHIN_SOF_ISR
-#define CFG_TUD_AUDIO_ENABLE_FEEDBACK_DETERMINATION_WITHIN_SOF_ISR 1 // 0 or 1
+#define CFG_TUD_AUDIO_ENABLE_FEEDBACK_DETERMINATION_WITHIN_SOF_ISR 0 // 0 or 1
#endif
// Feeback calculation mode
|
Don't use bogus IP if network gateway couldn't be determined
|
@@ -1077,7 +1077,7 @@ void DeRestPluginPrivate::configToMap(const ApiRequest &req, QVariantMap &map)
}
else
{
- map["gateway"] = "192.168.178.1";
+ map["gateway"] = "0.0.0.0";
}
}
|
Temporarily disable offending strategies to make tests not fail for everyone
|
@@ -15,6 +15,8 @@ test-kvazaar: &test-template
- src/kvazaar
- src/.libs
expire_in: 1 week
+ variables:
+ KVAZAAR_OVERRIDE_inter_recon_bipred: generic
test-asan:
<<: *test-template
@@ -26,16 +28,19 @@ test-asan:
# AddressSanitizer adds some extra symbols so we expect a failure from
# the external symbols test.
XFAIL_TESTS: test_external_symbols.sh
+ KVAZAAR_OVERRIDE_inter_recon_bipred: generic
test-tsan:
<<: *test-template
variables:
CFLAGS: '-fsanitize=thread'
+ KVAZAAR_OVERRIDE_inter_recon_bipred: generic
test-ubsan:
<<: *test-template
variables:
CFLAGS: '-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment'
+ KVAZAAR_OVERRIDE_inter_recon_bipred: generic
test-valgrind:
<<: *test-template
@@ -44,4 +49,5 @@ test-valgrind:
KVAZAAR_OVERRIDE_sao_band_ddistortion: generic
KVAZAAR_OVERRIDE_sao_edge_ddistortion: generic
KVAZAAR_OVERRIDE_calc_sao_edge_dir: generic
+ KVAZAAR_OVERRIDE_inter_recon_bipred: generic
KVZ_TEST_VALGRIND: 1
|
The library should be called .so
|
@@ -15,7 +15,7 @@ class build(_build):
errno = call(["make", "-Cbuild", "_ccllib"])
if errno != 0:
raise SystemExit(errno)
- errno = call(["cp", "build/_ccllib.*", "pyccl/"])
+ errno = call(["cp", "build/_ccllib.so", "pyccl/"])
if errno != 0:
raise SystemExit(errno)
errno = call(["cp", "build/ccllib.py", "pyccl/"])
|
documented missing oscore functions
|
@@ -617,16 +617,59 @@ int oc_obt_device_hard_reset(oc_uuid_t *uuid, oc_obt_device_status_cb_t cb,
int oc_obt_provision_pairwise_credentials(oc_uuid_t *uuid1, oc_uuid_t *uuid2,
oc_obt_status_cb_t cb, void *data);
+/**
+ * @brief provision pairwise oscore contexts
+ *
+ * @param uuid1 uuid of the first device to pair
+ * @param uuid2 uuid of the second device to pair
+ * @param cb callback invoked to indicate the success or failure of the
+ * pairwise credentials provisioning
+ * @param data context pointer that is passed to the
+ * oc_obt_status_cb_t. The pointer must remain valid till the
+ * end of the oc_obt_status_cb_t function
+ * @return int
+ * - `0` on success
+ * - `-1` on failure
+ */
int oc_obt_provision_pairwise_oscore_contexts(oc_uuid_t *uuid1,
oc_uuid_t *uuid2,
oc_obt_status_cb_t cb,
void *data);
+/**
+ * @brief provision the oscore client group on the device
+ *
+ * @param uuid uuid of the device to provision
+ * @param desc the group description
+ * @param cb callback invoked to indicate the success or failure of the
+ * oscore group provisioning
+ * @param data context pointer that is passed to the
+ * oc_obt_status_cb_t. The pointer must remain valid till the
+ * end of the oc_obt_status_cb_t function
+ * @return int
+ * - `0` on success
+ * - `-1` on failure
+ */
int oc_obt_provision_client_group_oscore_context(oc_uuid_t *uuid,
const char *desc,
oc_obt_device_status_cb_t cb,
void *data);
+/**
+ * @brief provision the group contenxt on the devic
+ *
+ * @param uuid uuid of the device to provision
+ * @param subjectuuid the subject
+ * @param desc the description
+ * @param cb callback invoked to indicate the success or failure of the
+ * oscore group provisioning
+ * @param data context pointer that is passed to the
+ * oc_obt_status_cb_t. The pointer must remain valid till the
+ * end of the oc_obt_status_cb_t function
+ * @return int
+ * - `0` on success
+ * - `-1` on failure
+ */
int oc_obt_provision_server_group_oscore_context(oc_uuid_t *uuid,
oc_uuid_t *subjectuuid,
const char *desc,
|
sysdeps/managarm: Convert sys_socketpair to bragi
|
@@ -983,40 +983,27 @@ int sys_socketpair(int domain, int type_and_flags, int proto, int *fds) {
__ensure(!((type_and_flags & flags_mask) & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)));
SignalGuard sguard;
- HelAction actions[3];
- globalQueue.trim();
- managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
- req.set_request_type(managarm::posix::CntReqType::SOCKPAIR);
+ managarm::posix::SockpairRequest<MemoryAllocator> req(getSysdepsAllocator());
req.set_domain(domain);
req.set_socktype(type_and_flags & type_mask);
req.set_protocol(proto);
req.set_flags(type_and_flags & flags_mask);
- frg::string<MemoryAllocator> ser(getSysdepsAllocator());
- req.SerializeToString(&ser);
- actions[0].type = kHelActionOffer;
- actions[0].flags = kHelItemAncillary;
- actions[1].type = kHelActionSendFromBuffer;
- actions[1].flags = kHelItemChain;
- actions[1].buffer = ser.data();
- actions[1].length = ser.size();
- actions[2].type = kHelActionRecvInline;
- actions[2].flags = 0;
- HEL_CHECK(helSubmitAsync(getPosixLane(), actions, 3,
- globalQueue.getQueue(), 0, 0));
-
- auto element = globalQueue.dequeueSingle();
- auto offer = parseSimple(element);
- auto send_req = parseSimple(element);
- auto recv_resp = parseInline(element);
+ auto [offer, sendReq, recvResp] = exchangeMsgsSync(
+ getPosixLane(),
+ helix_ng::offer(
+ helix_ng::sendBragiHeadOnly(req, getSysdepsAllocator()),
+ helix_ng::recvInline()
+ )
+ );
- HEL_CHECK(offer->error);
- HEL_CHECK(send_req->error);
- HEL_CHECK(recv_resp->error);
+ HEL_CHECK(offer.error());
+ HEL_CHECK(sendReq.error());
+ HEL_CHECK(recvResp.error());
managarm::posix::SvrResponse<MemoryAllocator> resp(getSysdepsAllocator());
- resp.ParseFromArray(recv_resp->data, recv_resp->length);
+ resp.ParseFromArray(recvResp.data(), recvResp.length());
__ensure(resp.error() == managarm::posix::Errors::SUCCESS);
__ensure(resp.fds_size() == 2);
fds[0] = resp.fds(0);
|
vio-svc: rhbz#1925144: resolve symbolic links on path walkthough
Handle the case when a file is accessed using a full path (e.g.
"type z:\linkdir\myfile.txt").
|
@@ -113,6 +113,9 @@ static NTSTATUS SetFileSize(FSP_FILE_SYSTEM *FileSystem, PVOID FileContext0,
static VOID FixReparsePointAttributes(VIRTFS *VirtFs, uint64_t nodeid,
UINT32 *PFileAttributes);
+static NTSTATUS VirtFsLookupFileName(HANDLE Device, PWSTR FileName,
+ FUSE_LOOKUP_OUT *LookupOut);
+
static int64_t GetUniqueIdentifier()
{
static int64_t uniq = 1;
@@ -605,6 +608,8 @@ static NTSTATUS SubmitReadLinkRequest(HANDLE Device, UINT64 NodeId,
static NTSTATUS PathWalkthough(HANDLE Device, CHAR *FullPath,
CHAR **FileName, UINT64 *Parent)
{
+ WCHAR SubstituteName[MAX_PATH];
+ USHORT SubstituteNameLength = 0;
NTSTATUS Status = STATUS_SUCCESS;
FUSE_LOOKUP_OUT LookupOut;
CHAR *Separator;
@@ -622,6 +627,23 @@ static NTSTATUS PathWalkthough(HANDLE Device, CHAR *FullPath,
break;
}
+ if ((LookupOut.entry.attr.mode & S_IFLNK) == S_IFLNK)
+ {
+ Status = SubmitReadLinkRequest(Device, LookupOut.entry.nodeid,
+ SubstituteName, &SubstituteNameLength);
+
+ if (!NT_SUCCESS(Status))
+ {
+ break;
+ }
+
+ Status = VirtFsLookupFileName(Device, SubstituteName, &LookupOut);
+ if (!NT_SUCCESS(Status))
+ {
+ break;
+ }
+ }
+
*Parent = LookupOut.entry.nodeid;
*FileName = Separator + 1;
}
|
avoid deadlock with BSD systems that call malloc from the dynamic linker
extend the exception used for macOS to cover also OpenBSD (tested in 6.4+)
and DragonFlyBSD (tested in 5.6.2)
|
@@ -10,7 +10,8 @@ terms of the MIT license. A copy of the license can be found in the file
#include "mimalloc-types.h"
-#if defined(MI_MALLOC_OVERRIDE) && (defined(__APPLE__) || defined(__OpenBSD__))
+#if defined(MI_MALLOC_OVERRIDE) && \
+ (defined(__APPLE__) || defined(__OpenBSD__) || defined(__DragonFly__))
#define MI_TLS_RECURSE_GUARD
#endif
@@ -221,7 +222,7 @@ extern mi_decl_thread mi_heap_t* _mi_heap_default; // default heap to allocate
static inline mi_heap_t* mi_get_default_heap(void) {
#ifdef MI_TLS_RECURSE_GUARD
- // on some platforms, like macOS, the dynamic loader calls `malloc`
+ // on some BSD platforms, like macOS, the dynamic loader calls `malloc`
// to initialize thread local data. To avoid recursion, we need to avoid
// accessing the thread local `_mi_default_heap` until our module is loaded
// and use the statically allocated main heap until that time.
|
Increased entropy of shmKey to avoid collisions between genomes.
|
#include <unistd.h>
#include <sys/stat.h>
-//arbitrary number for ftok function
-#define SHM_projectID 23
-
Genome::Genome (Parameters &P, ParametersGenome &pGe): shmStart(NULL), P(P), pGe(pGe), sharedMemory(NULL)
{
- shmKey=ftok(pGe.gDir.c_str(),SHM_projectID);
+ struct stat stbuf;
+ stat(pGe.gDir.c_str(), &stbuf);
+ shmKey=stbuf.st_ino;
genomeOut.g=this;//will change if genomeOut is different from genomeMain
genomeOut.convYes=false;
sjdbOverhang = pGe.sjdbOverhang; //will be re-defined later if another value was used for the generated genome
|
rm mask and category declarations;
|
@@ -153,10 +153,6 @@ void lovrShapeGetPosition(Shape* shape, float* x, float* y, float* z);
void lovrShapeSetPosition(Shape* shape, float x, float y, float z);
void lovrShapeGetOrientation(Shape* shape, float* angle, float* x, float* y, float* z);
void lovrShapeSetOrientation(Shape* shape, float angle, float x, float y, float z);
-uint32_t lovrShapeGetCategory(Shape* shape);
-void lovrShapeSetCategory(Shape* shape, uint32_t category);
-uint32_t lovrShapeGetMask(Shape* shape);
-void lovrShapeSetMask(Shape* shape, uint32_t mask);
void lovrShapeGetMass(Shape* shape, float density, float* cx, float* cy, float* cz, float* mass, float inertia[6]);
void lovrShapeGetAABB(Shape* shape, float aabb[6]);
|
Fixed hard fault on ST and TI Caused By Call To xProvisionDevice
xProvisionDevice checks for NULL certs and keys, but a path existed that caused it to try and provision a NULL private key.
This caused a hard fault on ST and TI when credentials were NULL.
|
@@ -1028,6 +1028,10 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
configPRINTF( ( "Warning: could not clean-up old crypto objects. %d \r\n", xResult ) );
}
}
+ else
+ {
+ xResult = CKR_ARGUMENTS_BAD;
+ }
#endif /* if ( pkcs11configIMPORT_PRIVATE_KEYS_SUPPORTED == 1 ) */
/* If a client certificate has been provided by the caller, attempt to
@@ -1045,6 +1049,10 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
configPRINTF( ( "ERROR: Failed to provision device certificate. %d \r\n", xResult ) );
}
}
+ else
+ {
+ xResult = CKR_ARGUMENTS_BAD;
+ }
#if ( pkcs11configIMPORT_PRIVATE_KEYS_SUPPORTED == 1 )
@@ -1088,6 +1096,10 @@ CK_RV xProvisionDevice( CK_SESSION_HANDLE xSession,
configPRINTF( ( "Warning: no persistent storage is available for the JITP certificate. The certificate in aws_clientcredential_keys.h will be used instead.\r\n" ) );
}
}
+ else
+ {
+ xResult = CKR_ARGUMENTS_BAD;
+ }
/* Check whether a key pair is now present. In order to support X.509
* certificate enrollment, the public and private key objects must both be
|
Add frame iterators [DEVINFRA-1031](#1265)
|
@@ -5,6 +5,7 @@ use std::{
use bytes::{Buf, BytesMut};
use dencode::FramedRead;
+use futures::StreamExt;
use crate::{wire_format, Sbp, CRC_LEN, HEADER_LEN, MAX_FRAME_LEN, PAYLOAD_INDEX, PREAMBLE};
@@ -44,12 +45,26 @@ pub fn iter_messages<R: io::Read>(input: R) -> impl Iterator<Item = Result<Sbp,
Decoder::new(input)
}
+/// Deserialize IO stream into iterator of raw frames
+pub fn iter_frames<R: io::Read>(input: R) -> impl Iterator<Item = Result<Frame, Error>> {
+ Framer::new(input)
+}
+
/// Deserialize the IO stream into an iterator of messages. Provide a timeout
/// for the maximum allowed duration without a successful message.
pub fn iter_messages_with_timeout<R: io::Read>(
input: R,
timeout_duration: Duration,
) -> impl Iterator<Item = Result<Sbp, Error>> {
+ TimeoutDecoder::new(input, timeout_duration).map(|res| res.and_then(|frame| frame.to_sbp()))
+}
+
+/// Deserialize the IO stream into an iterator of frames. Provide a timeout
+/// for the maximum allowed duration without a successful message.
+pub fn iter_frames_with_timeout<R: io::Read>(
+ input: R,
+ timeout_duration: Duration,
+) -> impl Iterator<Item = Result<Frame, Error>> {
TimeoutDecoder::new(input, timeout_duration)
}
@@ -66,6 +81,22 @@ pub fn stream_messages_with_timeout<R: futures::AsyncRead + Unpin>(
input: R,
timeout_duration: Duration,
) -> impl futures::Stream<Item = Result<Sbp, Error>> {
+ TimeoutDecoder::new(input, timeout_duration).map(|res| res.and_then(|frame| frame.to_sbp()))
+}
+
+/// Deserialize the async IO stream into stream of frames
+#[cfg(feature = "async")]
+pub fn stream_frames<R: futures::AsyncRead + Unpin>(
+ input: R,
+) -> impl futures::Stream<Item = Result<Frame, Error>> {
+ Framer::new(input)
+}
+
+#[cfg(feature = "async")]
+pub fn stream_frames_with_timeout<R: futures::AsyncRead + Unpin>(
+ input: R,
+ timeout_duration: Duration,
+) -> impl futures::Stream<Item = Result<Frame, Error>> {
TimeoutDecoder::new(input, timeout_duration)
}
@@ -326,26 +357,23 @@ impl<R> TimeoutDecoder<R> {
}
impl<R: io::Read> Iterator for TimeoutDecoder<R> {
- type Item = Result<Sbp, Error>;
+ type Item = Result<Frame, Error>;
fn next(&mut self) -> Option<Self::Item> {
- self.0.next().map(|f| match f {
- Ok(frame) => frame.to_sbp(),
- Err(err) => Err(err),
- })
+ self.0.next()
}
}
#[cfg(feature = "async")]
impl<R: futures::AsyncRead + Unpin> futures::Stream for TimeoutDecoder<R> {
- type Item = Result<Sbp, Error>;
+ type Item = Result<Frame, Error>;
fn poll_next(
mut self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
match futures::ready!(std::pin::Pin::new(&mut self.0).poll_next(cx)) {
- Some(Ok(frame)) => std::task::Poll::Ready(Some(frame.to_sbp())),
+ Some(Ok(frame)) => std::task::Poll::Ready(Some(Ok(frame))),
Some(Err(e)) => std::task::Poll::Ready(Some(Err(e))),
None => std::task::Poll::Ready(None),
}
|
Fix constrained rendering in windowed mode on macOS
|
@@ -649,7 +649,7 @@ bool lovrGraphicsInit(GraphicsConfig* config) {
.srgb = true
};
- os_window_get_size(&state.window->info.width, &state.window->info.height);
+ os_window_get_fbsize(&state.window->info.width, &state.window->info.height);
state.depthFormat = config->stencil ? FORMAT_D32FS8 : FORMAT_D32F;
|
Document that ENGINE_add_conf_module() was deprecated.
|
@@ -44,6 +44,10 @@ None of the functions return a value.
L<config(5)>, L<OPENSSL_config(3)>
+=head1 HISTORY
+
+ENGINE_add_conf_module() was deprecated in OpenSSL 3.0.
+
=head1 COPYRIGHT
Copyright 2004-2018 The OpenSSL Project Authors. All Rights Reserved.
|
tools: add hint for using esp-cryptoauthlib from manager
|
re: "fatal error: esp_adc_cal.h: No such file or directory"
hint: "``esp_adc_cal`` component is no longer supported. New adc calibration driver is in ``esp_adc``. Legacy adc calibration driver has been moved into ``esp_adc`` component. To use legacy ``esp_adc_cal`` driver APIs, you should add ``esp_adc`` component to the list of component requirements in CMakeLists.txt. For more information run 'idf.py docs -sp migration-guides/release-5.x/peripherals.html'."
+-
+ re: "fatal error: .*atca_mbedtls_wrap\\.h: No such file or directory"
+ hint: "To use CONFIG_ESP_TLS_USE_SECURE_ELEMENT option, please install `esp-cryptoauthlib` using 'idf.py add-dependency espressif/esp-cryptoauthlib'"
+
-
re: "fatal error: [\\w/]+\\.h: No such file or directory"
hint: "Please check if you've specified all component dependencies with 'idf_component_register(REQUIRES ...)'. If the component is not present then it should be added by the IDF Component Manager. For more information run 'idf.py docs -sp api-guides/build-system.html'.\nAlso, please check if the header file has been removed, renamed or relocated - refer to the migration guide for more information."
|
doc: Update intro to 1.0 release notes
Update the high-level summary.
|
ACRN v1.0 (May 2019)
####################
-We are pleased to announce the release of Project ACRN version 1.0,
-a major ACRN project milestone focused on automotive software-defined
-cockpit (SDC) use cases.
+We are pleased to announce the release of ACRN version 1.0, a key
+Project ACRN milestone focused on automotive Software-Defined Cockpit
+(SDC) use cases and introducing additional architecture enhancements for
+Industrial and IoT usages.
+
+This v1.0 release is a production-ready reference solution for SDC
+usages that require multiple VMs and rich I/O mediation for device
+sharing including GPU and USB devices. It also includes architectural
+enhancements for scaling into new usages including Industrial real-time
+support and diverse IoT workload consolidation.
ACRN is a flexible, lightweight reference hypervisor, built with
real-time and safety-criticality in mind, optimized to streamline embedded
@@ -32,8 +39,9 @@ Version 1.0 major features
Hardware Support
================
-Apollo Lake NUC, Apollo Lake UP Squared (UP2) board and
-Kaby Lake NUC are supported. (See :ref:`hardware` for supported platform details.)
+ACRN supports multiple x86 platforms and has been tested with Apollo
+Lake and Kaby Lake NUCs, and the UP Squared board.
+(See :ref:`hardware` for supported platform details.)
APL UP2 board with SBL firmware
===============================
|
move comment box to end of post
|
::
;hr;
::
- ;h2: Post comment:
- ;script@"/lib/js/easy-form.js";
- ;form(onsubmit "return easy_form.submit(this)")
- ;input(type "hidden", name "easy_form:mark", value "collections-action");
- ;input(type "hidden", name "easy_form:tag", value "comment");
- ;input(type "hidden", name "easy_form:url_end", value "collections/:col/:top");
- ::
- ;input(type "hidden", name "com", value "~");
- ::
- ;br;
- ;textarea(name "wat", placeholder "Enter comment");
- ;br;
- ;input(type "submit");
- ==
;* ?: =(~ coms.top) ~
:- ;h2: Comments
%+ turn (sort ~(tap by coms.top) dor)
|= [wen=@da mod=@da com=comment]
=/ id (time-to-id wen)
+ =/ txt (of-wall:format (turn wat.com trip))
;div(id id)
- ;hr;
- ;pre: {(of-wall:format (turn wat.com trip))}
+ ;pre.edit-off: {txt}
; ;{b -<who.com>}, at ;{a/"#{id}" -<wen>}
::
;form.inline(onsubmit "return easy_form.submit(this)")
;input(type "hidden", name "com", value <wen>);
;input.red(type "submit", value "X");
==
- == ==
+ ;hr;
+ ==
+ ;h2: Post comment:
+ ;script@"/lib/js/easy-form.js";
+ ;form(onsubmit "return easy_form.submit(this)")
+ ;input(type "hidden", name "easy_form:mark", value "collections-action");
+ ;input(type "hidden", name "easy_form:tag", value "comment");
+ ;input(type "hidden", name "easy_form:url_end", value "collections/:col/:top");
+ ::
+ ;input(type "hidden", name "com", value "~");
+ ::
+ ;br;
+ ;textarea(name "wat", placeholder "Enter comment");
+ ;br;
+ ;input(type "submit");
+ ==
+ ==
--
::
++ grab
|
jenkins: Add doc to main()
|
@@ -119,6 +119,10 @@ DOCKER_IMAGES = [:] // Containers docker image descriptions, populated during
* if previous stage did not fail.
*****************************************************************************/
+/* main function wrapping around all stages
+ *
+ * Added to improve readability.
+ */
def main() {
stage("Init docker images") {
dockerInit()
|
wsman-curl-client-transport: check mutex methods return value
Fail caller if pthread_mutex_* functions are failed
|
@@ -703,16 +703,23 @@ int wsmc_transport_init(WsManClient *cl, void *arg)
{
CURLcode r;
- pthread_mutex_lock(&curl_mutex);
+ if (pthread_mutex_lock(&curl_mutex)) {
+ error("Error: Can't lock curl_mutex\n");
+ return 1;
+ }
if (cl->initialized) {
- pthread_mutex_unlock(&curl_mutex);
+ if (pthread_mutex_unlock(&curl_mutex)) {
+ error("Error: Can't unlock curl_mutex\n");
+ }
return 0;
}
r = curl_global_init(CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32);
if (r == CURLE_OK) {
cl->initialized = 1;
}
- pthread_mutex_unlock(&curl_mutex);
+ if (pthread_mutex_unlock(&curl_mutex)) {
+ error("Error: Can't unlock curl_mutex\n");
+ }
if (r != CURLE_OK) {
debug("Error = %d (%s); Could not initialize curl globals",
r, curl_easy_strerror(r));
@@ -722,14 +729,21 @@ int wsmc_transport_init(WsManClient *cl, void *arg)
void wsmc_transport_fini(WsManClient *cl)
{
- pthread_mutex_lock(&curl_mutex);
+ if (pthread_mutex_lock(&curl_mutex)) {
+ error("Error: Can't lock curl_mutex\n");
+ return;
+ }
if (cl->initialized == 0 ) {
- pthread_mutex_unlock(&curl_mutex);
+ if (pthread_mutex_unlock(&curl_mutex)) {
+ error("Error: Can't unlock curl_mutex\n");
+ }
return;
}
curl_global_cleanup();
cl->initialized = 0;
- pthread_mutex_unlock(&curl_mutex);
+ if (pthread_mutex_unlock(&curl_mutex)) {
+ error("Error: Can't unlock curl_mutex\n");
+ }
return;
}
|
Update buildMakeScript.js
Fix buildMakeScript for Windows
|
@@ -49,7 +49,7 @@ export default async (
const getValue = (label, variable, cmd) => {
if (platform === "win32") {
cmds.push(`@echo ${label}`);
- cmds.push(`FOR /F "tokens=*" %%g IN ('${cmd}') do (SET VAR=%%g)`);
+ cmds.push(`FOR /F "tokens=*" %%g IN ('${cmd}') do (SET ${variable}=%%g)`);
} else {
cmds.push(`echo "${label}"`);
cmds.push(`${variable}=$(${cmd})`);
@@ -95,12 +95,26 @@ export default async (
.join(" ")}`
);
+
+ if(platform === "win32") {
+ addCommand(
+ l10n("COMPILER_CALCULATING_START_SAVE"),
+ `SET /A "START_SAVE = CART_SIZE - 4"`
+ );
+ addCommand(
+ `${l10n("COMPILER_LINKING")}: game.gb`,
+ `${CC} ${LFLAGS} -Wl-yo%CART_SIZE% -Wl-g__start_save=%START_SAVE% -o build/rom/game.gb ${objFiles
+ .map((file) => file.replace(/\.o$/, ".rel"))
+ .join(" ")}`
+ );
+ } else {
addCommand(
`${l10n("COMPILER_LINKING")}: game.gb`,
`${CC} ${LFLAGS} -Wl-yo\${CART_SIZE} -Wl-g__start_save=\${CART_SIZE-4} -o build/rom/game.gb ${objFiles
.map((file) => file.replace(/\.o$/, ".rel"))
.join(" ")}`
);
+ }
return cmds.join("\n");
};
|
fixup ->next zeroing
|
@@ -330,6 +330,7 @@ static errval_t do_single_map(struct pmap_x86 *pmap, genvaddr_t vaddr,
for (int i = 0; i < pte_count; i++) {
ptable->u.vnode.children[table_base+i] = page;
}
+ page->next = NULL;
#else
#error Invalid pmap datastructure
#endif
|
Don't depend on other plugins
...and remove created metadata
|
@@ -35,7 +35,7 @@ TODO:
# Backup-and-Restore: user/tests/mac
# Mount `macaddr` plugin
-kdb mount config.dump /tests/mac dump macaddr
+kdb mount macconf.ecf /tests/mac macaddr
# Check the validity of the following MAC addresses
kdb setmeta /tests/mac/mac1 check/macaddr ""
@@ -88,6 +88,10 @@ kdb get /tests/mac/mac4
#> 17661175009296
kdb umount /tests/mac
+kdb rmmeta /tests/mac/mac1 check/macaddr
+kdb rmmeta /tests/mac/mac2 check/macaddr
+kdb rmmeta /tests/mac/mac3 check/macaddr
+kdb rmmeta /tests/mac/mac4 check/macaddr
```
## Dependencies
|
board/endeavour/led.c: Format with clang-format
BRANCH=none
TEST=none
|
@@ -190,8 +190,7 @@ static int command_led(int argc, char **argv)
}
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(led, command_led,
- "[debug|red|white|off|crit]",
+DECLARE_CONSOLE_COMMAND(led, command_led, "[debug|red|white|off|crit]",
"Turn on/off LED.");
void led_get_brightness_range(enum ec_led_id led_id, uint8_t *brightness_range)
|
Time cluster setting TimeStatus Superseding=1
Attribute 0x0001 TimeStatus: Master(bit-0)=1, Superseding(bit-3)= 1. Also setting MasterZoneDst(bit-2)=1 if systemTimeZone has daylight savings.
|
* Send ZCL attribute response to read request on Time Cluster attributes.
*
* 0x0000 Time / UTC Time seconds from 1/1/2000
- * 0x0001 TimeStatus / Master(bit-0)=1, MasterZoneDst(bit-2)=1
+ * 0x0001 TimeStatus / Master(bit-0)=1, Superseding(bit-3)= 1, MasterZoneDst(bit-2)=1
* 0x0002 TimeZone / offset seconds from UTC
* 0x0003 DstStart / daylight savings time start
* 0x0004 DstEnd / daylight savings time end
@@ -60,7 +60,7 @@ void DeRestPluginPrivate::sendTimeClusterResponse(const deCONZ::ApsDataIndicatio
deCONZ::ZclFCDisableDefaultResponse);
quint32 time_now = 0xFFFFFFFF; // id 0x0000 Time
- qint8 time_status = 0x01; // id 0x0001 TimeStatus Master(bit-0)=1
+ qint8 time_status = 0x09; // id 0x0001 TimeStatus Master(bit-0)=1, Superseding(bit-3)= 1
qint32 time_zone = 0xFFFFFFFF; // id 0x0002 TimeZone
quint32 time_dst_start = 0xFFFFFFFF; // id 0x0003 DstStart
quint32 time_dst_end = 0xFFFFFFFF; // id 0x0004 DstEnd
|
Fixed path for SDL unzipped files
|
@@ -88,7 +88,7 @@ You'll also need to cross-compile SDL2 and install it wherever you like to keep
```
wget https://www.libsdl.org/release/SDL2-2.0.10.zip
unzip SDL2-2.0.10.zip
-cd SDL2-2.0.10.zip
+cd SDL2-2.0.10
mkdir build.mingw
cd build.mingw
../configure --target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --build=x86_64--linux --prefix=/usr/local/cross-tools/x86_64-w64-mingw32/
|
build: detect 'libyaml'
|
@@ -630,6 +630,17 @@ if(FLB_HAVE_UNIX_SOCKET)
FLB_DEFINITION(FLB_HAVE_UNIX_SOCKET)
endif()
+# libyaml support
+check_c_source_compiles("
+ #include <yaml.h>
+ int main() {
+ yaml_parser_t parser;
+ return 0;
+ }" FLB_HAVE_LIBYAML)
+if(FLB_HAVE_LIBYAML)
+ FLB_DEFINITION(FLB_HAVE_LIBYAML)
+endif()
+
# check attribute alloc_size
check_c_source_compiles("
#include <stdlib.h>
|
Add full field name
|
@@ -221,7 +221,7 @@ BOOLEAN PhAppResolverGetAppIdForWindow(
}
HRESULT PhAppResolverActivateAppId(
- _In_ PPH_STRING AppUserModelId,
+ _In_ PPH_STRING ApplicationUserModelId,
_In_opt_ PWSTR CommandLine,
_Out_opt_ HANDLE *ProcessId
)
@@ -243,7 +243,7 @@ HRESULT PhAppResolverActivateAppId(
status = IApplicationActivationManager_ActivateApplication(
applicationActivationManager,
- PhGetString(AppUserModelId),
+ PhGetString(ApplicationUserModelId),
CommandLine,
AO_NONE,
&processId
|
options/elf: Add Elf32_Sym
|
@@ -23,6 +23,7 @@ typedef uint32_t Elf64_Word;
typedef int32_t Elf64_Sword;
typedef uint64_t Elf64_Xword;
typedef int64_t Elf64_Sxword;
+typedef uint16_t Elf64_Section;
typedef uint32_t Elf32_Addr;
typedef uint32_t Elf32_Off;
@@ -31,6 +32,7 @@ typedef uint32_t Elf32_Word;
typedef int32_t Elf32_Sword;
typedef uint64_t Elf32_Xword;
typedef int64_t Elf32_Sxword;
+typedef uint16_t Elf32_Section;
#define EI_NIDENT (16)
@@ -81,6 +83,15 @@ enum {
SHN_ABS = 0xFFF1
};
+typedef struct {
+ Elf32_Word st_name;
+ Elf32_Addr st_value;
+ Elf32_Word st_size;
+ unsigned char st_info;
+ unsigned char st_other;
+ Elf32_Section st_shndx;
+} Elf32_Sym;
+
typedef struct {
Elf64_Word st_name;
unsigned char st_info;
|
Minor corrections to CMSIS-Zone XML Format
|
@@ -602,7 +602,7 @@ The \ref xml_smap contains additional information for alias regions or processor
<td>name</td>
<td>Alternative name of this memory region (in case of alias) which must be unique in this *.rzone file.</td>
<td>xs:string</td>
- <td>optional</td>
+ <td>required</td>
</tr>
<tr>
<td>start</td>
@@ -807,13 +807,13 @@ The \ref xml_speripheral is used to define an address mapping for one peripheral
<td>\ref xml_smap "map"</td>
<td>optional map information that can be processor specific or a alias memory address</td>
<td>complexType</td>
- <td>0..1</td>
+ <td>0..*</td>
</tr>
<tr>
<td>interrupts????</td>
<td>RK suggest to add this later</td>
<td>complexType</td>
- <td>0..1</td>
+ <td>0..*</td>
</tr>
</table>
|
Remove failur block
|
@@ -19,13 +19,13 @@ environment:
configuration: Release
OPENSSLDIR: C:\OpenSSL-v11-Win32
OPENSSL64DIR: C:\OpenSSL-v11-Win64
-matrix:
- allow_failures:
+# matrix:
+ # allow_failures:
# For some reason linking picoquicdemo.lib fails with
# cifra.lib(chash.obj) : error LNK2001: unresolved external symbol __CheckForDebuggerJustMyCode [C:\projects\picoquic\picoquicfirst\picoquicfirst.vcxproj]
- - platform: x64
- configuration: Debug
- OPENSSL64DIR: C:\OpenSSL-v11-Win64
+ #- platform: x64
+ # configuration: Debug
+ # OPENSSL64DIR: C:\OpenSSL-v11-Win64
build:
parallel: true
|
[kernel] add assert to thread object
|
@@ -275,6 +275,7 @@ rt_err_t rt_thread_startup(rt_thread_t thread)
/* thread check */
RT_ASSERT(thread != RT_NULL);
RT_ASSERT((thread->stat & RT_THREAD_STAT_MASK) == RT_THREAD_INIT);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
/* set current priority to init priority */
thread->current_priority = thread->init_priority;
@@ -318,6 +319,8 @@ rt_err_t rt_thread_detach(rt_thread_t thread)
/* thread check */
RT_ASSERT(thread != RT_NULL);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
+ RT_ASSERT(rt_object_is_systemobject((rt_object_t)thread));
if ((thread->stat & RT_THREAD_STAT_MASK) != RT_THREAD_INIT)
{
@@ -416,6 +419,8 @@ rt_err_t rt_thread_delete(rt_thread_t thread)
/* thread check */
RT_ASSERT(thread != RT_NULL);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
+ RT_ASSERT(rt_object_is_systemobject((rt_object_t)thread) == RT_FALSE);
if ((thread->stat & RT_THREAD_STAT_MASK) != RT_THREAD_INIT)
{
@@ -504,6 +509,7 @@ rt_err_t rt_thread_sleep(rt_tick_t tick)
/* set to current thread */
thread = rt_current_thread;
RT_ASSERT(thread != RT_NULL);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
/* suspend thread */
rt_thread_suspend(thread);
@@ -572,6 +578,7 @@ rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg)
/* thread check */
RT_ASSERT(thread != RT_NULL);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
switch (cmd)
{
@@ -650,6 +657,7 @@ rt_err_t rt_thread_suspend(rt_thread_t thread)
/* thread check */
RT_ASSERT(thread != RT_NULL);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
RT_DEBUG_LOG(RT_DEBUG_THREAD, ("thread suspend: %s\n", thread->name));
@@ -692,6 +700,7 @@ rt_err_t rt_thread_resume(rt_thread_t thread)
/* thread check */
RT_ASSERT(thread != RT_NULL);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
RT_DEBUG_LOG(RT_DEBUG_THREAD, ("thread resume: %s\n", thread->name));
@@ -737,6 +746,7 @@ void rt_thread_timeout(void *parameter)
/* thread check */
RT_ASSERT(thread != RT_NULL);
RT_ASSERT((thread->stat & RT_THREAD_STAT_MASK) == RT_THREAD_SUSPEND);
+ RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
/* set error number */
thread->error = -RT_ETIMEOUT;
|
Fix bug preventing DMG build from finishing if palette change events were used
|
@@ -338,7 +338,7 @@ class ScriptBuilder {
paletteSetBackground = (eventId) => {
const output = this.output;
const { eventPaletteIndexes } = this.options;
- const paletteIndex = eventPaletteIndexes[eventId];
+ const paletteIndex = eventPaletteIndexes[eventId] || 0;
output.push(cmd(PALETTE_SET_BACKGROUND));
output.push(hi(paletteIndex));
output.push(lo(paletteIndex));
@@ -347,7 +347,7 @@ class ScriptBuilder {
paletteSetActor = (eventId) => {
const output = this.output;
const { eventPaletteIndexes } = this.options;
- const paletteIndex = eventPaletteIndexes[eventId];
+ const paletteIndex = eventPaletteIndexes[eventId] || 0;
output.push(cmd(PALETTE_SET_ACTOR));
output.push(hi(paletteIndex));
output.push(lo(paletteIndex));
@@ -356,7 +356,7 @@ class ScriptBuilder {
paletteSetUI = (eventId) => {
const output = this.output;
const { eventPaletteIndexes } = this.options;
- const paletteIndex = eventPaletteIndexes[eventId];
+ const paletteIndex = eventPaletteIndexes[eventId] || 0;
output.push(cmd(PALETTE_SET_UI));
output.push(hi(paletteIndex));
output.push(lo(paletteIndex));
|
cleanup delayed output
|
@@ -150,10 +150,10 @@ static _Atomic(uintptr_t) out_len;
static void mi_out_buf(const char* msg) {
if (msg==NULL) return;
+ if (mi_atomic_read_relaxed(&out_len)>=MAX_OUT_BUF) return;
size_t n = strlen(msg);
if (n==0) return;
- // claim
- if (mi_atomic_read_relaxed(&out_len)>=MAX_OUT_BUF) return;
+ // claim space
uintptr_t start = mi_atomic_addu(&out_len, n);
if (start >= MAX_OUT_BUF) return;
// check bound
@@ -163,17 +163,17 @@ static void mi_out_buf(const char* msg) {
memcpy(&out_buf[start], msg, n);
}
-static void mi_out_buf_contents(mi_output_fun* out) {
+static void mi_out_buf_flush(mi_output_fun* out) {
if (out==NULL) return;
- // claim all
+ // claim all (no more output will be added after this point)
size_t count = mi_atomic_addu(&out_len, MAX_OUT_BUF);
- // and output it
+ // and output the current contents
if (count>MAX_OUT_BUF) count = MAX_OUT_BUF;
out_buf[count] = 0;
out(out_buf);
}
-// The initial default output outputs to stderr and the delayed buffer.
+// The initial default output, outputs to stderr and the delayed output buffer.
static void mi_out_buf_stderr(const char* msg) {
mi_out_stderr(msg);
mi_out_buf(msg);
@@ -195,13 +195,13 @@ static mi_output_fun* mi_out_get_default(void) {
}
void mi_register_output(mi_output_fun* out) mi_attr_noexcept {
- mi_out_default = (out == NULL ? &mi_out_stderr : out);
- if (out!=NULL) mi_out_buf_contents(out);
+ mi_out_default = (out == NULL ? &mi_out_stderr : out); // stop using the delayed output buffer
+ if (out!=NULL) mi_out_buf_flush(out); // output the delayed output now
}
// --------------------------------------------------------
-// Messages
+// Messages, all end up calling `_mi_fputs`.
// --------------------------------------------------------
#define MAX_ERROR_COUNT (10)
static volatile _Atomic(uintptr_t) error_count; // = 0; // when MAX_ERROR_COUNT stop emitting errors and warnings
|
cups-browsed: Added curly brackets missing in the previous commit.
|
@@ -4505,9 +4505,10 @@ gboolean update_cups_queues(gpointer unused) {
if ((q = p->slave_of) == NULL) {
if ((http = http_connect_local ()) == NULL) {
debug_printf("Unable to connect to CUPS!\n");
- if (in_shutdown == 0)
+ if (in_shutdown == 0) {
current_time = time(NULL);
p->timeout = current_time + TIMEOUT_RETRY;
+ }
break;
}
|
options.h: "any" -> ""
|
@@ -159,7 +159,7 @@ gftp_config_vars gftp_global_config_vars[] =
N_("This specifies the default protocol to use"), GFTP_PORT_ALL, NULL},
{"ip_version", N_("IP version:"),
- gftp_option_type_textcombo, "any", gftp_ip_version, 0,
+ gftp_option_type_textcombo, "", gftp_ip_version, 0,
N_("IP version to use. (ipv4/ipv6 or leave empty to use whatever is available)"), GFTP_PORT_ALL, NULL},
{"list_dblclk_action", "",
|
avx2: fix native alias for simde_mm256_cvtepu8_epi16
|
@@ -934,7 +934,7 @@ simde_mm256_cvtepu8_epi16 (simde__m128i a) {
#endif
}
#if defined(SIMDE_AVX2_ENABLE_NATIVE_ALIASES)
-# define _mm256_cvtepu8_epi64(a) simde_mm256_cvtepu8_epi64(a)
+# define _mm256_cvtepu8_epi16(a) simde_mm256_cvtepu8_epi16(a)
#endif
SIMDE__FUNCTION_ATTRIBUTES
|
apps/wm_test: Enable wm_test in artik053/tc/defconfig
Set CONFIG_EXAMPLES_WIFIMANAGER_TEST to y
Enable wifi sample application in tc configuration
|
@@ -1320,7 +1320,7 @@ CONFIG_EXAMPLES_TESTCASE_TASK_MANAGER_ITC=y
# CONFIG_EXAMPLES_WEBCLIENT is not set
# CONFIG_EXAMPLES_WEBSERVER is not set
# CONFIG_EXAMPLES_WEBSOCKET is not set
-# CONFIG_EXAMPLES_WIFIMANAGER_TEST is not set
+CONFIG_EXAMPLES_WIFIMANAGER_TEST=y
# CONFIG_EXAMPLES_WIFI_TEST is not set
#
|
temprarily remove nekbone from blocking nPSDB
|
EPSDB_LIST=${EPSDB_LIST:-"examples smoke smokefails omp5 openmpapps nekbone sollve babelstream"}
SUITE_LIST=${SUITE_LIST:-"examples smoke smokefails omp5 openmpapps nekbone sollve"}
-blockinglist="examples_fortran examples_openmp smoke nekbone sollve45 sollve50"
+blockinglist="examples_fortran examples_openmp smoke sollve45 sollve50"
# Use bogus path to avoid using target.lst, a user-defined target list
# used by rocm_agent_enumerator.
|
Archive package in nightly builds
|
@@ -49,7 +49,7 @@ pipeline {
mkdir build_rel
cd build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DISA_AVX2=ON -DISA_SSE41=ON -DISA_SSE2=ON -DISA_NONE=ON ..
- make install -j4
+ make install package -j4
'''
}
}
@@ -98,7 +98,7 @@ pipeline {
mkdir build_rel
cd build_rel
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DISA_AVX2=ON -DISA_SSE41=ON -DISA_SSE2=ON ..
- nmake install
+ nmake install package
'''
}
}
@@ -147,7 +147,7 @@ pipeline {
mkdir build_rel
cd build_rel
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DISA_AVX2=ON -DISA_SSE41=ON -DISA_SSE2=ON ..
- make install -j4
+ make install package -j4
'''
}
}
|
Code syntax optimization
|
@@ -448,7 +448,8 @@ espi_parse_cipsntptime(const char* str, esp_msg_t* msg) {
if (*str == '+') { /* Check input string */
str += 13;
}
- /**
+
+ /*
* Scan for day in a week
*/
if (!strncmp(str, "Mon", 3)) {
@@ -468,7 +469,7 @@ espi_parse_cipsntptime(const char* str, esp_msg_t* msg) {
}
str += 4;
- /**
+ /*
* Scan for month in a year
*/
if (!strncmp(str, "Jan", 3)) {
@@ -532,7 +533,7 @@ espi_parse_hostname(const char* str, esp_msg_t* msg) {
msg->msg.wifi_hostname.hostname[0] = 0;
if (*str != '\r') {
i = 0;
- while (i < msg->msg.wifi_hostname.length - 1 && *str && *str != '\r') {
+ while (i < (msg->msg.wifi_hostname.length - 1) && *str && *str != '\r') {
msg->msg.wifi_hostname.hostname[i] = *str;
i++;
str++;
|
Removed .global for do_go
|
#include "gocontext.h"
.global go_hook_write, go_hook_open, go_hook_socket, go_hook_accept4
-.global go_hook_read, go_hook_close, do_go
+.global go_hook_read, go_hook_close
// The macro interpose takes 3 params
// the name of the global variable as defined above ex: go_hook_write
|
correcting aesthetic points
|
::
=, strand=strand:spider
::
-:: send on /spider/garden/json/get-dudes/json
+:: send on /desk/dude
::
|%
++ buds :: get agents currently running
- |= p=@tas
- =/ m (strand ,(list @tas))
+ |= p=desk
+ =/ m (strand ,(list dude:gall))
^- form:m
- ?. =(%base p)
- ;< q=(list @tas) bind:m (suds p)
+ ?. =(%$ p)
+ ;< q=(list dude:gall) bind:m (suds p)
(pure:m q)
- ;< q=(list @tas) bind:m duds
- =| r=(list (list @tas))
+ ;< q=(list desk) bind:m duds
+ =| r=(list (list dude:gall))
|- ^- form:m
- =* loop $
+ =* s $
?~ q (pure:m (zing r))
- ;< t=(list @tas) bind:m (suds i.q)
- loop(q t.q, r [t r])
+ ;< t=(list dude:gall) bind:m (suds i.q)
+ s(q t.q, r [t r])
::
++ suds :: clean %ge scry
- |= p=@tas
- =/ m (strand ,(list @tas))
+ |= p=desk
+ =/ m (strand ,(list dude:gall))
^- form:m
- ;< q=(set [@tas ?]) bind:m
- (scry (set ,[@tas ?]) /ge/(scot %tas p))
+ ;< q=(set [dude:gall ?]) bind:m
+ (scry (set ,[dude:gall ?]) /ge/(scot %tas p))
%- pure:m
- (murn ~(tap in q) |=([@tas ?] ?.(+.+< ~ `-.+<)))
+ (murn ~(tap in q) |=([dude:gall ?] ?.(+.+< ~ `-.+<)))
::
++ duds :: get desks
- =/ m (strand ,(list @tas))
+ =/ m (strand ,(list desk))
^- form:m
- ;< p=(set @tas) bind:m (scry (set ,@tas) /cd/base)
+ ;< p=(set desk) bind:m (scry (set ,desk) /cd/base)
(pure:m ~(tap in p))
--
::
|
[chain] omit unnecesary receipts commit
|
@@ -607,7 +607,9 @@ func (cs *ChainService) executeBlock(bstate *state.BlockState, block *types.Bloc
return err
}
+ if len(ex.BlockState.Receipts()) != 0 {
cs.cdb.writeReceipts(block.BlockHash(), block.BlockNo(), ex.BlockState.Receipts())
+ }
cs.RequestTo(message.MemPoolSvc, &message.MemPoolDel{
Block: block,
|
Use porto layer with nvidia-396 driver to fix catboost tests
issue:https://st.yandex-team.ru/DEVTOOLS-4881
|
@@ -78,8 +78,18 @@ def execute(*args, **kwargs):
pytest.xfail(reason=cuda_setup_error)
return yatest.yt.execute(
*args,
- task_spec={'gpu_limit': 1},
- operation_spec={'pool_trees': ['gpu']},
+ task_spec={
+ # temporary layers
+ 'layer_paths': [
+ '//home/codecoverage/nvidia-396.tar.gz',
+ '//porto_layers/ubuntu-xenial-base.tar.xz',
+ ],
+ 'gpu_limit': 1
+ },
+ operation_spec={
+ 'pool_trees': ['gpu_geforce_1080ti'],
+ 'scheduling_tag_filter': 'porto',
+ },
input_data=input_data,
output_data=output_data,
# required for quantized-marked input filenames
|
Changing edward IP
139.99.120.77:13655 > 51.75.145.181:13655
|
47.100.202.206:56600
47.100.254.68:13654
47.104.147.94:13655
+51.75.145.181:13655
52.71.124.24:18888
52.80.150.210:13655
52.80.193.246:13654
124.161.87.210:13655
125.77.30.211:13655
136.243.55.153:16775
-139.99.120.77:13655
139.99.124.23:13655
139.99.124.135:13654
139.99.124.150:16775
|
doc: update project's target max LOC
Project ACRN is targetting to keep the hypervisor's total number of lines of
code (LOC) below 40K. Update the "Build ACRN from Source" document to accurately
reflect that.
|
@@ -36,7 +36,8 @@ the ACRN hypervisor for the following reasons:
- **Keep small footprint.** Implementing dynamic parsing introduces
hundreds or thousands of lines of code. Avoiding dynamic parsing
- helps keep the hypervisor's Lines of Code (LOC) in a desirable range (around 30K).
+ helps keep the hypervisor's Lines of Code (LOC) in a desirable range (less
+ than 40K).
- **Improve boot up time.** Dynamic parsing at runtime increases the boot
up time. Using a build-time configuration and not dynamic parsing
|
Update Dockerfile to Ubuntu / Ryzen
No need to get makefile_wine.gen as already copy/pasted at project's root
|
-FROM i386/debian:buster-slim
+FROM amd64/ubuntu:focal
# Set-up argument defaults
ARG SGDK_WINE_VER=1aca454a2c1419d97c3518907d156ddf1250469b
-ARG JDK_VER=11
+ARG JRE_VER=14
# Work-around required for JDK
RUN mkdir -p /usr/share/man/man1
@@ -12,7 +12,7 @@ RUN export DEBIAN_FRONTEND='noninteractive' && \
apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests \
make \
- openjdk-${JDK_VER}-jdk-headless \
+ openjdk-${JDK_VER}-jre-headless \
wine && \
apt-get autoremove --purge -y && \
apt-get clean && \
@@ -26,16 +26,6 @@ COPY . /sgdk
WORKDIR /sgdk
ENV GDK=/sgdk
-# Crudely get the script from GitHub. This isn't very secure, but at least we
-# use the commit hash. Ideally that repository should simply be merged into this
-# one.
-ADD https://github.com/Franticware/SGDK_wine/raw/${SGDK_WINE_VER}/generate_wine.sh \
- /tmp/generate_wine.sh
-RUN chmod u+x /tmp/generate_wine.sh && \
- cd ${GDK}/bin && \
- /tmp/generate_wine.sh && \
- rm -f /tmp/generate_wine.sh
-
# Set-up mount point and make command
VOLUME /src
WORKDIR /src
|
Higher ordder functions js/js working properly in node loader.
|
@@ -65,11 +65,13 @@ TEST_F(metacall_callback_complex_test, DefaultConstructor)
void * args_fact[] = { metacall_value_create_long(5L) };
void * ret = metacallfv(metacall_value_to_function(py_py_factorial), args_fact);
ASSERT_NE((void *) NULL, (void *) ret);
+ ASSERT_EQ((enum metacall_value_id) METACALL_LONG, (enum metacall_value_id) metacall_value_id(ret));
EXPECT_EQ((long) 120L, (long) metacall_value_to_long(ret));
metacall_value_destroy(ret);
ret = metacallfv(metacall_value_to_function(py_py_factorial), args_fact);
ASSERT_NE((void *) NULL, (void *) ret);
+ ASSERT_EQ((enum metacall_value_id) METACALL_LONG, (enum metacall_value_id) metacall_value_id(ret));
EXPECT_EQ((long) 120L, (long) metacall_value_to_long(ret));
metacall_value_destroy(ret);
@@ -113,12 +115,14 @@ TEST_F(metacall_callback_complex_test, DefaultConstructor)
void * args_fact[] = { metacall_value_create_long(5L) };
void * ret = metacallfv(metacall_value_to_function(js_js_factorial), args_fact);
ASSERT_NE((void *) NULL, (void *) ret);
- EXPECT_EQ((long) 120L, (long) metacall_value_to_long(ret));
+ ASSERT_EQ((enum metacall_value_id) METACALL_DOUBLE, (enum metacall_value_id) metacall_value_id(ret));
+ EXPECT_EQ((double) 120.0, (double) metacall_value_to_double(ret));
metacall_value_destroy(ret);
ret = metacallfv(metacall_value_to_function(js_js_factorial), args_fact);
ASSERT_NE((void *) NULL, (void *) ret);
- EXPECT_EQ((long) 120L, (long) metacall_value_to_long(ret));
+ ASSERT_EQ((enum metacall_value_id) METACALL_DOUBLE, (enum metacall_value_id) metacall_value_id(ret));
+ EXPECT_EQ((double) 120.0, (double) metacall_value_to_double(ret));
metacall_value_destroy(ret);
metacall_value_destroy(args_fact[0]);
|
Travis: Install Python 2 version of Cheetah
|
@@ -63,7 +63,7 @@ before_install:
brew install openssl libgcrypt;
brew install libgit2;
brew install xerces-c;
- pip install cheetah; # Required by kdb-gen
+ pip2 install cheetah; # Required by kdb-gen
export Qt5_DIR=/usr/local/opt/qt5;
brew config;
fi
|
doc: fix wrong Docker container image in tutorial
Fix the name of the Docker Container image that is used to build the kernel
for an RTVM (Preempt-RT kernel) when that image was built by the user
him/herself.
|
@@ -140,7 +140,7 @@ Build the ACRN User VM PREEMPT_RT Kernel in Docker
$ cp x86-64_defconfig .config
$ docker run -u`id -u`:`id -g` --rm -v $PWD:/workspace \
- acrn/clearlinux-acrn-builder:latest \
+ clearlinux-acrn-builder:latest \
bash -c "make clean && make olddefconfig && make && make modules_install INSTALL_MOD_PATH=out/"
For the Docker image downloaded from Docker Hub, use this command to build ACRN:
|
Update build-gtest.sh
Use new Google Test on Ubuntu 20.04
|
#!/usr/bin/env bash
cd `dirname $0`
+
+# Use latest Google Test
+if [ -f /etc/os-release ]; then
+ source /etc/os-release
+ # Use new Google Test on latest Ubuntu 20.04 : old one no longer compiles on 20
+ if [ "$VERSION_ID" == "20.04" ]; then
+ rm -rf googletest
+ git clone https://github.com/google/googletest
+ fi
+fi
+
cd googletest
set -evx
env | sort
@@ -13,5 +24,5 @@ cmake -Dgtest_build_samples=ON \
-DCMAKE_CXX_FLAGS="-fPIC $CXX_FLAGS" \
..
make
-CTEST_OUTPUT_ON_FAILURE=1 make test
+# CTEST_OUTPUT_ON_FAILURE=1 make test
# make install
|
pmalloc: fix shared mappings
|
@@ -290,7 +290,7 @@ pmalloc_map_pages (clib_pmalloc_main_t * pm, clib_pmalloc_arena_t * a,
return 0;
}
- mmap_flags = MAP_FIXED | MAP_ANONYMOUS;
+ mmap_flags = MAP_FIXED;
if ((pm->flags & CLIB_PMALLOC_F_NO_PAGEMAP) == 0)
mmap_flags |= MAP_LOCKED;
@@ -307,10 +307,12 @@ pmalloc_map_pages (clib_pmalloc_main_t * pm, clib_pmalloc_arena_t * a,
pm->error = clib_mem_create_fd ((char *) a->name, &a->fd);
if (a->fd == -1)
goto error;
+ if ((ftruncate (a->fd, size)) == -1)
+ goto error;
}
else
{
- mmap_flags |= MAP_PRIVATE;
+ mmap_flags |= MAP_PRIVATE | MAP_ANONYMOUS;
a->fd = -1;
}
|
core/minute-ia: Setup GDT
Setup GDT for main ISH FW
BRANCH=none
TEST=Verify that main ISH FW runs fine when loaded through host FW load flow.
Commit-Ready: Caveh Jalali
|
@@ -286,12 +286,38 @@ interrupt_descriptor
interrupt_descriptor
interrupt_descriptor # 255
+__gdt:
+ # Entry 0: Null descriptor
+ .word 0x0000
+ .word 0x0000
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
+ # Entry 1: Code descriptor
+ .word 0xffff # Limit: xffff
+ .word 0x0000 # Base: xxxx0000
+ .byte 0x00 # Base: xx00xxxx
+ .byte 0x9b # Code E/R, Present, DPL0, Acesssed=1
+ .byte 0xcf # Limit fxxxx, Page Gra, 32 bit
+ .byte 0x00 # Base: 00xxxxxx
+ # Entry 0: Data descriptor
+ .word 0xffff # Limit: xffff
+ .word 0x0000 # Base: xxxx0000
+ .byte 0x00 # Base: xx00xxxx
+ .byte 0x93 # Data R/W, Present, DPL0, Acesssed=1
+ .byte 0xcf # Limit fxxxx, Page Gra, 32 bit
+ .byte 0x00 # Base: 00xxxxxx
+
#.section .data
__idt_ptr:
.word 2047 # Table size in bytes, count from 0
# (8N - 1). N = 256 - the number of vectors
.long __idt # Base address of IDT
+__gdt_ptr:
+ .word 24
+ .long __gdt
.section .init
.code32
@@ -316,6 +342,9 @@ reset:
# System stack is within .bss, already cleared
movl $stack_end, %esp
+ # Load GDT
+ lgdt __gdt_ptr
+
# Load IDT
lidt __idt_ptr
|
DSA: fix the DSA parameter logic in test.
|
@@ -1263,11 +1263,14 @@ static int test_EVP_PKEY_CTX_get_set_params(void)
|| !TEST_ptr(p)
|| !TEST_ptr(q)
|| !TEST_ptr(g)
- || !TEST_ptr(pub)
- || !DSA_set0_pqg(dsa, p, q, g)
+ || !DSA_set0_pqg(dsa, p, q, g))
+ goto err;
+ p = q = g = NULL;
+ if (!TEST_ptr(pub)
+ || !TEST_ptr(priv)
|| !DSA_set0_key(dsa, pub, priv))
goto err;
- p = q = g = pub = priv = NULL;
+ pub = priv = NULL;
pkey = EVP_PKEY_new();
if (!TEST_ptr(pkey)
|
fix(memory leak):
free http2Res of fabricHttp2res in BoatHlfabricTxExec() .
|
@@ -241,8 +241,13 @@ __BOATSTATIC BOAT_RESULT BoatHlfabricTxExec(BoatHlfabricTx *tx_ptr,
BoatLog(BOAT_LOG_CRITICAL, "[http2]http2SubmitRequest failed.");
continue;
}
+ if(fabricHttp2res.httpResLen < 5){
+ BoatLog(BOAT_LOG_CRITICAL, "[http2]http2SubmitRequest failed.");
+ continue;
+ }
parsePtr = &(tx_ptr->endorserResponse) ;
submitResponse = orderer__submit_response__unpack(NULL, fabricHttp2res.httpResLen - 5, fabricHttp2res.http2Res + 5);
+ BoatFree(fabricHttp2res.http2Res);
if (submitResponse != NULL && submitResponse->status == COMMON__STATUS__SUCCESS)
{
BoatLog(BOAT_LOG_NORMAL, "[http2]orderer respond received.%d", submitResponse->status);
|
[chainmaker]free para malloc'
|
@@ -40,8 +40,6 @@ const BCHAR * chainmaker_user_cert ="-----BEGIN CERTIFICATE-----\n"
"a1azgQ44SZFRowIhAOSqB0T6fjVYc6owMKfUtUJpEC1XSO/tlHDD0NpdLCWk\n"
"-----END CERTIFICATE-----\n";
-
-
const BCHAR *chainmaker_org_tls_ca_cert = "-----BEGIN CERTIFICATE-----\n"
"MIICaDCCAg2gAwIBAgIDASOLMAoGCCqGSM49BAMCMIGKMQswCQYDVQQGEwJDTjEQ\n"
"MA4GA1UECBMHQmVpamluZzEQMA4GA1UEBxMHQmVpamluZzEfMB0GA1UEChMWd3gt\n"
@@ -87,7 +85,6 @@ void get_time_string(char* time_buf)
time(&rawtime);
info = localtime(&rawtime);
strftime(time_buf, TIME_LEN, "%Y-%m-%d %H:%M:%S", info);
- return;
}
__BOATSTATIC BOAT_RESULT chainmakerWalletPrepare(void)
@@ -192,8 +189,6 @@ int main(int argc, char *argv[])
query_transaction_para.parameters->key = key2;
query_transaction_para.parameters->value = file_hash;
- printf("query = %s\n", query_transaction_para.parameters->key);
- printf("query = %s\n", query_transaction_para.parameters->value);
result = BoatHlchainmakerContractClaimQuery(&tx_ptr, &query_transaction_para, query_metod);
if (result != BOAT_SUCCESS)
{
@@ -206,6 +201,16 @@ int main(int argc, char *argv[])
/* step-7: Boat SDK Deinitialization */
BoatIotSdkDeInit();
+ if (inovke_transaction_para.parameters != NULL)
+ {
+ BoatFree(inovke_transaction_para.parameters);
+ }
+
+ if (query_transaction_para.parameters != NULL)
+ {
+ BoatFree(query_transaction_para.parameters);
+ }
+
return 0;
}
|
Fixed typo on date.
|
@@ -2,7 +2,7 @@ Copyright (C) 2009-2020
Gerardo Orellana <goaccess@prosoftcorp.com>
* Version history:
- - 1.4.3 [Friday, December 03, 2020]
+ - 1.4.3 [Friday, December 04, 2020]
. GoAccess 1.4.3 Released. See ChangeLog for new features/bug-fixes.
- 1.4.2 [Monday, November 16, 2020]
. GoAccess 1.4.2 Released. See ChangeLog for new features/bug-fixes.
|
tweak to image in README.md
|
[](https://dev.azure.com/openexr/OpenEXR/_build/latest?definitionId=1&branchName=master)
[](https://sonarcloud.io/dashboard?id=openexr_openexr)
-{:style="float: right}
+<img align="right"
+src="https://github.com/openexr/openexr/tree/master/OpenEXR/doc/images/windowExample1.png">
The OpenEXR project provides the specification and reference
implementation of the EXR file format, the professional-grade image
|
SOVERSION bump to version 7.6.5
|
@@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 6)
-set(SYSREPO_MICRO_SOVERSION 4)
+set(SYSREPO_MICRO_SOVERSION 5)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
adding nrv led, button and pin values to bsp.h
|
@@ -37,8 +37,44 @@ extern uint8_t _ram_start;
#define RAM_SIZE 0x8000
/* LED pins */
-#define LED_BLINK_PIN (21)
-#define LED_2 (22)
+#define LED_1 (17)
+#define LED_2 (18)
+#define LED_3 (19)
+#define LED_4 (20)
+#define LED_BLINK_PIN (LED_1)
+
+/* Buttons */
+#define BUTTON_1 (13)
+#define BUTTON_2 (14)
+#define BUTTON_3 (15)
+#define BUTTON_4 (16)
+
+/* Arduino board mappings */
+#define ARDUINO_SCL_PIN (27)
+#define ARDUINO_SDA_PIN (26)
+#define ARDUINO_AREF_PIN (2)
+#define ARDUINO_13_PIN (25)
+#define ARDUINO_12_PIN (24)
+#define ARDUINO_11_PIN (23)
+#define ARDUINO_10_PIN (22)
+#define ARDUINO_9_PIN (20)
+#define ARDUINO_8_PIN (19)
+
+#define ARDUINO_7_PIN (18)
+#define ARDUINO_6_PIN (17)
+#define ARDUINO_5_PIN (16)
+#define ARDUINO_4_PIN (15)
+#define ARDUINO_3_PIN (14)
+#define ARDUINO_2_PIN (13)
+#define ARDUINO_1_PIN (12)
+#define ARDUINO_0_PIN (11)
+
+#define ARDUINO_A0_PIN (3)
+#define ARDUINO_A1_PIN (4)
+#define ARDUINO_A2_PIN (28)
+#define ARDUINO_A3_PIN (29)
+#define ARDUINO_A4_PIN (30)
+#define ARDUINO_A5_PIN (31)
#define NFFS_AREA_MAX (8)
|
Wait to finish all the transmission before switching baudrate avoiding to reset UART in the middle of a transmission.
|
@@ -392,6 +392,9 @@ static error_return_t Robus_MsgHandler(msg_t *input)
return SUCCEED;
break;
case SET_BAUDRATE:
+ // We have to wait the end of transmission of all the messages we have to transmit
+ while (MsgAlloc_TxAllComplete() == FAILED)
+ ;
memcpy(&baudrate, input->data, sizeof(uint32_t));
LuosHAL_ComInit(baudrate);
return SUCCEED;
|
[bsp][CME_M7] update lwIP config.
|
/* Enable DHCP */
// #define RT_LWIP_DHCP
-/* the number of simulatenously active TCP connections*/
-#define RT_LWIP_TCP_PCB_NUM 3
+#define RT_MEMP_NUM_NETCONN 12
+#define RT_LWIP_PBUF_NUM 3
+#define RT_LWIP_RAW_PCB_NUM 2
+#define RT_LWIP_UDP_PCB_NUM 4
+#define RT_LWIP_TCP_PCB_NUM 8
+#define RT_LWIP_TCP_SEG_NUM 40
+#define RT_LWIP_TCP_SND_BUF 4380
+#define RT_LWIP_TCP_WND 4380
/* ip address of target */
#define RT_LWIP_IPADDR "192.168.1.30"
|
Fixed macro error
ATCA_SLOT_CONFIG_WIRTE_KEY_MASK -> ATCA_SLOT_CONFIG_WRITE_KEY_MASK
|
@@ -578,7 +578,7 @@ CK_RV pkcs11_key_write(CK_VOID_PTR pSession, CK_VOID_PTR pObject, CK_ATTRIBUTE_P
{
uint8_t key_buf[36] = { 0, 0, 0, 0 };
uint16_t write_key_id = cfg_ptr->SlotConfig[obj_ptr->slot];
- write_key_id &= ATCA_SLOT_CONFIG_WIRTE_KEY_MASK;
+ write_key_id &= ATCA_SLOT_CONFIG_WRITE_KEY_MASK;
write_key_id >>= ATCA_SLOT_CONFIG_WRITE_KEY_SHIFT;
memcpy(&key_buf[4], pAttribute->pValue, 32);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.