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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [examples/] [dhrystone21/] [src/] [stdtool.c] - Rev 5

Compare with Previous | Blame | View Log

/*****************************************************************************
 * @file
 * @author   Sergey Khabarov
 * @brief    Firmware example. 
 ****************************************************************************/
 
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
 
extern char _end;
 
/**
 * @name sbrk
 * @brief Increase program data space.
 * @details Malloc and related functions depend on this.
 */
char *_sbrk(int incr) {
    return &_end;
}
 
void _exit(int c) {
    for (;;) { }
}
 
int _kill(pid_t pid, int signum) {
    return 0;
}
 
int _getpid() {
    return 0;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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