PikoRT / pikoRT

A tiny Linux-like real-time kernel optimized for ARM Cortex-M chips
Other
304 stars 61 forks source link

sys_msleep unusable #21

Closed mlouielu closed 7 years ago

mlouielu commented 7 years ago
sys_msleep(100);
Piko version 0.0.0 (grd@louie) (armv7-m, cortex-m4) #Tue Aug 15 10:48:37 2017       
arm-none-eabi-gcc (Arch Repository) 7.1.0 

$                    
kernel panic: Overflow in kernel stack    
  0  ee48a608  00000000                   
  1  840dc3bc  00000000                   

-------------------------------------------------------------                       
 #UsageFault         

 r0: 2000f000    r1: 00000421    r2: 00000000    r3: 000001f1                       
 r4: 2000f000    r5: 00000421    r6: 00000000    r7: 000001f1                       
 r8: 00000201    r9: 00000211   r10: 2000f000   r11: 00000421                       
r12: 00000201    sp: 00000000    lr: 00000211    pc: 00000221                       

EXC_RETURN: fffffff1 
      ufsr: 00000000 
-------------------------------------------------------------                       
mlouielu commented 7 years ago

I'm doing a wrong operation, need to use do_syscall1 to call this system call.