Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

libbase: add abort()

  • Loading branch information...
commit 7414dcaeed3fdb00fa4eb8b9ced32bd23b2d9615 1 parent 6f8f96b
Sébastien Bourdeauducq authored October 01, 2011
3  software/include/base/stdlib.h
... ...
@@ -1,6 +1,6 @@
1 1
 /*
2 2
  * Milkymist SoC (Software)
3  
- * Copyright (C) 2007, 2008, 2009 Sebastien Bourdeauducq
  3
+ * Copyright (C) 2007, 2008, 2009, 2011 Sebastien Bourdeauducq
4 4
  * Copyright (C) Linux kernel developers
5 5
  *
6 6
  * This program is free software: you can redistribute it and/or modify
@@ -50,6 +50,7 @@ long strtol(const char *nptr, char **endptr, int base);
50 50
 float atof(const char *s);
51 51
 
52 52
 unsigned int rand();
  53
+void abort();
53 54
 
54 55
 void *malloc(size_t size);
55 56
 void free(void *p);
8  software/libbase/libc.c
... ...
@@ -1,6 +1,6 @@
1 1
 /*
2 2
  * Milkymist SoC (Software)
3  
- * Copyright (C) 2007, 2008, 2009, 2010 Sebastien Bourdeauducq
  3
+ * Copyright (C) 2007, 2008, 2009, 2010, 2011 Sebastien Bourdeauducq
4 4
  * Copyright (C) Linus Torvalds and Linux kernel developers
5 5
  *
6 6
  * This program is free software: you can redistribute it and/or modify
@@ -569,3 +569,9 @@ unsigned int rand()
569 569
 	seed = 129 * seed + 907633385;
570 570
 	return seed;
571 571
 }
  572
+
  573
+void abort()
  574
+{
  575
+	printf("Aborted.");
  576
+	while(1);
  577
+}

0 notes on commit 7414dca

Please sign in to comment.
Something went wrong with that request. Please try again.