crt0_6809: Let linker figure out load page value
authorTormod Volden <debian.tormod@gmail.com>
Sun, 10 May 2015 14:24:58 +0000 (16:24 +0200)
committerAlan Cox <alan@linux.intel.com>
Sun, 10 May 2015 20:14:40 +0000 (21:14 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Library/libs/crt0_6809.s

index c96c04c..80b229a 100644 (file)
@@ -13,11 +13,7 @@ start:               jmp start2
                .db 'Z'
                .db 'X'
                .db '1'
-
-;
-;      FIXME: we need to automate the load page setting
-;
-               .db 0x80                        ; page to load at
+               .db __sectionbase_.header__/256 ; page to load at
                .dw 0                           ; chmem ("0 - 'all'")
                .dw __sectionlen_.text__        ; gives us code size info
                .dw __sectionlen_.data__        ; gives us data size info