Age | Commit message (Collapse) | Author |
|
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.
|
|
Signed-off-by: deadprogram <[email protected]>
|
|
The bug should have been fixed in any LLVM version that we currently
support.
|
|
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).
|
|
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.
|
|
Signed-off-by: leongross <[email protected]>
|
|
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
wireless support
Signed-off-by: deadprogram <[email protected]>
|
|
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]>
|
|
|
|
Signed-off-by: leongross <[email protected]>
|
|
Signed-off-by: leongross <[email protected]>
|
|
Signed-off-by: leongross <[email protected]>
|
|
os: init signal ignore stub and add other stubs
Signed-off-by: leongross <[email protected]>
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
I added this a while ago but forgot to change the help documentation.
|
|
Signed-off-by: leongross <[email protected]>
|
|
|
|
|
|
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
|
|
machine/esp32: add i2c support
|
|
Signed-off-by: deadprogram <[email protected]>
|
|
This reverts commit 7b8ae2d6b62bf2bc76b8529147d24137df6ff8ec.
|
|
|
|
|
|
|
|
|
|
were missing implementation
Signed-off-by: deadprogram <[email protected]>
|
|
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]>
|
|
Signed-off-by: deadprogram <[email protected]>
|
|
|
|
fork for reproducible builds
Signed-off-by: deadprogram <[email protected]>
|
|
This is needed to be able to simulate the Gopher Badge code:
https://github.com/conejoninja/gopherbadge
|
|
- 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).
|
|
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.
|
|
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.
|
|
sleepTicks calls machineLightSleep with the duration cast to an unsigned
integer. This underflow for negative durations.
Signed-off-by: Elias Naur <[email protected]>
|
|
It should be int64 like for all other systems, not uint64.
|
|
|
|
* 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
|