fixed minor inconsistencies between headers and source files and between asm and C sources

This commit is contained in:
Markus Fröschle
2013-12-17 14:16:29 +00:00
parent 41582c0381
commit c55f0e48f8
6 changed files with 24 additions and 45 deletions

View File

@@ -69,7 +69,6 @@
#define MCF_PSC3_PSCTB_8BIT __MBAR+0x890C
.global _vec_init
.global _asm_set_ipl
// interrupt sources
.equ INT_SOURCE_EPORT_EPF1,1 // edge port flag 1
@@ -1165,29 +1164,3 @@ video_chg_end:
lea 7 * 4(sp),a7
rte
#endif /* MACHINE_FIREBEE */
asm_set_ipl:
_asm_set_ipl:
link a6,#-8 // some space for locals
movem.l d6-d7,(sp) // save register
move.w sr,d7 // current sr
move.l d7,d0 // prepare return value
andi.l #0x0700,d0 // maks out ipl bits
lsr.l #8,d0 // IPL
move.l 8(a6),d6 // get argument
andi.l #0x07,d6 // least significant three bits
lsl.l #8,d6 // shift to make mask
andi.l #0x0000f8ff,d7 // zero out current ipl
or.l d6,d7 // place new ipl in sr
move.w d7,sr
movem.l (sp),d6-d7 // restore registers
lea 8(sp),sp // clear local variables
unlk a6
rts