Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v0.9] Set relocation-model: static and panic-strategy: abort and fix .intel_syntax warnings #185

Merged
merged 4 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/e820.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.section .boot, "awx"
.intel_syntax noprefix
.code16

# From http://wiki.osdev.org/Detecting_Memory_(x86)#Getting_an_E820_Memory_Map
Expand Down
1 change: 0 additions & 1 deletion src/stage_1.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.section .boot-first-stage, "awx"
.global _start
.intel_syntax noprefix
.code16

# This stage initializes the stack, enables the A20 line, loads the rest of
Expand Down
1 change: 0 additions & 1 deletion src/stage_2.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.section .boot, "awx"
.intel_syntax noprefix
.code16

# This stage sets the target operating mode, loads the kernel from disk,
Expand Down
1 change: 0 additions & 1 deletion src/stage_3.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.section .boot, "awx"
.intel_syntax noprefix
.code32

# This stage performs some checks on the CPU (cpuid, long mode), sets up an
Expand Down
1 change: 0 additions & 1 deletion src/video_mode/vga_320x200.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.section .boot, "awx"
.intel_syntax noprefix
.code16

config_video_mode:
Expand Down
1 change: 0 additions & 1 deletion src/video_mode/vga_text_80x25.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.section .boot, "awx"
.intel_syntax noprefix
.code16

config_video_mode:
Expand Down
5 changes: 2 additions & 3 deletions x86_64-bootloader.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"os": "none",
"features": "-mmx,-sse,+soft-float",
"disable-redzone": true,
"panic": "abort",
"executables": true,
"relocation_model": "static"
vinc marked this conversation as resolved.
Show resolved Hide resolved
"panic-strategy": "abort",
"executables": true
}