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
885d2f15
There was an error fetching the commit references. Please try again later.
Commit
885d2f15
authored
4 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
kernel head working
parent
14a9ce27
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/Makefile
+8
-3
8 additions, 3 deletions
kernel/Makefile
kernel/image_head.asm
+4
-0
4 additions, 0 deletions
kernel/image_head.asm
with
12 additions
and
3 deletions
kernel/Makefile
+
8
−
3
View file @
885d2f15
kernel
:
gcc
-ffreestanding
-c
kernel.c
-o
kernel.o
# -m32
ld
-o
kernel.img
-Ttext
0x7e00
--oformat
binary kernel.o
# -m elf_i386
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
truncate
--size
=
65024 kernel.img
head
:
nasm
-f
elf image_head.asm
-o
image_head.o
kernel
:
gcc
-ffreestanding
-fno-pie
-c
kernel.c
-o
kernel.o
-m32
clean
:
rm
*
.o
*
.img
This diff is collapsed.
Click to expand it.
kernel/image_head.asm
0 → 100644
+
4
−
0
View file @
885d2f15
[
bits
32
]
[
extern
main
]
call
main
ret
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