start.c 403 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-12-07 RT-Thread the first version
  9. */
  10. #include <rthw.h>
  11. #include <rtthread.h>
  12. #include "board.h"
  13. void init_bss(void)
  14. {
  15. unsigned int *dst;
  16. dst = &__bss_start;
  17. while (dst < &__bss_end)
  18. {
  19. *dst++ = 0;
  20. }
  21. }