Skip to content

Instantly share code, notes, and snippets.

View Endilll's full-sized avatar

Vlad Serebrennikov Endilll

View GitHub Profile
@Endilll
Endilll / dr1xx.cpp
Created May 19, 2023 16:20
DR test structure changes
// Before
// ======
// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++20 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++23 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
@Endilll
Endilll / dr1xx.cpp
Created May 17, 2023 15:05
DR test notation with split-file
// Status quo
// ==========
// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-unknown %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-unknown %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++14 -triple x86_64-unknown-unknown %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-unknown %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-unknown %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
// RUN: %clang_cc1 -std=c++23 -triple x86_64-unknown-unknown %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
@Endilll
Endilll / rxcpp_single_header.hpp
Created July 31, 2022 09:25
RxCpp v2 single header (commit 761b932a80e2be6e2b62d232e754bd96fc448946)
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
#pragma once
#if !defined(RXCPP_RX_INCLUDES_HPP)
#define RXCPP_RX_INCLUDES_HPP
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
#if !defined(RXCPP_RX_TRACE_HPP)
bool VapourSynthScriptProcessor::recreatePreviewNode(NodePair & a_nodePair)
{
if(!a_nodePair.pOutputNode)
return false;
if(!m_cpVSAPI)
return false;
if(a_nodePair.pPreviewNode)
{
#!/bin/bash -v
#init and erase flash
echo -ne "mlc_gf15_probe 0 0x061d1135 0x4c4c261c 0x1c12194c 0x000b0204 0x0404000e 0x0400000e 0x08000006\r" > /dev/ttyUSB0
sleep 1
echo -ne "mlc_gf15_eccblockerase 0 0 0 0x140000\r" > /dev/ttyUSB0
sleep 1
echo -ne "urx 0x80000000 $(wc -c ./firmware.bin | awk '{print $1 }')\r" > /dev/ttyUSB0
sleep 1
#!/bin/bash -v
dd if=../smp87xx_phyblock_generator_v0x08/phyblock0_bringup-NAND-SATA-SPI.bin of=firmware.bin bs=1K count=128
dd if=../smp87xx_phyblock_generator_v0x08/phyblock0_bringup-NAND-SATA-SPI.bin of=firmware.bin bs=1K count=128 seek=128
dd if=../smp87xx_thimble_0x23/thimble_armor.xload3 of=firmware.bin bs=1K count=256 seek=256
dd if=../smp87xx_thimble_0x23/thimble_armor.xload3 of=firmware.bin bs=1K count=256 seek=512
dd if=../smp87xx_thimble_0x23/8759_bringup.bin of=firmware.bin bs=1K count=128 seek=768
dd if=../smp87xx_thimble_0x23/8759_bringup.bin of=firmware.bin bs=1K count=128 seek=896
U-BOOT: setxenv
(0x00) 4 x.ddr.0.density 0x00000008
(0x00) 4 x.ddr.1.density 0x00000008
(0x00) 4 a.avclk_mux 0x17400000
(0x00) 4 a.hostclk_mux 0x06980131
(0x00) 4 a.pll.3.pll 0x01000033
(0x00) 4 a.pll.1.div 0x0000060f
(0x00) 4 a.pll.3.div 0x00000402
(0x00) 4 a.cd0_freq 0x00000000
(0x00) 4 a.cd1_freq 0x00000000
U-BOOT: bootm
## Booting kernel from Legacy Image at 86000000 ...
Image Name: Linux-3.4.39.13
Created: 2017-07-14 9:14:16 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 13206080 Bytes = 12.6 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
[root@Sisteron mrua]# source run.env
/ /mrua
/mrua
Creating /dev/mum0
Creating /dev/em8xxx0
Loading '/mrua/fw/llad.ko'
[ 229.770000] llad: module license 'LGPL' taints kernel.
[ 229.770000] Disabling lock debugging due to kernel taint
Chip identified as SMP8758 rev=1 prod (certificate id unused)
[root@Sisteron mrua]#
Xcf
0x00000000 0x1044000b
f a0ed3c5b791ef3541794f3e91d7695f646359a66 rc=6
I?
I92
BORG mlc0,11@0x00000000 [_ftext=0x80140000 etext=0x801457d4]
[_fdata=0x801457d4 edata=0x80145e70] [_fbss=0x80145e70 end=0x80146098] sp=0x80157c30 gp=0x8014de60
pll1=0x01000033 premux=0x00000101 mux=0x17000000 [mips@349MHz]
!xxenv xload3 rc=6
ramp pll: pll1 to 0x0100003a