SimpleKernel  0.0.1
main.cpp File Reference

内核入口 More...

#include "kernel.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void _start ()
 
int main (int _argc, char **_argv)
 入口 More...
 

Detailed Description

内核入口

Author
Zone.N (Zone..nosp@m.Niuz.nosp@m.h@hot.nosp@m.mail.nosp@m..com)
Version
1.0
Date
2023-07-15
change log:
DateAuthorDescription
2023-07-15Zone.N (Zone..nosp@m.Niuz.nosp@m.h@hot.nosp@m.mail.nosp@m..com)创建文件

Definition in file main.cpp.

Function Documentation

◆ _start()

void _start ( )

Definition at line 19 of file main.cpp.

19 { main(0, nullptr); }
int main(int _argc, char **_argv)
入口
Definition: main.cpp:19
Here is the call graph for this function:

◆ main()

int main ( int  _argc,
char **  _argv 
)

入口

内核入口

Parameters
_argc参数个数
_argv参数列表
Returns
int 正常返回 0

Definition at line 21 of file main.cpp.

21  {
22  (void)_argc;
23  (void)_argv;
24  // 进入死循环
25  while (true) {
26  ;
27  }
28  return 0;
29 }