Operating System
Functions
kernel.h File Reference

used by kernel.c a header for kernel file. why not read the source directly? More...

Go to the source code of this file.

Functions

 __asm__ (".globl _start\)
 
 __asm__ ("_start:\)
 
 __asm__ ("mov $0, %eax\)
 
 __asm__ ("mov %ax, %ds\)
 
 __asm__ ("mov %ax, %es\)
 
 __asm__ ("jmpl $0, $main\)
 

Detailed Description

used by kernel.c a header for kernel file. why not read the source directly?

Definition in file kernel.h.

Function Documentation

◆ __asm__() [1/6]

__asm__ ( ".globl _start\  )

◆ __asm__() [2/6]

__asm__ ( "_start:\  )

◆ __asm__() [3/6]

__asm__ ( "mov  $0,
%eax\   
)

◆ __asm__() [4/6]

__asm__ ( "mov %  ax,
%ds\   
)

◆ __asm__() [5/6]

__asm__ ( "mov %  ax,
%es\   
)

◆ __asm__() [6/6]

__asm__ ( "jmpl  $0,
  $main\ 
)