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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [tic80/] [crt0.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
/* This is mostly just a placeholder (copied from m88kbug) until we
2
   figure out what it really should be... -fnf */
3
 
4
extern int main(int argc, char **argv);
5
 
6
extern char _edata;
7
extern char _end;
8
extern char stack;
9
 
10
_start()
11
{
12
  char *p;
13
 
14
  p = &_edata + 1;
15
  while (p < &_end)
16
    {
17
      *p++ = 0;
18
    }
19
 
20
  main(0, 0);
21
  _exit();
22
}

powered by: WebSVN 2.1.0

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