coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
stdlib.h File Reference
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Include dependency graph for stdlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define printk(level, ...)   printf(__VA_ARGS__)
 
#define HALT(x)   abort()
 
#define xmalloc(size)   xmalloc_work((size), __FILE__, __func__, __LINE__)
 
#define xzalloc(size)   xzalloc_work((size), __FILE__, __func__, __LINE__)
 

Functions

static voidxmalloc_work (size_t size, const char *file, const char *func, int line)
 
static voidxzalloc_work (size_t size, const char *file, const char *func, int line)
 
voiddma_malloc (size_t size)
 
int dma_coherent (void *ptr)
 

Macro Definition Documentation

◆ HALT

#define HALT (   x)    abort()

Definition at line 17 of file stdlib.h.

◆ printk

#define printk (   level,
  ... 
)    printf(__VA_ARGS__)

Definition at line 16 of file stdlib.h.

◆ xmalloc

#define xmalloc (   size)    xmalloc_work((size), __FILE__, __func__, __LINE__)

Definition at line 32 of file stdlib.h.

◆ xzalloc

#define xzalloc (   size)    xzalloc_work((size), __FILE__, __func__, __LINE__)

Definition at line 41 of file stdlib.h.

Function Documentation

◆ dma_coherent()

int dma_coherent ( void ptr)

◆ dma_malloc()

void* dma_malloc ( size_t  size)

Definition at line 24 of file sdhci.c.

References malloc().

Here is the call graph for this function:

◆ xmalloc_work()

static void* xmalloc_work ( size_t  size,
const char *  file,
const char *  func,
int  line 
)
inlinestatic

Definition at line 20 of file stdlib.h.

References BIOS_ERR, HALT, malloc(), and printk.

Referenced by xzalloc_work().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xzalloc_work()

static void* xzalloc_work ( size_t  size,
const char *  file,
const char *  func,
int  line 
)
inlinestatic

Definition at line 34 of file stdlib.h.

References memset(), and xmalloc_work().

Here is the call graph for this function: