Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hyperion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eemeli Lehtonen
hyperion
Commits
c95e1b75
Commit
c95e1b75
authored
2 years ago
by
Eemeli Lehtonen
Browse files
Options
Downloads
Patches
Plain Diff
separate kernel lib and binary
parent
cbbe3e18
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kernel/src/cfg.rs
+0
-7
0 additions, 7 deletions
kernel/src/cfg.rs
kernel/src/main.rs
+6
-19
6 additions, 19 deletions
kernel/src/main.rs
with
6 additions
and
26 deletions
kernel/src/cfg.rs
deleted
100644 → 0
+
0
−
7
View file @
cbbe3e18
const
CONFIG
:
bootloader_api
::
BootloaderConfig
=
{
let
mut
config
=
bootloader_api
::
BootloaderConfig
::
new_default
();
config
.kernel_stack_size
=
4096
*
4
;
// 16KiB
config
};
bootloader_api
::
entry_point!
(
super
::
kernel_main
,
config
=
&
CONFIG
);
This diff is collapsed.
Click to expand it.
kernel/src/main.rs
+
6
−
19
View file @
c95e1b75
#![no_std]
#![no_main]
#![feature(abi_x86_interrupt)]
pub
mod
cfg
;
pub
mod
framebuffer
;
pub
mod
idt
;
pub
mod
instructions
;
const
CONFIG
:
bootloader_api
::
BootloaderConfig
=
{
let
mut
config
=
bootloader_api
::
BootloaderConfig
::
new_default
();
config
.kernel_stack_size
=
4096
*
4
;
// 16KiB
config
};
#[panic_handler]
fn
panic_handler
(
_
:
&
core
::
panic
::
PanicInfo
)
->
!
{
instructions
::
hlt
();
}
fn
kernel_main
(
boot_info
:
&
'static
mut
bootloader_api
::
BootInfo
)
->
!
{
framebuffer
::
init
(
boot_info
);
framebuffer
::
clear
();
framebuffer
::
print_char
(
b'H'
);
idt
::
init
();
instructions
::
hlt
();
}
bootloader_api
::
entry_point!
(
hyperion_kernel
::
kernel_main
,
config
=
&
CONFIG
);
This diff is collapsed.
Click to expand it.
Eemeli Lehtonen
@oneleh
mentioned in commit
0c620198
·
2 years ago
mentioned in commit
0c620198
mentioned in commit 0c620198f63d3b9ff9c4445c97fbfaf265a51268
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment