If it is not defined, at least some installations of GCC will use their own
stack protector implementation (creating multiple definitions of
__stack_chk_fail).
Emulator is a 64-bit application now, so we should install 64-bit
version of libSDL. Rename docker image and emulator filename to indicate
64-bitness as well.
Two variables of the bootloader are persistent:
- __stack_chk_guard is used by interrupt handlers
- system_millis is used by timer interrupt and service routines
Note that currently __stack_chk_guard is shared between unprivileged
firmware and bootloader.
If we get more variables later it may make sense to make a section for
this.
Use `FLASH_PTR` macro to convert a flash address to a const pointer.
For real hardware it is just a cast, for emulator we subtract the
`FLASH_ORIGIN` and use it as index into the memory mapped flash file.
Make write access to flash with volatile pointers
Also use FLASH_PTR in DebugMemory* for now. This allows for reading and
writing the flash in the emulator or just crash it by reading outside
the flash...
This reverts the following range of commits:
68168393b9ea61328f4bb43bc3059ab32c4be2e9..ab76828e16b552c82f468e5d89f1af0645258995
Revert "update usb descriptors"
This reverts commit ab76828e16.
Revert "trezorhal: reply with winusb guid just for the main interface (0)"
This reverts commit 6acfc5d1b3.
Revert "winusb: fix WINUSB_EXTRA_STRING"
This reverts commit 966d8cb4ce.
Revert "winusb: cleanup DeviceInterfaceGUIDs usage"
This reverts commit 56c5a46095.
Revert "make winusb_string_descriptor const"
This reverts commit 132cc4b474.
Revert "webusb: remove unused constants"
This reverts commit 38b4d507bc.
Revert "bootloader: remove debug"
This reverts commit 56d3cbe2e9.
Revert "Bootloader - Switch from HID to WebUSB"
This reverts commit a22abfe90b.
Revert "Switch from HID to WebUSB"
This reverts commit cb067bd14c.
Revert "Add WinUSB, WebUSB, USB2.1 to build"
This reverts commit 05e218bcb8.
Revert "Add WebUSB descriptors"
This reverts commit a062127cef.
Revert "Add WinUSB (WebUSB preparation)"
This reverts commit e6981e85cd.
If the destination address is controlled by the TREZOR (the wallet set
the address_n field), show the path to the address on the confirm output
dialog in the same format as the "show on Trezor" dialog indicates the
path.