aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-06-27wasm-unknown: make sure the os package can be importedfix-wasm-unknown-os-pkgAyke van Laethem
See: https://github.com/tinygo-org/tinygo/issues/4314 The os package isn't particularly useful on wasm-unknown, but just like on baremetal systems it's imported by a lot of packages so it should at least be possible to import this package.
2024-06-25version: update to 0.33.0-devdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-06-25compiler: remove old atomics workaround for AVRAyke van Laethem
The bug should have been fixed in any LLVM version that we currently support.
2024-06-24machine: use new internal/binary packageAyke van Laethem
The encoding/binary package in Go 1.23 imports the slices package, which results in circular import when imported from the machine package. Therefore, encoding/binary cannot be used in the machine package. This commit fixes that by introducing a new internal/binary package that is just plain Go code without dependencies. It can be safely used anywhere (including the runtime if needed).
2024-06-23all: use latest version of x/toolsAyke van Laethem
We previously picked a work-in-progress patch, but this is the proper fix for this race condition. I think we should use that instead of relying on the previous work-in-progress patch.
2024-06-23remove unused registers for x86_64 linux syscallsleongross
Signed-off-by: leongross <[email protected]>
2024-06-16Release 0.32.0v0.32.0Ayke van Laethem
2024-06-15add SetReadDeadline stubleongross
2024-06-14Add smoke tests for machine packageAyke van Laethem
The machine package wasn't tested for every board. Therefore, add a new serial-like test that also tries to import the machine package. This should highlight potential issues in the future.
2024-06-12compiler: fix race condition by applying a proposed patchAyke van Laethem
This commit switches to v0.22.0 of golang.org/x/tools and then applies https://go-review.googlesource.com/c/tools/+/590815 to fix the race condition. In my testing, it seems to fix these issues.
2024-06-12all: drop support for Go 1.18Ayke van Laethem
Go 1.18 has been unsupported for quite a while now (the oldest supported version is Go 1.21). But more importantly, the golang.org/x/tools module now requires Go 1.19 or later. So we'll drop this older version.
2024-06-11targets: add cyw43439 tag to badger2040-w and also add new pico-w target for ↵deadprogram
wireless support Signed-off-by: deadprogram <[email protected]>
2024-06-10transform/rtcalls: Bail fast if can't convert pointerL. Pereira
There's no need to keep looping if one of the uses makes it impossible to convert a call to `runtime.stringToBytes()` with a raw pointer. Signed-off-by: L. Pereira <[email protected]>
2024-06-07cgo: implement shift operations in preprocessor macrosAyke van Laethem
2024-06-06update fpm ci, fixup importleongross
Signed-off-by: leongross <[email protected]>
2024-06-06Add process.Release for unixleongross
Signed-off-by: leongross <[email protected]>
2024-06-06add FindProcess for posixleongross
Signed-off-by: leongross <[email protected]>
2024-06-02Add signal stubs (#4270)leongross
os: init signal ignore stub and add other stubs Signed-off-by: leongross <[email protected]>
2024-05-31builder: make sure wasm-opt command line is printed if askedDamian Gryski
2024-05-31builder: keep un-wasm-opt'd .wasm if -work was passedDamian Gryski
2024-05-29src/reflect: uncomment more tests that passDamian Gryski
2024-05-29cgo: do a basic test that math functions workAyke van Laethem
They should, but we weren't testing this. I discovered this while working on https://github.com/tinygo-org/macos-minimal-sdk/pull/4 which will likely make math.h not work anymore. So I wanted to make sure we have a test in place before we update that dependency.
2024-05-28os/user: add stubs for `Lookup{,Group}` and `Group`diamondburned
2024-05-28compiler,reflect: fix NumMethods for Interface typefrenkel26
2024-05-24LLVM 18 supportAyke van Laethem
2024-05-24main: add -serial=rtt flag as possible optionAyke van Laethem
I added this a while ago but forgot to change the help documentation.
2024-05-18fix fpm ci installionleongross
Signed-off-by: leongross <[email protected]>
2024-05-14add aes generic aliasesleongross
2024-05-14reflect: use int in StringHeader and SliceHeader on non-AVR platforms (#4156)Randy Reddig
2024-05-14Support UF2 drives with space in their name on LinuxMateusz Nowak
Some devices, such as Seeed Studio XIAO with Adafruit bootloader, use complex names for UF2 device. With this fix applied, /proc/mounts should be parsed correctly
2024-05-13Add I2C support for esp32 (#4259)Johann Freymuth
machine/esp32: add i2c support
2024-05-13targets: add support for Badger2040 Wdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-05-13Revert "flake.nix: explicitly add libcxx as dependency"Elias Naur
This reverts commit 7b8ae2d6b62bf2bc76b8529147d24137df6ff8ec.
2024-05-13Adding a commentMarco Manino
2024-05-13Checking for methodset existanceMarco Manino
2024-05-12targets: add support for m5paperJohann Freymuth
2024-05-10machine: add TxFifoFreeLevel() for CANsago35
2024-05-08machine/stm32: add i2c Frequency and SetBaudRate() function for boards that ↵deadprogram
were missing implementation Signed-off-by: deadprogram <[email protected]>
2024-05-05Makefile: add lld to list of build targets for wasm-ldChristian Stewart
The current list of targets does not build wasm-ld. wasm-ld is a symlink created in ./llvm-build/bin pointing to ./lld. Add the "lld" build target to get wasm-ld into ./llvm-build/bin. Fixes a build failure where wasm-ld is not found. Signed-off-by: Christian Stewart <[email protected]>
2024-04-30build: update llvm cache to use tagged LLVM source versiondeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-04-30Add 'make spell' target, fix what it finds. In .go files, only checks comments.Dan Kegel
2024-04-29make: use release esp-17.0.1_20240419 tag for source from espressif LLVM ↵deadprogram
fork for reproducible builds Signed-off-by: deadprogram <[email protected]>
2024-04-28simulator: add support for GetRNGAyke van Laethem
This is needed to be able to simulate the Gopher Badge code: https://github.com/conejoninja/gopherbadge
2024-04-28simulator: fix I2C supportAyke van Laethem
- Add ReadRegister and WriteRegister (because they're still used by some packages). - Fix out-of-bounds panic in I2C.Tx when either w or r has a length of zero (or is nil).
2024-04-27mksnanov3: limit programming speed to 1800 kHzElias Naur
Both of my development boards exhibit stability problems when programming at the default 4000 kHz speed of the target/stmf32d4x OpenOCD configuration. Note that the speed limit must be set by an event handler, because it is hard-coded by a similar event handler in stmf32f4x.cfg: $_TARGETNAME configure -event reset-init { # Configure PLL to boost clock to HSI x 4 (64 MHz) ... # Boost JTAG frequency adapter speed 8000 <-- resolves to 4000 kHz by the SWD interface } While here, replace the reference to the deprecated "stlink-v2" configuration.
2024-04-27compileopts: fix race conditionAyke van Laethem
Appending to a slice can lead to a race condition if the capacity of the slice is larger than the length (and therefore the returned slice will overwrite some fields in the underlying array). This fixes that race condition. I don't know how severe this particular one is. It shouldn't be that severe, but it is a bug and it makes it easier to hunt for possibly more serious race conditions.
2024-04-27runtime: skip negative sleep durations in sleepTicksElias Naur
sleepTicks calls machineLightSleep with the duration cast to an unsigned integer. This underflow for negative durations. Signed-off-by: Elias Naur <[email protected]>
2024-04-26rp2040: fix timeUnit typeAyke van Laethem
It should be int64 like for all other systems, not uint64.
2024-04-24machine/thingplus_rp2040, machine/waveshare-rp2040-zero:add WS2812 definitionsago35
2024-04-22Lint: lint and fix src/{os,reflect} (#4228)dkegel-fastly
* lint: expand to src/{os,reflect}, fix or suppress what it found * internal/tools/tools.go: the tools idiom requires a build tag guard to avoid go test complaints