dragon: update crt0.s to allow for the work done in setup and the switcher
authorAlan Cox <alan@etchedpixels.co.uk>
Thu, 27 Nov 2014 01:09:13 +0000 (01:09 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Thu, 27 Nov 2014 01:09:13 +0000 (01:09 +0000)
Kernel/platform-dragon/crt0.s

index df550ec..afdf614 100644 (file)
 
                ; startup code @0
                .area .start
-               jmp start
+
+start:
+               jmp main
+
+bootme:
+               lda 0xff22              ; Switcher is in both images
+               anda #0xFB              ; at the same address
+               sta 0xff22              ; ROM switch
+               jmp main
 
                .area .text
 
-start:         orcc #0x10              ; interrupts definitely off
+main:          orcc #0x10              ; interrupts definitely off
                lds #kstack_top
-               ; move the common memory where it belongs    
-               ; we do this dowards, not out of any concern about
-               ; about overlap (although its correct for this) but because
-               ; it deals with linker reloc limits nicely
-;              ldd #s__INITIALIZER
-;              addd #l__COMMONMEM
-;              tfr d,x
-;              ldd #s__COMMONMEM
-;              addd #l__COMMONMEM
-;              tfr d,y
-               
-;copier:               lda ,-x
-;              sta ,-y
-;              cmpy #s__COMMONMEM
-;              bgt copier
+
 
 ;wiper:                ldx #s__DATA
 ;              ldd #l__DATA