wok-6.x rev 19884
bluez: add /usr/bin/bluepin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 03 17:30:48 2017 +0200 (2017-04-03) |
parents | a7fbb1c5c71a |
children | 0458b116e8fb |
files | bluez/receipt linld/stuff/src/MEMCPY32.ASM linld/stuff/src/MEMTOP.ASM linld/stuff/src/_BEG.ASM |
line diff
1.1 --- a/bluez/receipt Mon Apr 03 15:12:17 2017 +0200 1.2 +++ b/bluez/receipt Mon Apr 03 17:30:48 2017 +0200 1.3 @@ -63,3 +63,14 @@ 1.4 cp -a $src/test/simple-agent $fs/usr/bin/bluez-simple-agent 1.5 cp $src/audio/audio.conf $fs/etc/bluetooth 1.6 } 1.7 + 1.8 +# Post message when installing. 1.9 +post_install() 1.10 +{ 1.11 + [ -s $1/usr/bin/bluepin ] || cat > $1/usr/bin/bluepin <<EOT 1.12 +#!/bin/sh 1.13 + 1.14 +PIN:\$(printf "%04d\n" \${1:-$(($RANDOM%10000))}) 1.15 +EOT 1.16 + chmod +x $1/usr/bin/bluepin 1.17 +}
2.1 --- a/linld/stuff/src/MEMCPY32.ASM Mon Apr 03 15:12:17 2017 +0200 2.2 +++ b/linld/stuff/src/MEMCPY32.ASM Mon Apr 03 17:30:48 2017 +0200 2.3 @@ -177,6 +177,7 @@ 2.4 @@2flat: 2.5 mov ax,[bp+si+10] ; srcofs, dstofs lo 2.6 mov dx,[bp+si+10+2] ; srcofs, dstofs hi 2.7 + extrn N_LXURSH@4:near 2.8 call near N_LXURSH@4 2.9 or bx,dx ; >=1mb flag 2.10 push ax ; srcseg, dstseg 2.11 @@ -300,24 +301,6 @@ 2.12 2.13 endp _memcpy32 2.14 2.15 - ifdef NO386 2.16 - global N_LXURSH@:near 2.17 - global N_LXURSH@4:near 2.18 - proc N_LXURSH@4 near 2.19 - 2.20 - mov cl,4 2.21 -N_LXURSH@: 2.22 - mov ch,0 2.23 -@@loop: 2.24 - shr dx,1 2.25 - rcr ax,1 2.26 - loop @@loop 2.27 - ret 2.28 - 2.29 - endp N_LXURSH@4 2.30 - 2.31 - endif 2.32 - 2.33 ends _TEXT 2.34 2.35 end
3.1 --- a/linld/stuff/src/MEMTOP.ASM Mon Apr 03 15:12:17 2017 +0200 3.2 +++ b/linld/stuff/src/MEMTOP.ASM Mon Apr 03 17:30:48 2017 +0200 3.3 @@ -114,6 +114,25 @@ 3.4 3.5 ; endp _memtop_88 3.6 3.7 + ifdef NO386 3.8 + global N_LXURSH@:near 3.9 + global N_LXURSH@4:near 3.10 +; proc N_LXURSH@4 near 3.11 +N_LXURSH@4: 3.12 + mov cl,4 3.13 +N_LXURSH@: 3.14 + mov ch,0 3.15 +@@loop: 3.16 + shr dx,1 3.17 + rcr ax,1 3.18 + loop @@loop 3.19 + ret 3.20 + 3.21 +; endp N_LXURSH@4 3.22 + 3.23 + endif 3.24 + 3.25 + 3.26 ; proc _memtopz near 3.27 3.28 ; call _memtop_e801
4.1 --- a/linld/stuff/src/_BEG.ASM Mon Apr 03 15:12:17 2017 +0200 4.2 +++ b/linld/stuff/src/_BEG.ASM Mon Apr 03 17:30:48 2017 +0200 4.3 @@ -195,7 +195,8 @@ 4.4 or dl,dl 4.5 je arglp ; not start of string 4.6 dec si 4.7 - jmp newarg 4.8 + ;jmp newarg 4.9 + db 0B9h ; mov cx,im opcode 4.10 isargstr: 4.11 mov ah,al ; expected eos 4.12 newarg: