mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Concentrate memory and MMU management (lib.c malloc, romvec opb_, iommu, OF /memory) to lib.c. git-svn-id: svn://coreboot.org/openbios/openbios-devel@344 f158a5a8-5612-0410-a976-696ce0be7e32
28 lines
730 B
C
28 lines
730 B
C
/*
|
|
* Creation Date: <2003/12/19 18:52:20 samuel>
|
|
* Time-stamp: <2003/12/19 18:52:21 samuel>
|
|
*
|
|
* <stdlib.h>
|
|
*
|
|
*
|
|
* Copyright (C) 2003 Samuel Rydh (samuel@ibrium.se)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* version 2
|
|
*
|
|
*/
|
|
|
|
#ifndef _H_STDLIB
|
|
#define _H_STDLIB
|
|
|
|
extern void *malloc( int size );
|
|
extern void free( void *ptr );
|
|
extern void *realloc( void *ptr, size_t size );
|
|
extern int posix_memalign(void **memptr, size_t alignment, size_t size);
|
|
|
|
/* should perhaps go somewhere else... */
|
|
extern void qsort( void *base, size_t nmemb, size_t size, int (*compar)(const void*, const void*));
|
|
|
|
#endif /* _H_STDLIB */
|