dragon-nx-32: tidy up machine identification
authorAlan Cox <alan@linux.intel.com>
Wed, 3 Jun 2015 22:15:17 +0000 (23:15 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 3 Jun 2015 22:15:17 +0000 (23:15 +0100)
Confirmed COCO and COCO3 idents

Kernel/platform-dragon-nx32/crt0.s

index 24501b2..43c09bc 100644 (file)
@@ -33,9 +33,12 @@ bss_wipe:    sta ,x+
                cmpb #0x49              ; Dragon32
                beq identified
                inca
-               cmpb #0x50              ; COCO3
+               cmpb #0x31              ; COCO1/2
                beq identified
-               inca                    ; Guess it's a COCO ?
+               inca
+               cmpb #0x32              ; COCO3
+               beq identified
+               inca                    ; Beats me
 identified:
                sta _system_id          ; what sort of a box are we ?
                jsr init_early