summaryrefslogtreecommitdiff
path: root/libcpu/risc-v/virt64/start.c
blob: a8c374f69808d176d0a8528e5cd7d4305755d9e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-12-07     RT-Thread    the first version
 */

#include <rthw.h>
#include <rtthread.h>
#include "board.h"

void init_bss(void)
{
    unsigned int *dst;

    dst = &__bss_start;
    while (dst < &__bss_end)
    {
        *dst++ = 0;
    }
}