wok diff linld/stuff/src/CRTL.H @ rev 21984
linld: x86 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 14 11:20:06 2019 +0200 (2019-10-14) |
parents | 2373992ff751 |
children | 306a4bbdee7d |
line diff
1.1 --- a/linld/stuff/src/CRTL.H Mon Jun 24 16:31:09 2019 +0200 1.2 +++ b/linld/stuff/src/CRTL.H Mon Oct 14 11:20:06 2019 +0200 1.3 @@ -48,8 +48,12 @@ 1.4 #define int3() do { asm { db 0cch } } while(0) 1.5 #define nop() do { asm { db 90h } } while(0) 1.6 extern char no_exit; 1.7 +extern void exit(); 1.8 extern _fastcall int die(const char* msg); 1.9 //extern "C" char* malloc_or_die(unsigned size); 1.10 //extern "C" unsigned long* malloc_bufv_or_die(struct image_himem *m); 1.11 extern _fastcall int malloc_or_die(unsigned size); 1.12 extern _fastcall int malloc_bufv_or_die(struct image_himem *m); 1.13 +extern char cpu_features[]; 1.14 +#define CPUMASKLM (0x20) 1.15 +#define cpuhaslm() (cpu_features[3]&CPUMASKLM)