svn commit: r270800 - projects/arm64/lib/csu/arm64

Andrew Turner andrew at FreeBSD.org
Fri Aug 29 10:13:38 UTC 2014


Author: andrew
Date: Fri Aug 29 10:13:37 2014
New Revision: 270800
URL: http://svnweb.freebsd.org/changeset/base/270800

Log:
  Start to implement the .init bits of csu, not sure if these are correct
  as the only test I have so far is /sbin/init which doesn't make use
  of them.

Modified:
  projects/arm64/lib/csu/arm64/crti.S
  projects/arm64/lib/csu/arm64/crtn.S

Modified: projects/arm64/lib/csu/arm64/crti.S
==============================================================================
--- projects/arm64/lib/csu/arm64/crti.S	Fri Aug 29 09:37:18 2014	(r270799)
+++ projects/arm64/lib/csu/arm64/crti.S	Fri Aug 29 10:13:37 2014	(r270800)
@@ -31,7 +31,8 @@ __FBSDID("$FreeBSD$");
 	.globl	_init
 	.type	_init, at function
 _init:
-	1: b 1b
+	sub	sp, sp, #16
+	str	lr, [sp]
 
 	.section .fini,"ax", at progbits
 	.align 4

Modified: projects/arm64/lib/csu/arm64/crtn.S
==============================================================================
--- projects/arm64/lib/csu/arm64/crtn.S	Fri Aug 29 09:37:18 2014	(r270799)
+++ projects/arm64/lib/csu/arm64/crtn.S	Fri Aug 29 10:13:37 2014	(r270800)
@@ -27,7 +27,9 @@
 __FBSDID("$FreeBSD$");
 
 	.section .init,"ax", at progbits
-	1: b 1b
+	ldr	lr, [sp]
+	add	sp, sp, #16
+	ret
 
 
 	.section .fini,"ax", at progbits


More information about the svn-src-projects mailing list