ObjFW  Check-in [a15919c6d8]

Overview
Comment:Amiga: Add the new __bss_size to data segment size
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a15919c6d8233bf9ff7a62b0833c5e1a44613aa7b26ba258a4bb3aaf65a4b0dc
User & Date: js on 2019-08-04 19:33:09
Other Links: manifest | tags
Context
2019-08-04
20:03
Amiga library: Provide an empty __init_eh() check-in: 7342a6e98b user: js tags: trunk
19:33
Amiga: Add the new __bss_size to data segment size check-in: a15919c6d8 user: js tags: trunk
2019-08-03
18:13
Add threads for AmigaOS check-in: da383f4f03 user: js tags: trunk
Changes

Modified src/runtime/amiga-library.m from [2c24631f83] to [f3f4183dca].

182
183
184
185
186
187
188
189


190
191
192
193
194
195
196
182
183
184
185
186
187
188

189
190
191
192
193
194
195
196
197







-
+
+







static OF_INLINE size_t
getDataSize(void)
{
	size_t dataSize;

#if defined(OF_AMIGAOS_M68K)
	__asm__ (
	    "move.l	#___data_size, %0"
	    "move.l	#___data_size, %0\n\t"
	    "add.l	#___bss_size, %0"
	    : "=r"(dataSize)
	);
#elif defined(OF_MORPHOS)
	__asm__ (
	    "lis	%0, __sdata_size@ha\n\t"
	    "la		%0, __sdata_size@l(%0)\n\t"
	    "lis	%%r9, __sbss_size@ha\n\t"