File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ extern uint32_t _nfCall(uint32_t ID, ...);
123
123
*/
124
124
__asm__
125
125
(
126
+ "_detect_native_features: \n"
126
127
#if defined(__mc68010 ) || defined (__mc68020 ) || defined (__mc68030 ) || defined (__mc68040 )
127
128
" movec %vbr, %a0 \n"
128
129
" add.l #0x10, %a0 \n"
129
130
#else
130
131
" move.l #0x10, %a0 \n"
131
132
#endif
132
- "_detect_native_features: \n"
133
133
" moveq #0, %d0 /* assume no NatFeats available */ \n"
134
134
" move.l %sp, %a1 \n"
135
135
" move.l (%a0), %d1 \n"
Original file line number Diff line number Diff line change 1
- CC = m68k-unknown- elf-gcc
2
- SIZE = m68k-unknown- elf-size
1
+ CC = m68k-elf-gcc
2
+ SIZE = m68k-elf-size
3
3
PROG = test
4
4
DISKFILE = disk.dmg
5
5
@@ -19,7 +19,7 @@ CFLAGS = -m68010 \
19
19
-Wl,-gc-sections \
20
20
-Wl,--emit-relocs \
21
21
-Wl,-z,stack-size=1048576 \
22
- -Wl,--section-start=.text=0 \
22
+ -Wl,--section-start=.text=0x1000 \
23
23
-MD \
24
24
-e main
25
25
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ main(void)
187
187
current_time = TIMER_COUNT ;
188
188
TIMER_COUNT = 500 ;
189
189
while (timer_ticks == 0 ) {
190
- assert (TIMER_COUNT < (current_time + 5000 ));
190
+ assert (TIMER_COUNT < (current_time + 50000 ));
191
191
}
192
192
fprintf (stderr , "countdown interrupt works\n" );
193
193
@@ -203,6 +203,8 @@ main(void)
203
203
fprintf (stderr , "disk: tests pass\n" );
204
204
}
205
205
206
+ fprintf (stderr , "native features %ssupported\n" , _detect_native_features () ? "" : "not " );
207
+
206
208
fprintf (stderr , "tests complete\n" );
207
209
fflush (stdout );
208
210
nf_exit ();
You can’t perform that action at this time.
0 commit comments