max width of the link and also it will take the frequency of K8 HT already done coreboot (and checks if t can run on it). Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3169 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
21 lines
439 B
C
21 lines
439 B
C
#ifndef STDLIB_H
|
|
#define STDLIB_H
|
|
|
|
#include <stddef.h>
|
|
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
|
|
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
|
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
|
|
|
#ifndef __ROMCC__
|
|
extern void *malloc(size_t size);
|
|
void free(void *ptr);
|
|
|
|
/* Extensions to malloc... */
|
|
typedef size_t malloc_mark_t;
|
|
void malloc_mark(malloc_mark_t *place);
|
|
void malloc_release(malloc_mark_t *place);
|
|
#endif
|
|
|
|
#endif /* STDLIB_H */
|