Loading...
Searching...
No Matches
cpu.h File Reference

Native CPU header. More...

Detailed Description

Native CPU header.

Author
Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e

The native CPU uses system calls to simulate hardware access.

Author
Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e

Definition in file cpu.h.

#include <stdint.h>
#include <stdio.h>
#include "cpu_conf.h"
+ Include dependency graph for cpu.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define CPU_HAS_UNALIGNED_ACCESS
 The CPU supports unaligned memory access.
 
static uintptr_t cpu_get_caller_pc (void)
 Gets the address the callee will return to.
 

Macro Definition Documentation

◆ CPU_HAS_UNALIGNED_ACCESS

#define CPU_HAS_UNALIGNED_ACCESS

The CPU supports unaligned memory access.

Even if the underlying architecture does not support it, the kernel will take care of it.

Definition at line 40 of file cpu.h.

Function Documentation

◆ cpu_get_caller_pc()

static uintptr_t cpu_get_caller_pc ( void )
inlinestatic

Gets the address the callee will return to.

Definition at line 45 of file cpu.h.