pckswarms.ch - interesting uncommon events


Current Status

Ubuntu 18.04.5 LTS, on a NVIDIA Nano.

Lisp Kernel

22 November 2020

We get assembly errors - let's work just to get rid of them and get a clean compile.

m4 -DLINUX -DARM64 -I../ ../arm64-spentry.s | as   -o arm64-spentry.o
../arm64-spentry.s: Assembler messages:
../arm64-spentry.s:613: Error: shift expression expected at operand 3 -- `add x2,x1,narg,#node_shift'
../arm64-spentry.s:671: Error: unexpected register in the immediate operand at operand 3 -- `add x0,x25,x5,lsl#node_shift'
../arm64-spentry.s:724: Error: unexpected register in the immediate operand at operand 3 -- `add x1,x25,x5,lsl#node_shift'
../arm64-spentry.s:693: Error: constant shift amount required at operand 2 -- `ldr x10,[x25,x5,lsl#node_shift]'

Fixes

22 November 2020

To get arm64-spentry.s through the m4 preprocessor and then get rid of syntax errors.


edoneel@glace:/work/share/tmp/ccl/lisp-kernel/linuxarm64$ cd ..
edoneel@glace:/work/share/tmp/ccl/lisp-kernel$ git diff arm64-constants.s arm64-macros.s arm64-spentry.s
diff --git a/lisp-kernel/arm64-constants.s b/lisp-kernel/arm64-constants.s
index f46ccb0d..a539e37d 100644
--- a/lisp-kernel/arm64-constants.s
+++ b/lisp-kernel/arm64-constants.s
@@ -158,7 +158,7 @@ define_cl_ivector(s8_vector,10)
 define_cl_ivector(u8_vector,11)                
 define_cl_ivector(s16_vector,12)
 define_cl_ivector(u16_vector,13)
-define_cl_ivecot(complex_double_float_vector,14)       
+define_cl_ivector(complex_double_float_vector,14)
 define_cl_ivector(bit_vector,15)
        
 min_8_bit_ivector_header = s8_vector_header
diff --git a/lisp-kernel/arm64-macros.s b/lisp-kernel/arm64-macros.s
index de808139..fc18c1b5 100644
--- a/lisp-kernel/arm64-macros.s
+++ b/lisp-kernel/arm64-macros.s
@@ -51,7 +51,7 @@ define(`extract_signed_byte',`
         ')
 
 define(`extract_unsigned_byte',`
-        __(ubfx $1,$2,$0,#$3)
+        __(ubfx $1,$2,#0,#$3)
         ')        
                 
 
@@ -411,7 +411,7 @@ define(`mkcatch',`
         __(make_header(imm1,catch_frame.element_count,catch_frame_header))
         __(mov imm2,#catch_frame.element_count<


Bruce O'Neel

Last modified: Wed Jul 8 22:19:37 CEST 2009