[Cryptech-Commits] [sw/stm32] branch master updated (fe94d97 -> 1175ff6)

git at cryptech.is git at cryptech.is
Thu May 11 11:33:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a change to branch master
in repository sw/stm32.

    from fe94d97  Make stm_flash_sector_num a little more efficient.
     add fe98998  Whack with club until working with new keystore API.
     add e8efb62  Track removal of `type` argument from hal_rpc_pkey_find().
     add d1462f0  Fix frelling sw/stm32/Makefile to rebuild libraries properly.
     add 4b5afd6  Track libhal cleanup (function names, const-ification).
     add 01b59c4  Revised ks_flash.  Compiles, not yet tested.
     add fb931db  Change default gcc optimization level to -Og.
     add 2dc81c9  Use subsectors instead of sectors in keystore.
     add 14fbc21  Fix function pointer type, typo in variable name.
     add f7d1bb7  "keystore erase" now clears entire keystore flash.
     add d5f67d0  strcasecmp() is not a standard function.
     add eaaf107  Track changes to libhal RPC pkey API.
     add 002f019  Track changes to libhal pkey API.
     add fd3a9b8  Don't return from flash write calls until WIP flag clears.
     add 42d9851  Tweak CLI keystore commands for latest libhal RPC keystore API.
     add 66348b6  Wait for WIP to clear before returning from erase operations too.
     add c6d3a52  hal_rpc_pkey_find() -> hal_rpc_pkey_open().
     add 08c377d  Track removal of hal_rpc_pkey_list().
     add 434088c  Reinitialize keystore data structures after wiping keystore flash.
     add c28f77d  Add debugging code to cryptech_upload.
     add eb8c7d7  Merge branch 'master' into ksng.
     add de94551  Merge branch 'master' into ksng
     add d492caa  Flush output to serial device after writing.
     add a86b6d2  Rewrite core upload loop to simplify and fix race conditions.
     add 4d0b433  Initialize PINs before trying to use them in bootloader.
     add b6e02ef  Don't wrap key number in "keystore show keys".
     add 0345b66  Add locking around keystore operations.
     add f6674bd  Add n25q128_erase_bulk
     add 1dc664a  Add performance tests for spiflash_n25q128.c
     add 742cbe3  Simplify spiflash test code slightly, add keystore test code.
     add e9011a1  Remove unnecessary delays in flash code.
     add 0c298a1  Move dangerous auto_erase functionality to where it's actually used.
     add 9335ada  Use bulk erase in the one place it makes sense.
     add 56fcfdf  Use libcli return codes where appropriate; show whether PINs are set.
     add 189df37  Refactor flash code.
     add 4398d7e  Speed up file upload enormously.
     add a6d363b  Add --pin and --quiet options.
     add 7a8a256  Try to be a bit more robust in the face of normal errors.
     add 4837c5d  Track API changes on sw/libhal pkcs8 branch.
     add 108b532  Handle race condition while fetching key metadata for display.
     add d0b87b7  Logging implementation for Alpha hardware.
     add fd2c935  Move hal_log() support to separate module.
     add 9eb2c89  sw/stm32 Makefiles are a mess.
     add a2e32d3  Missing include files, doh.
     add bb6d9e8  Switch to libhal's CRC-32 code.
     add 2b6b9f8  Change RPC UART to have a high-priority thread monitoring a large(ish) DMA buffer, because we've observed out-of-order receives under load.
     add 76a993b  Merge remote-tracking branch 'origin/uart_rx_thread' into ksng
     add 6c51d44  Use default SysTick interrupt priority.
     add dc0ec1a  Add a short delay to osMailAlloc, since we're no longer calling it in an ISR.
     add 410e6bb  Rewrite the wait-for-ready loop in uart_send_bytes() to actually work.
     add bf394f2  Replace the RTOS with a simple cooperative tasker.
     add 30c4302  Remove rtos source files.
     add 4a69b83  Remove exception handlders that I probably shouldn't have defined in the first place.
     add 14282a9  Port cli-test to the new task API.
     add f77ba50  Simplify hsm makefile.
     add e234cac  Add task_delay.
     add e0e97a5  cli-test doesn't use the tasker, even though it might have previously used a semaphore from the rtos
     add 73b784e  Add minimal mutexes to the minimal tasking system
     add 0ced3ff  Add support for hal_sleep().
     add 99c8452  Refactor cryptech_upload to work either directly or via cryptech_muxd.
     add 2791ee8  Merge branch 'ksng' into no-rtos
     add 0ebefa4  Need stdint.h if we're going to use uint32_t.
     add 09b4960  Addendum to commit e0e97a5: Remove all references to the tasker from cli-test.
     add 1ac75ba  Add HAL_Delay as an alias for task_delay, but don't wedge if the tasker isn't running yet.
     add 716694a  Remove bogus counting-loop version of HAL_Delay.
     add 1175ff6  Merge branch 'init_cleanup' into no-rtos

