# Trap Home Page

## RISC-V trap machinery

{% content-ref url="untitled-3" %}
[untitled-3](https://xiayingp.gitbook.io/build_a_os/traps-and-interrupts/untitled-3)
{% endcontent-ref %}

{% content-ref url="untitled-2" %}
[untitled-2](https://xiayingp.gitbook.io/build_a_os/traps-and-interrupts/untitled-2)
{% endcontent-ref %}

## Traps from Kernel Space

{% content-ref url="traps-from-kernel-space" %}
[traps-from-kernel-space](https://xiayingp.gitbook.io/build_a_os/traps-and-interrupts/traps-from-kernel-space)
{% endcontent-ref %}

## Traps from User Space

{% content-ref url="untitled" %}
[untitled](https://xiayingp.gitbook.io/build_a_os/traps-and-interrupts/untitled)
{% endcontent-ref %}

## How `exec` works

{% content-ref url="how-exec-works" %}
[how-exec-works](https://xiayingp.gitbook.io/build_a_os/traps-and-interrupts/how-exec-works)
{% endcontent-ref %}

## How fork works

{% content-ref url="how-fork-works" %}
[how-fork-works](https://xiayingp.gitbook.io/build_a_os/traps-and-interrupts/how-fork-works)
{% endcontent-ref %}
