AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
reboot.c File Reference

The PC: restarting, halting and powering off. More...

#include <core/system.h>
#include <core/arch.h>
#include <platform/misc.h>
#include <dev/i8042.h>

Go to the source code of this file.

Functions

void platform_reboot (void)
 Restarts the machine, through the keyboard controller, which can reset the CPU.
void arch_reboot (void)
 Restarts the machine.
void arch_halt (void)
 Stops the CPU for good, with interrupts off.
void arch_poweroff (void)
 Powers the machine off, or halts it if it can't be powered off.

Detailed Description

The PC: restarting, halting and powering off.

Definition in file reboot.c.

Function Documentation

◆ arch_halt()

void arch_halt ( void )

Stops the CPU for good, with interrupts off.

Definition at line 26 of file reboot.c.

References arch_halt(), and arch_interrupts_disable().

◆ arch_poweroff()

void arch_poweroff ( void )

Powers the machine off, or halts it if it can't be powered off.

Definition at line 35 of file reboot.c.

References arch_halt(), arch_poweroff(), and x86_acpi_poweroff().

◆ arch_reboot()

void arch_reboot ( void )

Restarts the machine.

Definition at line 20 of file reboot.c.

References arch_reboot(), and platform_reboot().

◆ platform_reboot()

void platform_reboot ( void )

Restarts the machine, through the keyboard controller, which can reset the CPU.

Definition at line 12 of file reboot.c.

References i8042_reboot(), and platform_reboot().

Referenced by arch_reboot(), and platform_reboot().