forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
40 lines
778 B
C
40 lines
778 B
C
--- firmware/fx2/common/delay.c.orig 2012-07-30 14:09:48.000000000 -0500
|
|
+++ firmware/fx2/common/delay.c 2012-10-07 19:36:36.000000000 -0500
|
|
@@ -24,11 +24,12 @@
|
|
* Delay approximately 1 microsecond (including overhead in udelay).
|
|
*/
|
|
static void
|
|
-udelay1 (void) _naked
|
|
+udelay1 (void)
|
|
+//__naked
|
|
{
|
|
- _asm ; lcall that got us here took 4 bus cycles
|
|
+ __asm ; lcall that got us here took 4 bus cycles
|
|
ret ; 4 bus cycles
|
|
- _endasm;
|
|
+ __endasm;
|
|
}
|
|
|
|
/*
|
|
@@ -51,9 +52,10 @@
|
|
* but explains the factor of 4 problem below).
|
|
*/
|
|
static void
|
|
-mdelay1 (void) _naked
|
|
+mdelay1 (void)
|
|
+// _naked
|
|
{
|
|
- _asm
|
|
+ __asm
|
|
mov dptr,#(-1200 & 0xffff)
|
|
002$:
|
|
inc dptr ; 3 bus cycles
|
|
@@ -62,7 +64,7 @@
|
|
jnz 002$ ; 3 bus cycles
|
|
|
|
ret
|
|
- _endasm;
|
|
+ __endasm;
|
|
}
|
|
|
|
void
|