No new revisions were added by this update.

Summary of changes:
 Makefile                                           |  104 +-
 libraries/mbed/rtos/Makefile                       |   40 -
 libraries/mbed/rtos/rtos/rtos_idle.c               |   51 -
 libraries/mbed/rtos/rtos/rtos_idle.h               |   37 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/HAL_CM.c   |  170 --
 .../mbed/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h     |  537 ------
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/RTX_Conf.h |   72 -
 .../mbed/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c    |  342 ----
 .../TARGET_RTOS_M4_M7/TOOLCHAIN_GCC/HAL_CM4.S      |  405 -----
 .../TARGET_RTOS_M4_M7/TOOLCHAIN_GCC/SVC_Table.S    |   56 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/cmsis_os.h |  774 --------
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/os_tcb.h   |   51 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_CMSIS.c | 1887 --------------------
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Event.c |  190 --
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Event.h |   46 -
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_HAL_CM.h      |  276 ---
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_List.c  |  320 ----
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_List.h  |   67 -
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mailbox.c     |  292 ---
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mailbox.h     |   48 -
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_MemBox.c      |  166 --
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_MemBox.h      |   46 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mutex.c |  197 --
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mutex.h |   44 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Robin.c |   84 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Robin.h |   45 -
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_Semaphore.c   |  183 --
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_Semaphore.h   |   46 -
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_System.c      |  299 ----
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_System.h      |   52 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Task.c  |  339 ----
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Task.h  |   73 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Time.c  |   94 -
 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Time.h  |   47 -
 .../mbed/rtos/rtx/TARGET_CORTEX_M/rt_TypeDef.h     |  128 --
 .../TOOLCHAIN_GCC_ARM/startup_stm32f429xx_rtos.S   |  566 ------
 .../TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_conf.h     |    2 +-
 .../TARGET_CRYPTECH_ALPHA/stm32f4xx_hal_msp.c      |   10 -
 .../TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c           |   86 +-
 .../TARGET_CRYPTECH_ALPHA/stm32f4xx_it_rtos.c      |  265 ---
 projects/board-test/Makefile                       |    5 +-
 projects/board-test/fmc-perf.c                     |   15 -
 projects/board-test/fmc-probe.c                    |   20 -
 projects/board-test/fmc-test.c                     |    7 +-
 projects/board-test/keystore-perf.c                |  198 ++
 projects/board-test/led-test.c                     |    1 -
 projects/board-test/rtc-test.c                     |   70 +-
 projects/board-test/short-test.c                   |    1 -
 projects/board-test/spiflash-perf.c                |  250 +++
 projects/board-test/uart-test.c                    |    1 -
 projects/bootloader/Makefile                       |    3 +-
 projects/bootloader/bootloader.c                   |   11 +-
 projects/bootloader/crc32.c                        |   62 -
 projects/bootloader/dfu.c                          |   18 +-
 projects/{libhal-test/main.c => bootloader/log.c}  |   61 +-
 projects/cli-test/Makefile                         |   20 +-
 projects/cli-test/cli-test.c                       |   22 +
 projects/cli-test/crc32.c                          |   62 -
 projects/cli-test/mgmt-cli.c                       |   21 +-
 projects/cli-test/mgmt-dfu.c                       |    6 +-
 projects/cli-test/mgmt-fpga.c                      |   10 +-
 projects/cli-test/mgmt-keystore.c                  |  351 ++--
 projects/cli-test/mgmt-masterkey.c                 |   22 +-
 projects/cli-test/mgmt-misc.c                      |   30 +-
 projects/cli-test/mgmt-show.c                      |    4 +-
 projects/cli-test/mgmt-test.c                      |   12 -
 projects/cli-test/test-mkmif.c                     |   12 +-
 projects/cli-test/test_sdram.c                     |    1 -
 projects/hsm/Makefile                              |   38 +-
 projects/hsm/crc32.c                               |   62 -
 projects/hsm/cryptech_miniterm                     |    2 +-
 projects/hsm/cryptech_upload                       |  244 ++-
 projects/hsm/hsm.c                                 |  348 +++-
 projects/{libhal-test/main.c => hsm/log.c}         |   61 +-
 projects/hsm/mgmt-cli.c                            |   24 +-
 projects/hsm/mgmt-fpga.c                           |   12 +-
 projects/hsm/mgmt-keystore.c                       |  379 ++--
 projects/hsm/mgmt-masterkey.c                      |   20 +-
 projects/hsm/mgmt-misc.c                           |   23 +-
 projects/hsm/{mgmt-firmware.c => mgmt-task.c}      |   60 +-
 projects/hsm/{mgmt-thread.h => mgmt-task.h}        |   14 +-
 projects/hsm/mgmt-thread.c                         |   97 -
 projects/libhal-test/Makefile                      |    3 -
 projects/libhal-test/main.c                        |   11 -
 projects/rtos-test/Makefile                        |   22 -
 projects/rtos-test/mutex-test.c                    |   40 -
 projects/rtos-test/semaphore-test.c                |   34 -
 projects/rtos-test/thread-test.c                   |   24 -
 spiflash_n25q128.c                                 |  372 ++--
 spiflash_n25q128.h                                 |   24 +-
 stm-flash.c                                        |    5 +-
 stm-flash.h                                        |    1 -
 stm-fmc.c                                          |  176 +-
 stm-fmc.h                                          |    4 +-
 stm-fpgacfg.c                                      |   57 +-
 stm-fpgacfg.h                                      |    9 +-
 stm-init.c                                         |  215 +--
 stm-keystore.c                                     |   69 +-
 stm-keystore.h                                     |   15 +-
 stm-rtc.c                                          |   20 +-
 stm-rtc.h                                          |    3 +-
 stm-sdram.c                                        |  502 +++---
 stm-sdram.h                                        |   95 +-
 stm-uart.c                                         |   86 +-
 stm-uart.h                                         |    2 +
 task.c                                             |  356 ++++
 stm-led.h => task.h                                |   76 +-
 107 files changed, 2739 insertions(+), 10699 deletions(-)
 delete mode 100644 libraries/mbed/rtos/Makefile
 delete mode 100644 libraries/mbed/rtos/rtos/rtos_idle.c
 delete mode 100644 libraries/mbed/rtos/rtos/rtos_idle.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/HAL_CM.c
 delete mode 100755 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/RTX_Conf.h
 delete mode 100755 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_GCC/HAL_CM4.S
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_GCC/SVC_Table.S
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/cmsis_os.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/os_tcb.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_CMSIS.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Event.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Event.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_HAL_CM.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_List.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_List.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mailbox.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mailbox.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_MemBox.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_MemBox.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mutex.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Mutex.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Robin.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Robin.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Semaphore.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Semaphore.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_System.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_System.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Task.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Task.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Time.c
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_Time.h
 delete mode 100644 libraries/mbed/rtos/rtx/TARGET_CORTEX_M/rt_TypeDef.h
 delete mode 100644 libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/TOOLCHAIN_GCC_ARM/startup_stm32f429xx_rtos.S
 delete mode 100644 libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it_rtos.c
 create mode 100644 projects/board-test/keystore-perf.c
 create mode 100644 projects/board-test/spiflash-perf.c
 delete mode 100644 projects/bootloader/crc32.c
 copy projects/{libhal-test/main.c => bootloader/log.c} (67%)
 delete mode 100644 projects/cli-test/crc32.c
 delete mode 100644 projects/hsm/crc32.c
 copy projects/{libhal-test/main.c => hsm/log.c} (67%)
 copy projects/hsm/{mgmt-firmware.c => mgmt-task.c} (53%)
 rename projects/hsm/{mgmt-thread.h => mgmt-task.h} (84%)
 delete mode 100644 projects/hsm/mgmt-thread.c
 delete mode 100644 projects/rtos-test/Makefile
 delete mode 100644 projects/rtos-test/mutex-test.c
 delete mode 100644 projects/rtos-test/semaphore-test.c
 delete mode 100644 projects/rtos-test/thread-test.c
 create mode 100644 task.c
 copy stm-led.h => task.h (59%)



More information about the Commits mailing list