libk  Check-in [09a1767049]

Overview
Comment:address case where syscall numbers in header derive from deeper includes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 09a1767049aa2db6b884c30397a61431c725f960b7212ce901a9bf2593d7f84e
User & Date: lexi on 2019-08-20 03:04:25
Other Links: manifest | tags
Context
2019-08-20
04:04
improve syscall collection mechanism check-in: 9dd8bab2ac user: lexi tags: trunk
03:04
address case where syscall numbers in header derive from deeper includes check-in: 09a1767049 user: lexi tags: trunk
02:03
partially unfuck x86-32, correct major error in syscall ABI check-in: f9bf0d662b user: lexi tags: trunk
Changes

Modified build.sh from [15fc50281c] to [81c1265d8b].

   215    215   # generate syscall tables
   216    216   case $os in
   217    217   	lin) grep -h "#define __NR_" $p_headers_syscall | sed 's;^#define __NR_;;' > $gen/calls.tbl;;
   218    218   	fbsd) grep -h "#define	SYS_" $p_headers_syscall | sed 's;^#define	SYS_;;' | sed 's;[\t ]\+; ;' > $gen/calls.tbl;;
   219    219   	*) noimpl 'system call table generation';;
   220    220   esac
   221    221   
   222         -awk -f arch/syscall.awk -v out=s <$gen/calls.tbl >$gen/system_calls.s
   223         -awk -f arch/syscall.awk -v out=h <$gen/calls.tbl >$gen/system_calls.h
          222  +cat $p_headers_syscall $gen/calls.tbl | cpp -P |
          223  +	awk -f arch/syscall.awk -v out=s >$gen/system_calls.s
          224  +cat $p_headers_syscall $gen/calls.tbl | cpp -P |
          225  +	awk -f arch/syscall.awk -v out=h >$gen/system_calls.h
   224    226   
   225    227   # generate errno tables
   226    228   grep -h "#[ 	]*define[ 	]\+E" $p_headers_errno | sed 's;^#[\t ]*define[\t ]\+\(E[A-Z0-9]\+\).*$;k_platform_error_\1 \1;' > $gen/error_names.tbl
   227    229   cat $p_headers_errno $gen/error_names.tbl | cpp -P >$gen/error_numbers.tbl
   228    230   awk -f arch/errtbl.awk <$gen/error_numbers.tbl >$gen/error_table.h
   229    231   
   230    232   # generate symbol tables for error handling functions