Skip to content

Commit 9fc970d

Browse files
authored
Merge pull request below#42 from skrrb/fix-entrypoint
2 parents 81dc317 + c12f73b commit 9fc970d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Chapter 01/HelloWorld.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
// X16 - Mach System Call function number
77
//
88

9-
.global start // Provide program starting address to linker
9+
.global _start // Provide program starting address to linker
1010
.align 2 // Make sure everything is aligned properly
1111

1212
// Setup the parameters to print hello world
1313
// and then call the Kernel to do it.
14-
start: mov X0, #1 // 1 = StdOut
14+
_start: mov X0, #1 // 1 = StdOut
1515
adr X1, helloworld // string to print
1616
mov X2, #13 // length of our string
1717
mov X16, #4 // Unix write system call

0 commit comments

Comments
 (0)