Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ros-playground
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
ros-playground
Commits
3ba21a66
There was an error fetching the commit references. Please try again later.
Commit
3ba21a66
authored
4 years ago
by
Bensong Liu
Browse files
Options
Downloads
Patches
Plain Diff
note
parent
a3e9b208
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootloader/boot.asm
+2
-0
2 additions, 0 deletions
bootloader/boot.asm
kernel/Makefile
+3
-1
3 additions, 1 deletion
kernel/Makefile
kernel/kernel.cc
+0
-0
0 additions, 0 deletions
kernel/kernel.cc
with
5 additions
and
1 deletion
bootloader/boot.asm
+
2
−
0
View file @
3ba21a66
; This code file would be compiled and placed in MBR first block.
[
bits
16
]
[
org
0x7c00
]
...
...
This diff is collapsed.
Click to expand it.
kernel/Makefile
+
3
−
1
View file @
3ba21a66
...
...
@@ -2,13 +2,15 @@
assemble
:
kernel head
ld
-o
kernel.img
-Ttext
0x7e00
--oformat
binary image_head.o kernel.o
-m
elf_i386
# Sector 1 = bootloader, Sector 2 -
(
512B TO 64K
)
=
kernel
# Extend kernel.img to correct size.
test
$$(
stat
-c
%s kernel.img
)
-le
65024
truncate
--size
=
65024 kernel.img
head
:
nasm
-f
elf image_head.asm
-o
image_head.o
kernel
:
g
cc
-ffreestanding
-fno-pie
-c
kernel.c
-o
kernel.o
-m32
g
++
-ffreestanding
-fno-pie
-c
kernel.c
c
-o
kernel.o
-m32
clean
:
rm
*
.o
*
.img
...
...
This diff is collapsed.
Click to expand it.
kernel/kernel.c
→
kernel/kernel.c
c
+
0
−
0
View file @
3ba21a66
File moved
This diff is collapsed.
Click to expand it.
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