OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [examples/] [dhrystone21/] [src/] [stdtool.c] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sergeykhbr
/*****************************************************************************
2
 * @file
3
 * @author   Sergey Khabarov
4
 * @brief    Firmware example.
5
 ****************************************************************************/
6
 
7
#include <inttypes.h>
8
#include <string.h>
9
#include <stdio.h>
10
 
11
extern char _end;
12
 
13
/**
14
 * @name sbrk
15
 * @brief Increase program data space.
16
 * @details Malloc and related functions depend on this.
17
 */
18
char *_sbrk(int incr) {
19
    return &_end;
20
}
21
 
22
void _exit(int c) {
23
    for (;;) { }
24
}
25
 
26
int _kill(pid_t pid, int signum) {
27
    return 0;
28
}
29
 
30
int _getpid() {
31
    return 0;
32
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.