From c8810e4701524eb6e0dc8ecabe2277525a2cee8d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 19 Oct 2020 22:26:12 -0400 Subject: [PATCH] rename _start -> hos_start --- src/boot.S | 12 ++++-------- src/link.ld | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/boot.S b/src/boot.S index 7d8b36c..0c59b21 100644 --- a/src/boot.S +++ b/src/boot.S @@ -4,9 +4,9 @@ bootloader will jump to this position once the kernel has been loaded. It doesn't make sense to return from this function as the bootloader is gone. */ .section .text -.global _start -.type _start, @function -_start: +.global hos_start +.type hos_start, @function +hos_start: mov $_stack_end, %esp /* @@ -38,8 +38,4 @@ _start: 1: hlt jmp 1b -/* -Set the size of the _start symbol to the current location '.' minus its start. -This is useful when debugging or when you implement call tracing. -*/ -.size _start, . - _start +.size hos_start, . - hos_start diff --git a/src/link.ld b/src/link.ld index 3464ed1..979eb40 100644 --- a/src/link.ld +++ b/src/link.ld @@ -1,4 +1,4 @@ -ENTRY(_start) +ENTRY(hos_start) SECTIONS {