Index: trunk/minix/lib/i386/Makefile
===================================================================
--- trunk/minix/lib/i386/Makefile	(revision 9)
+++ 	(revision )
@@ -1,67 +1,0 @@
-#Generated from ./i386/Makefile.in
-all: all-ack
-
-all-ack:
-all-gnu:
-
-makefiles: Makefile
-Makedepend-ack Makedepend-gnu: 
-	sh ../generate.sh ./i386 ../obj-ack/ ../obj-gnu
-
-Makefile: Makefile.in Makedepend-ack Makedepend-gnu
-	sh ../generate.sh ./i386 ../obj-ack/ ../obj-gnu
-	@echo
-	@echo *Attention*
-	@echo Makefile is regenerated... rerun command to see changes
-	@echo *Attention*
-	@echo
-
-all-ack: makefiles
-	mkdir -p ../obj-ack//./i386/int64
-	cd int64 && $(MAKE) $@
-	mkdir -p ../obj-ack//./i386/misc
-	cd misc && $(MAKE) $@
-	mkdir -p ../obj-ack//./i386/rts
-	cd rts && $(MAKE) $@
-	mkdir -p ../obj-ack//./i386/string
-	cd string && $(MAKE) $@
-
-all-gnu: makefiles
-	mkdir -p ../obj-gnu/./i386/int64
-	cd int64 && $(MAKE) $@
-	mkdir -p ../obj-gnu/./i386/misc
-	cd misc && $(MAKE) $@
-	mkdir -p ../obj-gnu/./i386/rts
-	cd rts && $(MAKE) $@
-	mkdir -p ../obj-gnu/./i386/string
-	cd string && $(MAKE) $@
-
-clean depend depend-ack depend-gnu:: makefiles
-	cd int64 && $(MAKE) $@
-	cd misc && $(MAKE) $@
-	cd rts && $(MAKE) $@
-	cd string && $(MAKE) $@
-
-makefiles: int64/Makefile
-makefiles: misc/Makefile
-makefiles: rts/Makefile
-makefiles: string/Makefile
-
-int64/Makefile: int64/Makefile.in
-	cd int64 && sh ../../generate.sh ./i386/int64 ../../obj-ack/ ../../obj-gnu && $(MAKE) makefiles
-misc/Makefile: misc/Makefile.in
-	cd misc && sh ../../generate.sh ./i386/misc ../../obj-ack/ ../../obj-gnu && $(MAKE) makefiles
-rts/Makefile: rts/Makefile.in
-	cd rts && sh ../../generate.sh ./i386/rts ../../obj-ack/ ../../obj-gnu && $(MAKE) makefiles
-string/Makefile: string/Makefile.in
-	cd string && sh ../../generate.sh ./i386/string ../../obj-ack/ ../../obj-gnu && $(MAKE) makefiles
-
-clean::
-	rm -f ../obj-ack//./i386/*
-	rm -f ../obj-gnu/./i386/*
-
-include Makedepend-ack
-include .depend-ack
-
-include Makedepend-gnu
-include .depend-gnu
Index: trunk/minix/lib/i386/Makefile.in
===================================================================
--- trunk/minix/lib/i386/Makefile.in	(revision 9)
+++ 	(revision )
@@ -1,9 +1,0 @@
-# Makefile for lib/i386.
-
-SUBDIRS="\
-	int64 \
-	misc \
-	rts \
-	string"
-
-TYPE=both
Index: trunk/minix/lib/i386/em/byte_order.h
===================================================================
--- trunk/minix/lib/i386/em/byte_order.h	(revision 9)
+++ 	(revision )
@@ -1,6 +1,0 @@
-#define CHAR_UNSIGNED	0
-#define MSB_AT_LOW_ADDRESS	0
-#define MSW_AT_LOW_ADDRESS	0
-#define FL_MSB_AT_LOW_ADDRESS	0
-#define FL_MSW_AT_LOW_ADDRESS	0
-#define FL_MSL_AT_LOW_ADDRESS	0
Index: trunk/minix/lib/i386/em/em_adf4.s
===================================================================
--- trunk/minix/lib/i386/em/em_adf4.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .adf4
-
-	.sect .text
-.adf4:
-	mov	bx,sp
-	flds	4(bx)
-	fadds	8(bx)
-	fstps	8(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_adf8.s
===================================================================
--- trunk/minix/lib/i386/em/em_adf8.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .adf8
-
-	.sect .text
-.adf8:
-	mov	bx,sp
-	fldd	4(bx)
-	faddd	12(bx)
-	fstpd	12(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_adi.s
===================================================================
--- trunk/minix/lib/i386/em/em_adi.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .adi
-
-	! #bytes in ecx , top of stack in eax
-	.sect .text
-.adi:
-	pop     ebx              ! return address
-	cmp     ecx,4
-	jne     9f
-	pop     ecx
-	add     eax,ecx
-	jmp     ebx
-9:
-.extern	EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push	ebx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_and.s
===================================================================
--- trunk/minix/lib/i386/em/em_and.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define	.and
-
-	! #bytes in ecx
-	! save edi; it might be a register variable
-
-	.sect .text
-.and:
-	pop	ebx		! return address
-	mov	edx,edi
-	mov	edi,esp
-	add	edi,ecx
-	sar	ecx,2
-1:
-	pop	eax
-	and	eax,(edi)
-	stos
-	loop	1b
-	mov	edi,edx
-	jmp	ebx
Index: trunk/minix/lib/i386/em/em_blm.s
===================================================================
--- trunk/minix/lib/i386/em/em_blm.s	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .blm
-
-	! ecx: count in words
-.blm:
-	mov	ebx,esp
-	mov	eax,esi
-	mov	edx,edi
-	mov	edi,4(ebx)
-	mov	esi,8(ebx)
-	rep	movs
-	mov	esi,eax
-	mov	edi,edx
-	ret	8
-
Index: trunk/minix/lib/i386/em/em_cff4.s
===================================================================
--- trunk/minix/lib/i386/em/em_cff4.s	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cff4
-
-	.sect .text
-.cff4:
-	mov	bx,sp
-	fldd	4(bx)
-	fstcw	4(bx)
-	wait
-	mov	dx,4(bx)
-	and	4(bx),0xf3ff	! set to rounding mode
-	wait
-	fldcw	4(bx)
-	fstps	8(bx)
-	mov	4(bx),dx
-	wait
-	fldcw	4(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_cff8.s
===================================================================
--- trunk/minix/lib/i386/em/em_cff8.s	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cff8
-
-	.sect .text
-.cff8:
-	mov	bx,sp
-	flds	4(bx)
-	fstpd	4(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_cfi.s
===================================================================
--- trunk/minix/lib/i386/em/em_cfi.s	(revision 9)
+++ 	(revision )
@@ -1,27 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cfi
-
-	.sect .text
-.cfi:
-	mov	bx,sp
-	fstcw	4(bx)
-	wait
-	mov	dx,4(bx)
-	or	4(bx),0xc00	! truncating mode
-	wait
-	fldcw	4(bx)
-	cmp	8(bx),4
-	jne	2f
-				! loc 4 loc ? cfi
-	flds	12(bx)
-	fistpl	12(bx)
-1:
-	mov	4(bx),dx
-	wait
-	fldcw	4(bx)
-	ret
-2:
-				! loc 8 loc ? cfi
-	fldd	12(bx)
-	fistpl	16(bx)
-	jmp	1b
Index: trunk/minix/lib/i386/em/em_cfu.s
===================================================================
--- trunk/minix/lib/i386/em/em_cfu.s	(revision 9)
+++ 	(revision )
@@ -1,38 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cfu
-
-	.sect .text
-.cfu:
-	mov	bx,sp
-	fstcw	4(bx)
-	wait
-	mov	dx,4(bx)
-	or	4(bx),0xc00	! truncating mode
-	wait
-	fldcw	4(bx)
-	cmp	8(bx),4
-	jne	2f
-				! loc 4 loc ? cfu
-	flds	12(bx)
-	fabs			! ???
-	fiaddl	(bigmin)
-	fistpl	12(bx)
-	wait
-	mov	ax,12(bx)
-	sub	ax,(bigmin)
-	mov	12(bx),ax
-1:
-	mov	4(bx),dx
-	wait
-	fldcw	4(bx)
-	ret
-2:
-				! loc 8 loc ? cfu
-	fldd	12(bx)
-	fabs			! ???
-	fiaddl	(bigmin)
-	fistpl	16(bx)
-	mov	ax,16(bx)
-	sub	ax,(bigmin)
-	mov	16(bx),ax
-	jmp	1b
Index: trunk/minix/lib/i386/em/em_cif4.s
===================================================================
--- trunk/minix/lib/i386/em/em_cif4.s	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cif4
-
-	.sect .text
-.cif4:
-	mov	bx,sp
-	fildl	8(bx)
-	fstps	8(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_cif8.s
===================================================================
--- trunk/minix/lib/i386/em/em_cif8.s	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cif8
-
-	.sect .text
-.cif8:
-	mov	bx,sp
-	fildl	8(bx)
-	fstpd	4(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_cii.s
===================================================================
--- trunk/minix/lib/i386/em/em_cii.s	(revision 9)
+++ 	(revision )
@@ -1,31 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cii
-
-.sect .text
-.cii:
-	pop     ebx              ! return address
-				! pop     ecx, dest. size
-				! pop     edx, src. size
-				! eax is source
-	cmp	edx,1
-	jne	2f
-	movsxb	eax,al
-	mov	edx,4
-	jmp	1f
-2:
-	cmp	edx,2
-	jne	1f
-	cwde			! convert from 2 to 4 bytes
-	mov	edx,4
-1:
-	cmp     edx,ecx
-	jne     9f
-	cmp	edx,4
-	jne	9f
-	jmp     ebx
-9:
-.extern EILLINS
-.extern .fat
-	mov     eax,EILLINS
-	push    eax
-	jmp     .fat
Index: trunk/minix/lib/i386/em/em_cmf4.s
===================================================================
--- trunk/minix/lib/i386/em/em_cmf4.s	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cmf4
-
-	.sect .text
-.cmf4:
-	mov	bx,sp
-	xor	cx,cx
-	flds	8(bx)
-	flds	4(bx)
-	fcompp			! compare and pop operands
-	fstsw	ax
-	wait
-	sahf
-	je	1f
-	jb	2f
-	dec	cx
-	jmp	1f
-2:
-	inc	cx
-1:
-	mov	ax,cx
-	ret
Index: trunk/minix/lib/i386/em/em_cmf8.s
===================================================================
--- trunk/minix/lib/i386/em/em_cmf8.s	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cmf8
-
-	.sect .text
-.cmf8:
-	mov	bx,sp
-	xor	cx,cx
-	fldd	12(bx)
-	fldd	4(bx)
-	fcompp			! compare and pop operands
-	fstsw	ax
-	wait
-	sahf
-	je	1f
-	jb	2f
-	dec	cx
-	jmp	1f
-2:
-	inc	cx
-1:
-	mov	ax,cx
-	ret
Index: trunk/minix/lib/i386/em/em_cms.s
===================================================================
--- trunk/minix/lib/i386/em/em_cms.s	(revision 9)
+++ 	(revision )
@@ -1,23 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cms
-
-	! #bytes in ecx
-	.sect .text
-.cms:
-	pop     ebx              ! return address
-	mov     edx,esp
-	push	esi
-	push	edi
-	mov     esi,edx
-	add     edx,ecx
-	mov     edi,edx
-	add     edx,ecx
-	sar     ecx,2
-	repe cmps
-	je      1f
-	inc     ecx
-1:
-	pop	edi
-	pop	esi
-	mov     esp,edx
-	jmp     ebx
Index: trunk/minix/lib/i386/em/em_com.s
===================================================================
--- trunk/minix/lib/i386/em/em_com.s	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define	.com
-
-	! #bytes in ecx
-	.sect .text
-.com:
-	mov	ebx,esp
-	add	ebx,4
-	sar	ecx,2
-1:
-	not	(ebx)
-	add	ebx,4
-	loop	1b
-	ret
Index: trunk/minix/lib/i386/em/em_csa4.s
===================================================================
--- trunk/minix/lib/i386/em/em_csa4.s	(revision 9)
+++ 	(revision )
@@ -1,27 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .csa4
-
-.sect .text
-.csa4:
-				! ebx, descriptor address
-				! eax, index
-	mov     edx,(ebx)         ! default
-	sub     eax,4(ebx)
-	cmp     eax,8(ebx)
-	ja      1f
-	sal     eax,2
-	add	ebx,eax
-	mov     ebx,12(ebx)
-	test    ebx,ebx
-	jnz     2f
-1:
-	mov     ebx,edx
-	test    ebx,ebx
-	jnz     2f
-.extern ECASE
-.extern .fat
-	mov     eax,ECASE
-	push    eax
-	jmp     .fat
-2:
-	jmp     ebx
Index: trunk/minix/lib/i386/em/em_csb4.s
===================================================================
--- trunk/minix/lib/i386/em/em_csb4.s	(revision 9)
+++ 	(revision )
@@ -1,29 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .csb4
-
-.sect .text
-.csb4:
-				!ebx, descriptor address
-				!eax,  index
-	mov	edx,(ebx)
-	mov	ecx,4(ebx)
-1:
-	add	ebx,8
-	dec     ecx
-	jl      4f
-	cmp     eax,(ebx)
-	jne     1b
-	mov	ebx,4(ebx)
-2:
-	test    ebx,ebx
-	jnz     3f
-.extern ECASE
-.extern .fat
-	mov     eax,ECASE
-	push    eax
-	jmp     .fat
-3:
-	jmp     ebx
-4:
-	mov	ebx,edx
-	jmp	2b
Index: trunk/minix/lib/i386/em/em_cuf4.s
===================================================================
--- trunk/minix/lib/i386/em/em_cuf4.s	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cuf4
-
-	.sect .text
-.cuf4:
-	mov	bx,sp
-	fildl	8(bx)
-	cmp	8(bx),0
-	jge	1f
-	fisubl	(bigmin)
-	fisubl	(bigmin)
-1:
-	fstps	8(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_cuf8.s
===================================================================
--- trunk/minix/lib/i386/em/em_cuf8.s	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .cuf8
-
-	.sect .text
-.cuf8:
-	mov	bx,sp
-	fildl	8(bx)
-	cmp	8(bx),0
-	jge	1f
-	fisubl	(bigmin)
-	fisubl	(bigmin)
-1:
-	fstpd	4(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_cuu.s
===================================================================
--- trunk/minix/lib/i386/em/em_cuu.s	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .ciu
-.define .cui
-.define .cuu
-
-.sect .text
-.ciu:
-.cui:
-.cuu:
-	pop     ebx              ! return address
-				! pop     ecx, dest. size
-				! pop     edx, source size
-				! eax is source
-	cmp     edx,ecx
-	jne     8f
-	jmp     ebx
-8:
-.extern EILLINS
-.extern .fat
-	mov     eax,EILLINS
-	push    eax
-	jmp     .fat
Index: trunk/minix/lib/i386/em/em_dup.s
===================================================================
--- trunk/minix/lib/i386/em/em_dup.s	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define	.dup
-
-	! #bytes in ecx
-	.sect .text
-.dup:
-	pop	ebx		! return address
-	mov	eax,esi
-	mov	edx,edi
-	mov	esi,esp
-	sub	esp,ecx
-	mov	edi,esp
-	sar	ecx,2
-	rep movs
-	mov	esi,eax
-	mov	edi,edx
-	jmp	ebx
Index: trunk/minix/lib/i386/em/em_dvf4.s
===================================================================
--- trunk/minix/lib/i386/em/em_dvf4.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .dvf4
-
-	.sect .text
-.dvf4:
-	mov	bx,sp
-	flds	8(bx)
-	fdivs	4(bx)
-	fstps	8(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_dvf8.s
===================================================================
--- trunk/minix/lib/i386/em/em_dvf8.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .dvf8
-
-	.sect .text
-.dvf8:
-	mov	bx,sp
-	fldd	12(bx)
-	fdivd	4(bx)
-	fstpd	12(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_dvi.s
===================================================================
--- trunk/minix/lib/i386/em/em_dvi.s	(revision 9)
+++ 	(revision )
@@ -1,21 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .dvi
-
-        ! #bytes in eax
-	.sect .text
-.dvi:
-        pop     ebx              ! return address
-        cmp     eax,4
-        jne     1f
-        pop     eax
-        cwd
-        pop     ecx
-        idiv    ecx
-        push    eax
-        jmp     ebx
-1:
-.extern EODDZ
-.extern .trp
-        mov     eax,EODDZ
-        push    ebx
-        jmp     .trp
Index: trunk/minix/lib/i386/em/em_dvu.s
===================================================================
--- trunk/minix/lib/i386/em/em_dvu.s	(revision 9)
+++ 	(revision )
@@ -1,21 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .dvu
-
-	! #bytes in eax
-	.sect .text
-.dvu:
-	pop     ebx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	xor     edx,edx
-	pop     ecx
-	div     ecx
-	push    eax
-	jmp     ebx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    ebx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_error.s
===================================================================
--- trunk/minix/lib/i386/em/em_error.s	(revision 9)
+++ 	(revision )
@@ -1,32 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .error
-.define .Xtrp
-
-	! eax is trap number
-	! all registers must be saved
-	! because return is possible
-	! May only be called with error no's <16
-.sect .text
-.error:
-	mov  ecx,eax
-	mov  ebx,1
-	sal  ebx,cl
-.extern .ignmask
-.extern .trp
-	test ebx,(.ignmask)
-	jne  2f
-	call    .trp
-2:
-	ret
-
-.Xtrp:
-	pusha
-	cmp	eax,16
-	jge	1f
-	call	.error
-	popa
-	ret
-1:
-	call	.trp
-	popa
-	ret
Index: trunk/minix/lib/i386/em/em_exg.s
===================================================================
--- trunk/minix/lib/i386/em/em_exg.s	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .exg
-
-	! #bytes in ecx
-.sect .text
-.exg:
-	push	edi
-	mov	edi,esp
-	add	edi,8
-	mov	ebx,edi
-	add	ebx,ecx
-	sar     ecx,2
-1:
-	mov	eax,(ebx)
-	xchg	eax,(edi)
-	mov	(ebx),eax
-	add	edi,4
-	add	ebx,4
-	loop	1b
-2:
-	pop	edi
-	ret
Index: trunk/minix/lib/i386/em/em_fat.s
===================================================================
--- trunk/minix/lib/i386/em/em_fat.s	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .fat
-
-.fat:
-.extern .trp
-.extern .stop
-	call    .trp
-	call    .stop
-	! no return
Index: trunk/minix/lib/i386/em/em_fef4.s
===================================================================
--- trunk/minix/lib/i386/em/em_fef4.s	(revision 9)
+++ 	(revision )
@@ -1,49 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .fef4
-
-	.sect .text
-.fef4:
-				! this could be simpler, if only the
-				! fxtract instruction was emulated properly
-	mov	bx,sp
-	mov	ax,8(bx)
-	and	ax,0x7f800000
-	je	1f		! zero exponent
-	shr	ax,23
-	sub	ax,126
-	mov	cx,ax		! exponent in cx
-	mov	ax,8(bx)
-	and	ax,0x807fffff
-	or	ax,0x3f000000	! load -1 exponent
-	mov	bx,4(bx)
-	mov	4(bx),ax
-	mov	(bx),cx
-	ret
-1:				! we get here on zero exp
-	mov	ax,8(bx)
-	and	ax,0x007fffff
-	jne	1f		! zero result
-	mov	bx,4(bx)
-	mov	(bx),ax
-	mov	4(bx),ax
-	ret
-1:				! otherwise unnormalized number
-	mov	cx,8(bx)
-	and	cx,0x807fffff
-	mov	dx,cx
-	and	cx,0x80000000
-	mov	ax,-125
-2:
-	test	dx,0x800000
-	jne	1f
-	dec	ax
-	shl	dx,1
-	or	dx,cx
-	jmp	2b
-1:
-	mov	bx,4(bx)
-	mov	(bx),ax
-	and	dx,0x807fffff
-	or	dx,0x3f000000	! load -1 exponent
-	mov	4(bx),dx
-	ret
Index: trunk/minix/lib/i386/em/em_fef8.s
===================================================================
--- trunk/minix/lib/i386/em/em_fef8.s	(revision 9)
+++ 	(revision )
@@ -1,56 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .fef8
-
-	.sect .text
-.fef8:
-				! this could be simpler, if only the
-				! fxtract instruction was emulated properly
-	mov	bx,sp
-	mov	ax,12(bx)
-	and	ax,0x7ff00000
-	je	1f		! zero exponent
-	shr	ax,20
-	sub	ax,1022
-	mov	cx,ax		! exponent in cx
-	mov	ax,12(bx)
-	and	ax,0x800fffff
-	or	ax,0x3fe00000	! load -1 exponent
-	mov	dx,8(bx)
-	mov	bx,4(bx)
-	mov	4(bx),dx
-	mov	8(bx),ax
-	mov	(bx),cx
-	ret
-1:				! we get here on zero exp
-	mov	ax,12(bx)
-	and	ax,0xfffff
-	or	ax,8(bx)
-	jne	1f		! zero result
-	mov	bx,4(bx)
-	mov	(bx),ax
-	mov	4(bx),ax
-	mov	8(bx),ax
-	ret
-1:				! otherwise unnormalized number
-	mov	cx,12(bx)
-	and	cx,0x800fffff
-	mov	dx,cx
-	and	cx,0x80000000
-	mov	ax,-1021
-2:
-	test	dx,0x100000
-	jne	1f
-	dec	ax
-	shl	8(bx),1
-	rcl	dx,1
-	or	dx,cx
-	jmp	2b
-1:
-	and	dx,0x800fffff
-	or	dx,0x3fe00000	! load -1 exponent
-	mov	cx,8(bx)
-	mov	bx,4(bx)
-	mov	(bx),ax
-	mov	8(bx),dx
-	mov	4(bx),cx
-	ret
Index: trunk/minix/lib/i386/em/em_fif4.s
===================================================================
--- trunk/minix/lib/i386/em/em_fif4.s	(revision 9)
+++ 	(revision )
@@ -1,37 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .fif4
-
-	.sect .text
-.fif4:
-	mov	bx,sp
-	flds	8(bx)
-	fmuls	12(bx)		! multiply
-	fld	st		! copy result
-	ftst			! test sign; handle negative separately
-	fstsw	ax
-	wait
-	sahf			! result of test in condition codes
-	jb	1f
-	frndint			! this one rounds (?)
-	fcom	st(1)		! compare with original; if <=, then OK
-	fstsw	ax
-	wait
-	sahf
-	jbe	2f
-	fisubs	(one)		! else subtract 1
-	jmp	2f
-1:				! here, negative case
-	frndint			! this one rounds (?)
-	fcom	st(1)		! compare with original; if >=, then OK
-	fstsw	ax
-	wait
-	sahf
-	jae	2f
-	fiadds	(one)		! else add 1
-2:
-	fsub	st(1),st	! subtract integer part
-	mov	bx,4(bx)
-	fstps	(bx)
-	fstps	4(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_fif8.s
===================================================================
--- trunk/minix/lib/i386/em/em_fif8.s	(revision 9)
+++ 	(revision )
@@ -1,37 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .fif8
-
-	.sect .text
-.fif8:
-	mov	bx,sp
-	fldd	8(bx)
-	fmuld	16(bx)		! multiply
-	fld	st		! and copy result
-	ftst			! test sign; handle negative separately
-	fstsw	ax
-	wait
-	sahf			! result of test in condition codes
-	jb	1f
-	frndint			! this one rounds (?)
-	fcom	st(1)		! compare with original; if <=, then OK
-	fstsw	ax
-	wait
-	sahf
-	jbe	2f
-	fisubs	(one)		! else subtract 1
-	jmp	2f
-1:				! here, negative case
-	frndint			! this one rounds (?)
-	fcom	st(1)		! compare with original; if >=, then OK
-	fstsw	ax
-	wait
-	sahf
-	jae	2f
-	fiadds	(one)		! else add 1
-2:
-	fsub	st(1),st	! subtract integer part
-	mov	bx,4(bx)
-	fstpd	(bx)
-	fstpd	8(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_fp8087.s
===================================================================
--- trunk/minix/lib/i386/em/em_fp8087.s	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define one, bigmin
-
-	.sect .rom
-one:
-	.data2	1
-two:
-	.data2	2
-bigmin:
-	.data4 	-2147483648
Index: trunk/minix/lib/i386/em/em_gto.s
===================================================================
--- trunk/minix/lib/i386/em/em_gto.s	(revision 9)
+++ 	(revision )
@@ -1,8 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .gto
-
-.gto:
-	mov     ebp,8(ebx)
-	mov     esp,4(ebx)
-	jmp     (ebx)
Index: trunk/minix/lib/i386/em/em_hol0.s
===================================================================
--- trunk/minix/lib/i386/em/em_hol0.s	(revision 9)
+++ 	(revision )
@@ -1,7 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-.define hol0
-.sect .data
-hol0:
-	.data4	0, 0
-	.data4	0, 0
Index: trunk/minix/lib/i386/em/em_iaar.s
===================================================================
--- trunk/minix/lib/i386/em/em_iaar.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .iaar
-
-.iaar:
-	pop     ecx
-	pop     edx
-	cmp     edx,4
-.extern .unknown
-	jne     .unknown
-	pop     ebx     ! descriptor address
-	pop     eax     ! index
-	sub     eax,(ebx)
-	mul     8(ebx)
-	pop	ebx	! array base
-	add     ebx,eax
-	push	ecx
-	ret
Index: trunk/minix/lib/i386/em/em_ilar.s
===================================================================
--- trunk/minix/lib/i386/em/em_ilar.s	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .ilar
-
-.ilar:
-	pop     ecx
-	pop     edx
-.extern .unknown
-	cmp     edx,4
-	jne     .unknown
-	pop     ebx      ! descriptor address
-	pop     eax      ! index
-	push    ecx
-.extern .lar4
-	jmp    .lar4
Index: trunk/minix/lib/i386/em/em_inn.s
===================================================================
--- trunk/minix/lib/i386/em/em_inn.s	(revision 9)
+++ 	(revision )
@@ -1,32 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .inn
-
-	! #bytes in ecx
-	! bit # in eax
-.inn:
-	xor     edx,edx
-	mov     ebx,8
-	div     ebx
-	mov     ebx,esp
-	add	ebx,4
-	add     ebx,eax
-	cmp     eax,ecx
-	jae     1f
-	movb	al,(ebx)
-	mov	ebx,edx
-	testb   al,bits(ebx)
-	jz      1f
-	mov	eax,1
-	jmp	2f
-1:
-	xor	eax,eax
-2:
-	pop	ebx
-	add     esp,ecx
-	! eax is result
-	jmp     ebx
-
-	.sect .rom
-bits:
-	.data1 1,2,4,8,16,32,64,128
Index: trunk/minix/lib/i386/em/em_ior.s
===================================================================
--- trunk/minix/lib/i386/em/em_ior.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define	.ior
-
-	! #bytes in ecx
-.ior:
-	pop	ebx		! return address
-	mov	edx,edi
-	mov	edi,esp
-	add	edi,ecx
-	sar	ecx,2
-1:
-	pop	eax
-	or	eax,(edi)
-	stos
-	loop	1b
-	mov	edi,edx
-	jmp	ebx
Index: trunk/minix/lib/i386/em/em_isar.s
===================================================================
--- trunk/minix/lib/i386/em/em_isar.s	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .isar
-
-.isar:
-	pop     ecx
-	pop     eax
-	cmp     eax,4
-.extern .unknown
-	jne     .unknown
-	pop     ebx      ! descriptor address
-	pop     eax      ! index
-	push    ecx
-.extern .sar4
-	jmp    .sar4
Index: trunk/minix/lib/i386/em/em_lar4.s
===================================================================
--- trunk/minix/lib/i386/em/em_lar4.s	(revision 9)
+++ 	(revision )
@@ -1,37 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .lar4
-
-.lar4:
-				! ebx, descriptor address
-				! eax, index
-	sub     eax,(ebx)
-	mov     ecx,8(ebx)
-	imul    ecx
-	pop	ebx
-	pop	edx		! base address
-	add     edx,eax
-	sar     ecx,1
-	jnb     1f
-	xor     eax,eax
-	movb	al,(edx)
-	push    eax
-	jmp     ebx
-1:
-	sar     ecx,1
-	jnb     1f
-	xor     eax,eax
-	o16 mov	ax,(edx)
-	push    eax
-	jmp     ebx
-1:
-	xchg	edx,esi		! saved esi
-	mov	eax,ecx
-	sal	eax,2
-	sub     esp,eax
-	mov	eax,edi		! save edi
-	mov     edi,esp
-	rep movs
-	mov	edi,eax
-	mov	esi,edx
-	jmp     ebx
Index: trunk/minix/lib/i386/em/em_loi.s
===================================================================
--- trunk/minix/lib/i386/em/em_loi.s	(revision 9)
+++ 	(revision )
@@ -1,44 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .loi
-.define .los
-
-	! #bytes in ecx
-	! address in ebx
-	! save esi/edi. they might be register variables
-.los:
-	pop	edx
-	mov     eax,ecx
-	sar     ecx,1
-	jnb     1f
-	movsxb	eax,(ebx)
-	push    eax
-	jmp     edx
-1:
-	sar     ecx,1
-	jnb     1f
-	movsx	eax,(ebx)
-	push    eax
-	jmp     edx
-1:
-	push	edx
-	mov	edx,esi
-	mov	esi,ebx
-	pop	ebx
-	sub     esp,eax
-	jmp	1f
-
-.loi:
-	! only called with size >= 4
-	mov	edx,esi
-	mov	esi,ebx
-	pop	ebx
-	sub	esp,ecx
-	sar	ecx,2
-1:
-	mov	eax,edi
-	mov     edi,esp
-	rep movs
-	mov	esi,edx
-	mov	edi,eax
-	jmp     ebx
Index: trunk/minix/lib/i386/em/em_mlf4.s
===================================================================
--- trunk/minix/lib/i386/em/em_mlf4.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .mlf4
-
-	.sect .text
-.mlf4:
-	mov	bx,sp
-	flds	4(bx)
-	fmuls	8(bx)
-	fstps	8(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_mlf8.s
===================================================================
--- trunk/minix/lib/i386/em/em_mlf8.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .mlf8
-
-	.sect .text
-.mlf8:
-	mov	bx,sp
-	fldd	4(bx)
-	fmuld	12(bx)
-	fstpd	12(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_mli.s
===================================================================
--- trunk/minix/lib/i386/em/em_mli.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .mli
-
-	! #bytes in eax
-.mli:
-	pop     ebx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	pop     ecx
-	mul     ecx
-	push    eax
-	jmp     ebx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    ebx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_mon.s
===================================================================
--- trunk/minix/lib/i386/em/em_mon.s	(revision 9)
+++ 	(revision )
@@ -1,7 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .mon
-
-.mon:
-.extern .stop
-	call    .stop
Index: trunk/minix/lib/i386/em/em_ngf4.s
===================================================================
--- trunk/minix/lib/i386/em/em_ngf4.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .ngf4
-
-	.sect .text
-.ngf4:
-	mov	bx,sp
-	flds	4(bx)
-	fchs
-	fstps	4(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_ngf8.s
===================================================================
--- trunk/minix/lib/i386/em/em_ngf8.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .ngf8
-
-	.sect .text
-.ngf8:
-	mov	bx,sp
-	fldd	4(bx)
-	fchs
-	fstpd	4(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_ngi.s
===================================================================
--- trunk/minix/lib/i386/em/em_ngi.s	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .ngi
-
-	! #bytes in eax
-.ngi:
-	pop     ebx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     ecx
-	neg     ecx
-	push    ecx
-	jmp     ebx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    ebx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_nop.s
===================================================================
--- trunk/minix/lib/i386/em/em_nop.s	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .nop
-.extern printd, printc, hol0
-
-.nop:
-	mov     eax,(hol0)
-	call    printd
-	movb    al,'\n'
-	jmp     printc
Index: trunk/minix/lib/i386/em/em_print.s
===================================================================
--- trunk/minix/lib/i386/em/em_print.s	(revision 9)
+++ 	(revision )
@@ -1,47 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define	printc,printd,prints
-
-	! argument in eax
-	! uses ebx
-prints:
-	xchg	eax,ebx
-1:
-	movb	al,(ebx)
-	inc	ebx
-	testb	al,al
-	jz	2f
-	call	printc
-	jmp	1b
-2:
-	ret
-
-	! argument in eax
-	! uses ecx and edx
-printd:
-	xor	edx,edx
-	mov	ecx,10
-	div	ecx
-	test	eax,eax
-	jz	1f
-	push	edx
-	call	printd
-	pop	edx
-1:
-	xchg	eax,edx
-	addb	al,'0'
-
-	! argument in eax
-printc:
-	push	eax
-	mov	ebx,esp
-	mov	eax,1
-	push	eax
-	push	ebx
-	push	eax
-	call	__write
-	pop	ebx
-	pop	ebx
-	pop	ebx
-	pop	ebx
-	ret
Index: trunk/minix/lib/i386/em/em_rck.s
===================================================================
--- trunk/minix/lib/i386/em/em_rck.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .rck
-
-	! descriptor address in ebx
-	! value in eax, must be left there
-.rck:
-	cmp     eax,(ebx)
-	jl      2f
-	cmp     eax,4(ebx)
-	jg      2f
-	ret
-2:
-	push    eax
-.extern ERANGE
-.extern .error
-	mov     eax,ERANGE
-	call    .error
-	pop     eax
-	ret
Index: trunk/minix/lib/i386/em/em_rmi.s
===================================================================
--- trunk/minix/lib/i386/em/em_rmi.s	(revision 9)
+++ 	(revision )
@@ -1,21 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .rmi
-
-	! #bytes in eax
-.rmi:
-	pop     ebx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	cwd
-	pop     ecx
-	idiv    ecx
-	push    edx
-	jmp     ebx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    ebx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_rmu.s
===================================================================
--- trunk/minix/lib/i386/em/em_rmu.s	(revision 9)
+++ 	(revision )
@@ -1,21 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .rmu
-
-	! #bytes in eax
-.rmu:
-	pop     ebx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	xor     edx,edx
-	pop     ecx
-	idiv    ecx
-	push    edx
-	jmp     ebx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    ebx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_rol.s
===================================================================
--- trunk/minix/lib/i386/em/em_rol.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .rol
-
-	! #bytes in eax
-.rol:
-	pop     edx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	pop     ecx
-	rol     eax,cl
-	push    eax
-	jmp     edx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    edx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_ror.s
===================================================================
--- trunk/minix/lib/i386/em/em_ror.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .ror
-
-	! #bytes in eax
-.ror:
-	pop     edx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	pop     ecx
-	ror     eax,cl
-	push    eax
-	jmp     edx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    edx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_sar4.s
===================================================================
--- trunk/minix/lib/i386/em/em_sar4.s	(revision 9)
+++ 	(revision )
@@ -1,33 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .sar4
-
-.sar4:
-				! ebx, descriptor address
-				! eax, index
-	sub     eax,(ebx)
-	mov     ecx,8(ebx)
-	imul    ecx
-	pop	ebx
-	pop	edx		! base address
-	add     edx,eax
-	sar     ecx,1
-	jnb     1f
-	pop     eax
-	movb	(edx),al
-	jmp     ebx
-1:
-	sar     ecx,1
-	jnb     1f
-	pop     eax
-	o16 mov (edx),ax
-	jmp     ebx
-1:
-	xchg	edi,edx		! edi = base address, edx is saved edi
-	mov	eax,esi
-	mov     esi,esp
-	rep movs
-	mov     esp,esi
-	mov	esi,eax
-	mov	edi,edx
-	jmp     ebx
Index: trunk/minix/lib/i386/em/em_sbf4.s
===================================================================
--- trunk/minix/lib/i386/em/em_sbf4.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .sbf4
-
-	.sect .text
-.sbf4:
-	mov	bx,sp
-	flds	8(bx)
-	fsubs	4(bx)
-	fstps	8(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_sbf8.s
===================================================================
--- trunk/minix/lib/i386/em/em_sbf8.s	(revision 9)
+++ 	(revision )
@@ -1,11 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define .sbf8
-
-	.sect .text
-.sbf8:
-	mov	bx,sp
-	fldd	12(bx)
-	fsubd	4(bx)
-	fstpd	12(bx)
-	wait
-	ret
Index: trunk/minix/lib/i386/em/em_sbi.s
===================================================================
--- trunk/minix/lib/i386/em/em_sbi.s	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .sbi
-
-	! #bytes in ecx , top of stack in eax
-.sbi:
-	pop     ebx              ! return subress
-	cmp     ecx,4
-	jne     1f
-	pop     ecx
-	sub     eax,ecx
-	neg     eax
-	jmp     ebx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    ebx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_set.s
===================================================================
--- trunk/minix/lib/i386/em/em_set.s	(revision 9)
+++ 	(revision )
@@ -1,42 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .set
-
-	! #bytes in ecx
-	! bit # in eax
-.set:
-	pop     ebx              ! return address
-	xor     edx,edx
-!ifdef create set
-	sub	esp,ecx
-	push	ebx
-	push	edi
-	mov     ebx,esp
-	xor	edi,edi
-	sar	ecx,2
-1:
-	mov     8(ebx)(edi),edx
-	add	edi,4
-	loop	1b
-!endif
-	mov     ebx,8
-	div     ebx
-	cmp     eax,edi
-	jae     2f
-	mov	edi,edx
-	movb	dl,bits(edi)
-	mov     edi,esp
-	add     edi,eax
-	orb     8(edi),dl
-	pop	edi
-	ret
-2:
-.extern ESET
-.extern .trp
-	pop	edi
-	mov     eax,ESET
-	jmp     .trp
-
-	.sect .rom
-bits:
-	.data1   1,2,4,8,16,32,64,128
Index: trunk/minix/lib/i386/em/em_sli.s
===================================================================
--- trunk/minix/lib/i386/em/em_sli.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .sli
-
-	! #bytes in eax
-.sli:
-	pop     edx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	pop     ecx
-	sal     eax,cl
-	push    eax
-	jmp     edx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    edx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_sri.s
===================================================================
--- trunk/minix/lib/i386/em/em_sri.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .sri
-
-	! #bytes in eax
-.sri:
-	pop     edx              ! return address
-	cmp     eax,4
-	jne     1f
-	pop     eax
-	pop     ecx
-	sar     eax,cl
-	push    eax
-	jmp     edx
-1:
-.extern EODDZ
-.extern .trp
-	mov     eax,EODDZ
-	push    edx
-	jmp     .trp
Index: trunk/minix/lib/i386/em/em_sti.s
===================================================================
--- trunk/minix/lib/i386/em/em_sti.s	(revision 9)
+++ 	(revision )
@@ -1,41 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .sti
-.define .sts
-
-	! #bytes in ecx
-	! address in ebx
-	! save edi/esi. they might be register variables
-.sts:
-	pop	edx
-	sar     ecx,1
-	jnb     1f
-	pop     eax
-	movb	(ebx),al
-	jmp     edx
-1:
-	sar     ecx,1
-	jnb     1f
-	pop     eax
-	o16 mov	(ebx),ax
-	jmp     edx
-1:
-	push	edx
-	mov	edx,edi
-	mov	edi,ebx
-	pop	ebx
-	jmp	1f
-.sti:
-	! only called with count >> 4
-	mov	edx,edi
-	mov	edi,ebx
-	pop	ebx
-	sar	ecx,2
-1:
-	mov	eax,esi
-	mov     esi,esp
-	rep movs
-	mov     esp,esi
-	mov	edi,edx
-	mov	esi,eax
-	jmp     ebx
Index: trunk/minix/lib/i386/em/em_stop.s
===================================================================
--- trunk/minix/lib/i386/em/em_stop.s	(revision 9)
+++ 	(revision )
@@ -1,5 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .stop
-.stop:
-	jmp	___exit
Index: trunk/minix/lib/i386/em/em_trp.s
===================================================================
--- trunk/minix/lib/i386/em/em_trp.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .trp
-.extern .trppc, .stop
-
-		! eax is trap number
-.trp:
-	xor     ebx,ebx
-	xchg    ebx,(.trppc)
-	test    ebx,ebx
-	jz      2f
-	push    eax
-	call    ebx
-	pop     eax
-	ret
-2:
-	push	eax
-	call    .stop
Index: trunk/minix/lib/i386/em/em_unknown.s
===================================================================
--- trunk/minix/lib/i386/em/em_unknown.s	(revision 9)
+++ 	(revision )
@@ -1,9 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define .unknown
-.extern EILLINS, .fat
-
-.unknown:
-	mov  eax,EILLINS
-	push eax
-	jmp  .fat
Index: trunk/minix/lib/i386/em/em_xor.s
===================================================================
--- trunk/minix/lib/i386/em/em_xor.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define	.xor
-
-	! #bytes in ecx
-.xor:
-	pop	ebx		! return address
-	mov	edx,edi
-	mov	edi,esp
-	add	edi,ecx
-	sar	ecx,2
-1:
-	pop	eax
-	xor	eax,(edi)
-	stos
-	loop	1b
-	mov	edi,edx
-	jmp	ebx
Index: trunk/minix/lib/i386/head/em_abs.h
===================================================================
--- trunk/minix/lib/i386/head/em_abs.h	(revision 9)
+++ 	(revision )
@@ -1,35 +1,0 @@
-/* $Header: /cvsup/minix/src/lib/i386/head/em_abs.h,v 1.1.1.1 2005/04/21 14:56:12 beng Exp $ */
-/*
- * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
- * See the copyright notice in the ACK home directory, in the file "Copyright".
- */
-#define LINO_AD         0
-#define FILN_AD         4
-
-#define LINO            (*(int    *)(_hol0()+LINO_AD))
-#define FILN            (*(char  **)(_hol0()+FILN_AD))
-
-#define EARRAY          0
-#define ERANGE          1
-#define ESET            2
-#define EIOVFL          3
-#define EFOVFL          4
-#define EFUNFL          5
-#define EIDIVZ          6
-#define EFDIVZ          7
-#define EIUND           8
-#define EFUND           9
-#define ECONV           10
-
-#define ESTACK          16
-#define EHEAP           17
-#define EILLINS         18
-#define EODDZ           19
-#define ECASE           20
-#define EMEMFLT         21
-#define EBADPTR         22
-#define EBADPC          23
-#define EBADLAE         24
-#define EBADMON         25
-#define EBADLIN         26
-#define EBADGTO         27
Index: trunk/minix/lib/i386/head/em_head.s
===================================================================
--- trunk/minix/lib/i386/head/em_head.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-#
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define ERANGE,ESET,EHEAP,ECASE,EILLINS,EIDIVZ,EODDZ
-.define .trppc, .ignmask
-
-ERANGE		= 1
-ESET		= 2
-EIDIVZ		= 6
-EHEAP		= 17
-EILLINS		= 18
-EODDZ		= 19
-ECASE		= 20
-
-#include <em_abs.h>
-
-.sect .data
-.trppc:
-	.data4	0
-.ignmask:
-	.data4	EIOVFL | EIUND | ECONV | EFOVFL | EFUNFL
Index: trunk/minix/lib/i386/int64/Makedepend-ack
===================================================================
--- trunk/minix/lib/i386/int64/Makedepend-ack	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-depend-ack:
-	rm .depend-ack
-	touch .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' add64.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' add64u.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' cmp64.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' cv64u.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' cvu64.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' diff64.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' div64u.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' ex64.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' make64.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' mul64u.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' sub64.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' sub64u.s | sed -e 's:^\(.\):../../obj-ack//./i386/int64/\1:' >> .depend-ack
Index: trunk/minix/lib/i386/int64/Makedepend-gnu
===================================================================
--- trunk/minix/lib/i386/int64/Makedepend-gnu	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-depend-gnu:
-	rm .depend-gnu
-	touch .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' add64.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' add64u.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' cmp64.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' cv64u.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' cvu64.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' diff64.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' div64u.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' ex64.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' make64.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' mul64u.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' sub64.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' sub64u.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/int64/\1:' >> .depend-gnu
Index: trunk/minix/lib/i386/int64/Makefile
===================================================================
--- trunk/minix/lib/i386/int64/Makefile	(revision 9)
+++ 	(revision )
@@ -1,141 +1,0 @@
-#Generated from ./i386/int64/Makefile.in
-all: all-ack
-
-all-ack:
-all-gnu:
-
-makefiles: Makefile
-Makedepend-ack Makedepend-gnu: 
-	sh ../../generate.sh ./i386/int64 ../../obj-ack/ ../../obj-gnu
-
-Makefile: Makefile.in Makedepend-ack Makedepend-gnu
-	sh ../../generate.sh ./i386/int64 ../../obj-ack/ ../../obj-gnu
-	@echo
-	@echo *Attention*
-	@echo Makefile is regenerated... rerun command to see changes
-	@echo *Attention*
-	@echo
-
-depend: depend-ack
-all-ack: ../../obj-ack//libc.a
-
-../../obj-ack//libc.a: ../../obj-ack//libc.a(add64.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(add64u.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(cmp64.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(cv64u.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(cvu64.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(diff64.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(div64u.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(ex64.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(make64.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(mul64u.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(sub64.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(sub64u.o)
-
-../../obj-ack//libc.a:
-	ar cr ../../obj-ack//libc.a ../../obj-ack//./i386/int64/*.o
-	rm ../../obj-ack//./i386/int64/*.o
-
-../../obj-ack//libc.a(add64.o): add64.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/add64.o add64.s
-../../obj-ack//libc.a(add64u.o): add64u.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/add64u.o add64u.s
-../../obj-ack//libc.a(cmp64.o): cmp64.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/cmp64.o cmp64.s
-../../obj-ack//libc.a(cv64u.o): cv64u.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/cv64u.o cv64u.s
-../../obj-ack//libc.a(cvu64.o): cvu64.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/cvu64.o cvu64.s
-../../obj-ack//libc.a(diff64.o): diff64.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/diff64.o diff64.s
-../../obj-ack//libc.a(div64u.o): div64u.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/div64u.o div64u.s
-../../obj-ack//libc.a(ex64.o): ex64.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/ex64.o ex64.s
-../../obj-ack//libc.a(make64.o): make64.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/make64.o make64.s
-../../obj-ack//libc.a(mul64u.o): mul64u.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/mul64u.o mul64u.s
-../../obj-ack//libc.a(sub64.o): sub64.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/sub64.o sub64.s
-../../obj-ack//libc.a(sub64u.o): sub64u.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/int64/sub64u.o sub64u.s
-
-all-gnu: ../../obj-gnu/libc.a
-
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/add64.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/add64u.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/cmp64.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/cv64u.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/cvu64.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/diff64.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/div64u.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/ex64.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/make64.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/mul64u.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/sub64.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/int64/sub64u.o
-
-../../obj-gnu/libc.a:
-	gar cr ../../obj-gnu/libc.a $?
-
-../../obj-gnu/./i386/int64/add64.o: add64.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. add64.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/add64.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/add64.o ../../obj-gnu/./i386/int64/add64.s.gnu
-
-../../obj-gnu/./i386/int64/add64u.o: add64u.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. add64u.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/add64u.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/add64u.o ../../obj-gnu/./i386/int64/add64u.s.gnu
-
-../../obj-gnu/./i386/int64/cmp64.o: cmp64.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. cmp64.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/cmp64.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/cmp64.o ../../obj-gnu/./i386/int64/cmp64.s.gnu
-
-../../obj-gnu/./i386/int64/cv64u.o: cv64u.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. cv64u.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/cv64u.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/cv64u.o ../../obj-gnu/./i386/int64/cv64u.s.gnu
-
-../../obj-gnu/./i386/int64/cvu64.o: cvu64.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. cvu64.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/cvu64.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/cvu64.o ../../obj-gnu/./i386/int64/cvu64.s.gnu
-
-../../obj-gnu/./i386/int64/diff64.o: diff64.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. diff64.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/diff64.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/diff64.o ../../obj-gnu/./i386/int64/diff64.s.gnu
-
-../../obj-gnu/./i386/int64/div64u.o: div64u.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. div64u.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/div64u.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/div64u.o ../../obj-gnu/./i386/int64/div64u.s.gnu
-
-../../obj-gnu/./i386/int64/ex64.o: ex64.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. ex64.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/ex64.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/ex64.o ../../obj-gnu/./i386/int64/ex64.s.gnu
-
-../../obj-gnu/./i386/int64/make64.o: make64.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. make64.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/make64.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/make64.o ../../obj-gnu/./i386/int64/make64.s.gnu
-
-../../obj-gnu/./i386/int64/mul64u.o: mul64u.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. mul64u.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/mul64u.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/mul64u.o ../../obj-gnu/./i386/int64/mul64u.s.gnu
-
-../../obj-gnu/./i386/int64/sub64.o: sub64.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. sub64.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/sub64.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/sub64.o ../../obj-gnu/./i386/int64/sub64.s.gnu
-
-../../obj-gnu/./i386/int64/sub64u.o: sub64u.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. sub64u.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/int64/sub64u.s.gnu || true
-	gas -o ../../obj-gnu/./i386/int64/sub64u.o ../../obj-gnu/./i386/int64/sub64u.s.gnu
-
-
-
-
-clean::
-	rm -f ../../obj-ack//./i386/int64/*
-	rm -f ../../obj-gnu/./i386/int64/*
-
-include Makedepend-ack
-include .depend-ack
-
-include Makedepend-gnu
-include .depend-gnu
Index: trunk/minix/lib/i386/int64/Makefile.in
===================================================================
--- trunk/minix/lib/i386/int64/Makefile.in	(revision 9)
+++ 	(revision )
@@ -1,21 +1,0 @@
-# Makefile for lib/i386/int64.
-
-CFLAGS="-O -D_MINIX -D_POSIX_SOURCE"
-
-LIBRARIES=libc
-
-libc_FILES=" \
-	add64.s \
-	add64u.s \
-	cmp64.s \
-	cv64u.s \
-	cvu64.s \
-	diff64.s \
-	div64u.s \
-	ex64.s \
-	make64.s \
-	mul64u.s \
-	sub64.s \
-	sub64u.s"
-
-TYPE=both
Index: trunk/minix/lib/i386/int64/add64.s
===================================================================
--- trunk/minix/lib/i386/int64/add64.s	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-!	add64() - 64 bit addition			Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _add64
-
-_add64:				! u64_t add64(u64_t i, u64_t j);
-	mov	eax, 4(esp)
-	mov	edx, 8(esp)
-	add	edx, 16(esp)
-	mov	(eax), edx
-	mov	edx, 12(esp)
-	adc	edx, 20(esp)
-	mov	4(eax), edx
-	ret
-
-!
-! $PchId: add64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/add64u.s
===================================================================
--- trunk/minix/lib/i386/int64/add64u.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-!	add64u() - unsigned to 64 bit addition		Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _add64u, _add64ul
-
-_add64u:			! u64_t add64u(u64_t i, unsigned j);
-_add64ul:			! u64_t add64ul(u64_t i, unsigned long j);
-	mov	eax, 4(esp)
-	mov	edx, 8(esp)
-	add	edx, 16(esp)
-	mov	(eax), edx
-	mov	edx, 12(esp)
-	adc	edx, 0
-	mov	4(eax), edx
-	ret
-
-!
-! $PchId: add64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/cmp64.s
===================================================================
--- trunk/minix/lib/i386/int64/cmp64.s	(revision 9)
+++ 	(revision )
@@ -1,31 +1,0 @@
-!	cmp64*() - 64 bit compare			Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _cmp64, _cmp64u, _cmp64ul
-
-_cmp64:				! int cmp64(u64_t i, u64_t j);
-	mov	ecx, esp
-cmp64:	xor	eax, eax
-	mov	edx, 4(ecx)
-	sub	edx, 12(ecx)
-	mov	edx, 8(ecx)
-	sbb	edx, 16(ecx)
-	sbb	eax, eax		! eax = - (i < j)
-	mov	edx, 12(ecx)
-	sub	edx, 4(ecx)
-	mov	edx, 16(ecx)
-	sbb	edx, 8(ecx)
-	adc	eax, 0			! eax = (i > j) - (i < j)
-	ret
-
-_cmp64u:			! int cmp64u(u64_t i, unsigned j);
-_cmp64ul:			! int cmp64ul(u64_t i, unsigned long j);
-	mov	ecx, esp
-	push	16(ecx)
-	mov	16(ecx), 0
-	call	cmp64
-	pop	16(ecx)
-	ret
-
-!
-! $PchId: cmp64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/cv64u.s
===================================================================
--- trunk/minix/lib/i386/int64/cv64u.s	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-!	cv64u() - 64 bit converted to unsigned		Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _cv64u, _cv64ul
-
-_cv64u:				! unsigned cv64u(u64_t i);
-_cv64ul:			! unsigned long cv64ul(u64_t i);
-	mov	eax, 4(esp)
-	cmp	8(esp), 0		! return ULONG_MAX if really big
-	jz	0f
-	mov	eax, -1
-0:	ret
-
-!
-! $PchId: cv64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/cvu64.s
===================================================================
--- trunk/minix/lib/i386/int64/cvu64.s	(revision 9)
+++ 	(revision )
@@ -1,15 +1,0 @@
-!	cvu64() - unsigned converted to 64 bit		Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _cvu64, _cvul64
-
-_cvu64:				! u64_t cvu64(unsigned i);
-_cvul64:			! u64_t cvul64(unsigned long i);
-	mov	eax, 4(esp)
-	mov	edx, 8(esp)
-	mov	(eax), edx
-	mov	4(eax), 0
-	ret
-
-!
-! $PchId: cvu64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/diff64.s
===================================================================
--- trunk/minix/lib/i386/int64/diff64.s	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-!	diff64() - 64 bit subtraction giving unsigned 	Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _diff64
-
-_diff64:			! unsigned diff64(u64_t i, u64_t j);
-	mov	eax, 4(esp)
-	sub	eax, 12(esp)
-	ret
-
-!
-! $PchId: diff64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/div64u.s
===================================================================
--- trunk/minix/lib/i386/int64/div64u.s	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-!	div64u() - 64 bit divided by unsigned giving unsigned long
-!							Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _div64u, _rem64u
-
-_div64u:			! unsigned long div64u(u64_t i, unsigned j);
-	xor	edx, edx
-	mov	eax, 8(esp)		! i = (ih<<32) + il
-	div	12(esp)			! ih = q * j + r
-	mov	eax, 4(esp)
-	div	12(esp)			! i / j = (q<<32) + ((r<<32) + il) / j
-	ret
-
-_rem64u:			! unsigned rem64u(u64_t i, unsigned j);
-	pop	ecx
-	call	_div64u
-	mov	eax, edx
-	jmp	ecx
-
-!
-! $PchId: div64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/ex64.s
===================================================================
--- trunk/minix/lib/i386/int64/ex64.s	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-!	ex64*() - extract low or high 32 bits of a 64 bit number
-!							Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _ex64lo, _ex64hi
-
-_ex64lo:			! unsigned long ex64lo(u64_t i);
-	mov	eax, 4(esp)
-	ret
-
-_ex64hi:			! unsigned long ex64hi(u64_t i);
-	mov	eax, 8(esp)
-	ret
-
-!
-! $PchId: ex64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/make64.s
===================================================================
--- trunk/minix/lib/i386/int64/make64.s	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-!	make64() - make a 64 bit number from two 32 bit halves
-!							Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _make64
-
-_make64:		    ! u64_t make64(unsigned long lo, unsigned long hi);
-	mov	eax, 4(esp)
-	mov	edx, 8(esp)
-	mov	(eax), edx
-	mov	edx, 12(esp)
-	mov	4(eax), edx
-	ret
-
-!
-! $PchId: make64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/mul64u.s
===================================================================
--- trunk/minix/lib/i386/int64/mul64u.s	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-!	mul64u() - unsigned long by unsigned multiply giving 64 bit result
-!							Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _mul64u
-
-_mul64u:			! u64_t mul64u(unsigned long i, unsigned j);
-	mov	ecx, 4(esp)
-	mov	eax, 8(esp)
-	mul	12(esp)
-	mov	(ecx), eax
-	mov	4(ecx), edx
-	mov	eax, ecx
-	ret
-
-!
-! $PchId: mul64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/sub64.s
===================================================================
--- trunk/minix/lib/i386/int64/sub64.s	(revision 9)
+++ 	(revision )
@@ -1,17 +1,0 @@
-!	sub64() - 64 bit subtraction			Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _sub64
-
-_sub64:				! u64_t sub64(u64_t i, u64_t j);
-	mov	eax, 4(esp)
-	mov	edx, 8(esp)
-	sub	edx, 16(esp)
-	mov	(eax), edx
-	mov	edx, 12(esp)
-	sbb	edx, 20(esp)
-	mov	4(eax), edx
-	ret
-
-!
-! $PchId: sub64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/int64/sub64u.s
===================================================================
--- trunk/minix/lib/i386/int64/sub64u.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-!	sub64() - unsigned from 64 bit subtraction	Author: Kees J. Bot
-!								7 Dec 1995
-.sect .text
-.define _sub64u, _sub64ul
-
-_sub64u:			! u64_t sub64u(u64_t i, unsigned j);
-_sub64ul:			! u64_t sub64ul(u64_t i, unsigned long j);
-	mov	eax, 4(esp)
-	mov	edx, 8(esp)
-	sub	edx, 16(esp)
-	mov	(eax), edx
-	mov	edx, 12(esp)
-	sbb	edx, 0
-	mov	4(eax), edx
-	ret
-
-!
-! $PchId: sub64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $
Index: trunk/minix/lib/i386/misc/Makedepend-ack
===================================================================
--- trunk/minix/lib/i386/misc/Makedepend-ack	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-depend-ack:
-	rm .depend-ack
-	touch .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' alloca.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' get_bp.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' getprocessor.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_inb.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_inl.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_insb.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_insl.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_insw.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_intr.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_inw.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_outb.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_outl.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_outsb.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_outsl.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_outsw.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' io_outw.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' oneC_sum.s | sed -e 's:^\(.\):../../obj-ack//./i386/misc/\1:' >> .depend-ack
Index: trunk/minix/lib/i386/misc/Makedepend-gnu
===================================================================
--- trunk/minix/lib/i386/misc/Makedepend-gnu	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-depend-gnu:
-	rm .depend-gnu
-	touch .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' alloca.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' get_bp.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' getprocessor.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_inb.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_inl.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_insb.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_insl.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_insw.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_intr.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_inw.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_outb.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_outl.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_outsb.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_outsl.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_outsw.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' io_outw.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' oneC_sum.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/misc/\1:' >> .depend-gnu
Index: trunk/minix/lib/i386/misc/Makefile
===================================================================
--- trunk/minix/lib/i386/misc/Makefile	(revision 9)
+++ 	(revision )
@@ -1,181 +1,0 @@
-#Generated from ./i386/misc/Makefile.in
-all: all-ack
-
-all-ack:
-all-gnu:
-
-makefiles: Makefile
-Makedepend-ack Makedepend-gnu: 
-	sh ../../generate.sh ./i386/misc ../../obj-ack/ ../../obj-gnu
-
-Makefile: Makefile.in Makedepend-ack Makedepend-gnu
-	sh ../../generate.sh ./i386/misc ../../obj-ack/ ../../obj-gnu
-	@echo
-	@echo *Attention*
-	@echo Makefile is regenerated... rerun command to see changes
-	@echo *Attention*
-	@echo
-
-depend: depend-ack
-all-ack: ../../obj-ack//libc.a
-
-../../obj-ack//libc.a: ../../obj-ack//libc.a(alloca.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(get_bp.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(getprocessor.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_inb.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_inl.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_insb.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_insl.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_insw.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_intr.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_inw.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_outb.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_outl.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_outsb.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_outsl.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_outsw.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(io_outw.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(oneC_sum.o)
-
-../../obj-ack//libc.a:
-	ar cr ../../obj-ack//libc.a ../../obj-ack//./i386/misc/*.o
-	rm ../../obj-ack//./i386/misc/*.o
-
-../../obj-ack//libc.a(alloca.o): alloca.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/alloca.o alloca.s
-../../obj-ack//libc.a(get_bp.o): get_bp.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/get_bp.o get_bp.s
-../../obj-ack//libc.a(getprocessor.o): getprocessor.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/getprocessor.o getprocessor.s
-../../obj-ack//libc.a(io_inb.o): io_inb.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_inb.o io_inb.s
-../../obj-ack//libc.a(io_inl.o): io_inl.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_inl.o io_inl.s
-../../obj-ack//libc.a(io_insb.o): io_insb.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_insb.o io_insb.s
-../../obj-ack//libc.a(io_insl.o): io_insl.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_insl.o io_insl.s
-../../obj-ack//libc.a(io_insw.o): io_insw.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_insw.o io_insw.s
-../../obj-ack//libc.a(io_intr.o): io_intr.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_intr.o io_intr.s
-../../obj-ack//libc.a(io_inw.o): io_inw.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_inw.o io_inw.s
-../../obj-ack//libc.a(io_outb.o): io_outb.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_outb.o io_outb.s
-../../obj-ack//libc.a(io_outl.o): io_outl.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_outl.o io_outl.s
-../../obj-ack//libc.a(io_outsb.o): io_outsb.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_outsb.o io_outsb.s
-../../obj-ack//libc.a(io_outsl.o): io_outsl.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_outsl.o io_outsl.s
-../../obj-ack//libc.a(io_outsw.o): io_outsw.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_outsw.o io_outsw.s
-../../obj-ack//libc.a(io_outw.o): io_outw.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/io_outw.o io_outw.s
-../../obj-ack//libc.a(oneC_sum.o): oneC_sum.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/misc/oneC_sum.o oneC_sum.s
-
-all-gnu: ../../obj-gnu/libc.a
-
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/alloca.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/get_bp.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/getprocessor.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_inb.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_inl.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_insb.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_insl.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_insw.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_intr.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_inw.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_outb.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_outl.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_outsb.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_outsl.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_outsw.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/io_outw.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/misc/oneC_sum.o
-
-../../obj-gnu/libc.a:
-	gar cr ../../obj-gnu/libc.a $?
-
-../../obj-gnu/./i386/misc/alloca.o: alloca.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. alloca.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/alloca.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/alloca.o ../../obj-gnu/./i386/misc/alloca.s.gnu
-
-../../obj-gnu/./i386/misc/get_bp.o: get_bp.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. get_bp.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/get_bp.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/get_bp.o ../../obj-gnu/./i386/misc/get_bp.s.gnu
-
-../../obj-gnu/./i386/misc/getprocessor.o: getprocessor.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. getprocessor.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/getprocessor.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/getprocessor.o ../../obj-gnu/./i386/misc/getprocessor.s.gnu
-
-../../obj-gnu/./i386/misc/io_inb.o: io_inb.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_inb.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_inb.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_inb.o ../../obj-gnu/./i386/misc/io_inb.s.gnu
-
-../../obj-gnu/./i386/misc/io_inl.o: io_inl.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_inl.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_inl.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_inl.o ../../obj-gnu/./i386/misc/io_inl.s.gnu
-
-../../obj-gnu/./i386/misc/io_insb.o: io_insb.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_insb.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_insb.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_insb.o ../../obj-gnu/./i386/misc/io_insb.s.gnu
-
-../../obj-gnu/./i386/misc/io_insl.o: io_insl.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_insl.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_insl.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_insl.o ../../obj-gnu/./i386/misc/io_insl.s.gnu
-
-../../obj-gnu/./i386/misc/io_insw.o: io_insw.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_insw.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_insw.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_insw.o ../../obj-gnu/./i386/misc/io_insw.s.gnu
-
-../../obj-gnu/./i386/misc/io_intr.o: io_intr.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_intr.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_intr.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_intr.o ../../obj-gnu/./i386/misc/io_intr.s.gnu
-
-../../obj-gnu/./i386/misc/io_inw.o: io_inw.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_inw.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_inw.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_inw.o ../../obj-gnu/./i386/misc/io_inw.s.gnu
-
-../../obj-gnu/./i386/misc/io_outb.o: io_outb.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_outb.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_outb.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_outb.o ../../obj-gnu/./i386/misc/io_outb.s.gnu
-
-../../obj-gnu/./i386/misc/io_outl.o: io_outl.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_outl.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_outl.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_outl.o ../../obj-gnu/./i386/misc/io_outl.s.gnu
-
-../../obj-gnu/./i386/misc/io_outsb.o: io_outsb.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_outsb.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_outsb.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_outsb.o ../../obj-gnu/./i386/misc/io_outsb.s.gnu
-
-../../obj-gnu/./i386/misc/io_outsl.o: io_outsl.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_outsl.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_outsl.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_outsl.o ../../obj-gnu/./i386/misc/io_outsl.s.gnu
-
-../../obj-gnu/./i386/misc/io_outsw.o: io_outsw.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_outsw.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_outsw.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_outsw.o ../../obj-gnu/./i386/misc/io_outsw.s.gnu
-
-../../obj-gnu/./i386/misc/io_outw.o: io_outw.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. io_outw.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/io_outw.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/io_outw.o ../../obj-gnu/./i386/misc/io_outw.s.gnu
-
-../../obj-gnu/./i386/misc/oneC_sum.o: oneC_sum.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. oneC_sum.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/misc/oneC_sum.s.gnu || true
-	gas -o ../../obj-gnu/./i386/misc/oneC_sum.o ../../obj-gnu/./i386/misc/oneC_sum.s.gnu
-
-
-
-
-clean::
-	rm -f ../../obj-ack//./i386/misc/*
-	rm -f ../../obj-gnu/./i386/misc/*
-
-include Makedepend-ack
-include .depend-ack
-
-include Makedepend-gnu
-include .depend-gnu
Index: trunk/minix/lib/i386/misc/Makefile.in
===================================================================
--- trunk/minix/lib/i386/misc/Makefile.in	(revision 9)
+++ 	(revision )
@@ -1,26 +1,0 @@
-# Makefile for lib/i386/misc.
-
-CFLAGS="-O -D_MINIX -D_POSIX_SOURCE"
-
-LIBRARIES=libc
-
-libc_FILES=" \
-	alloca.s \
-	get_bp.s \
-	getprocessor.s \
-	io_inb.s \
-	io_inl.s \
-	io_insb.s \
-	io_insl.s \
-	io_insw.s \
-	io_intr.s \
-	io_inw.s \
-	io_outb.s \
-	io_outl.s \
-	io_outsb.s \
-	io_outsl.s \
-	io_outsw.s \
-	io_outw.s \
-	oneC_sum.s"
-
-TYPE=both
Index: trunk/minix/lib/i386/misc/alloca.s
===================================================================
--- trunk/minix/lib/i386/misc/alloca.s	(revision 9)
+++ 	(revision )
@@ -1,33 +1,0 @@
-#
-!	alloca() - allocate space on the stack		Author: Kees J. Bot
-!								2 Dec 1993
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-.sect .text
-	.align	16
-.define _alloca
-_alloca:
-#if __ACK__
-	pop	ecx		! Return address
-	pop	eax		! Bytes to allocate
-	add	eax, 2*4+3	! Add space for two saved register variables
-	andb	al, 0xFC	! Align
-	mov	ebx, esp	! Keep current esp
-	sub	esp, eax	! Lower stack
-	mov	eax, esp	! Return value
-	push	4(ebx)		! Push what is probably the saved esi
-	push	(ebx)		! Saved edi
-				! Now ACK can still do:
-				!	pop edi; pop esi; leave; ret
-	push	eax		! Dummy argument
-	jmp	ecx
-#else
-	pop	ecx		! Return address
-	pop	eax		! Bytes to allocate
-	add	eax, 3
-	andb	al, 0xFC	! Align
-	sub	esp, eax	! Lower stack
-	mov	eax, esp	! Return value
-	push	eax		! Dummy argument
-	jmp	ecx
-#endif
Index: trunk/minix/lib/i386/misc/get_bp.s
===================================================================
--- trunk/minix/lib/i386/misc/get_bp.s	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-! get_bp.s
-!
-! return EBP in EAX
-!
-! Created:	Sep 7, 1992 by Philip Homburg
-
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-.sect .text
-.define _get_bp
-_get_bp:
-	mov	eax, ebp
-	ret
-
-! $PchId: get_bp.ack.s,v 1.3 1996/02/23 08:30:52 philip Exp $
-
Index: trunk/minix/lib/i386/misc/getprocessor.s
===================================================================
--- trunk/minix/lib/i386/misc/getprocessor.s	(revision 9)
+++ 	(revision )
@@ -1,56 +1,0 @@
-!	getprocessor() - determine processor type	Author: Kees J. Bot
-!								26 Jan 1994
-
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-
-! int getprocessor(void);
-!	Return 386, 486, 586, ...
-
-.define	_getprocessor
-
-_getprocessor:
-	push	ebp
-	mov	ebp, esp
-	and	esp, 0xFFFFFFFC	! Align stack to avoid AC fault
-	mov	ecx, 0x00040000	! Try to flip the AC bit introduced on the 486
-	call	flip
-	mov	eax, 386	! 386 if it didn't react to "flipping"
-	jz	gotprocessor
-	mov	ecx, 0x00200000	! Try to flip the ID bit introduced on the 586
-	call	flip
-	mov	eax, 486	! 486 if it didn't react
-	jz	gotprocessor
-	pushf
-	pusha			! Save the world
-	mov	eax, 1
-	.data1	0x0F, 0xA2	! CPUID instruction tells the processor type
-	andb	ah, 0x0F	! Extract the family (5, 6, ...)
-	movzxb	eax, ah
-	cmp	eax, 15		! 15: extended family
-	jne	direct
-	mov	eax, 6		! Make it 686
-direct:
-	imul	eax, 100	! 500, 600, ...
-	add	eax, 86		! 586, 686, ...
-	mov	7*4(esp), eax	! Pass eax through
-	popa
-	popf
-gotprocessor:
-	leave
-	ret
-
-flip:
-	pushf			! Push eflags
-	pop	eax		! eax = eflags
-	mov	edx, eax	! Save original eflags
-	xor	eax, ecx	! Flip the bit to test
-	push	eax		! Push modified eflags value
-	popf			! Load modified eflags register
-	pushf
-	pop	eax		! Get it again
-	push	edx
-	popf			! Restore original eflags register
-	xor	eax, edx	! See if the bit changed
-	test	eax, ecx
-	ret
Index: trunk/minix/lib/i386/misc/io_inb.s
===================================================================
--- trunk/minix/lib/i386/misc/io_inb.s	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-!	inb() - Input one byte				Author: Kees J. Bot
-!								18 Mar 1996
-!	unsigned inb(U16_t port);
-
-.sect .text
-.define _inb
-_inb:
-	push	ebp
-	mov	ebp, esp
-	mov	edx, 8(ebp)		! port
-	xor	eax, eax
-	inb	dx			! read 1 byte
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_inl.s
===================================================================
--- trunk/minix/lib/i386/misc/io_inl.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	inl() - Input one dword				Author: Kees J. Bot
-!								18 Mar 1996
-!	unsigned inl(U16_t port);
-
-.sect .text
-.define _inl
-_inl:
-	push	ebp
-	mov	ebp, esp
-	mov	edx, 8(ebp)		! port
-	in	dx			! read 1 dword
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_insb.s
===================================================================
--- trunk/minix/lib/i386/misc/io_insb.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-!	insb() - Input a byte array			Author: Kees J. Bot
-!								18 Mar 1996
-!	void insb(U16_t port, void *buf, size_t count);
-
-.sect .text
-.define _insb
-_insb:
-	push	ebp
-	mov	ebp, esp
-	cld
-	push	edi
-	mov	edx, 8(ebp)		! port
-	mov	edi, 12(ebp)		! buf
-	mov	ecx, 16(ebp)		! byte count
-   rep	insb				! input many bytes
-	pop	edi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_insl.s
===================================================================
--- trunk/minix/lib/i386/misc/io_insl.s	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-!	insl() - Input a dword array			Author: Kees J. Bot
-!								18 Mar 1996
-!	void insl(U16_t port, void *buf, size_t count);
-
-.sect .text
-.define _insl
-_insl:
-	push	ebp
-	mov	ebp, esp
-	cld
-	push	edi
-	mov	edx, 8(ebp)		! port
-	mov	edi, 12(ebp)		! buf
-	mov	ecx, 16(ebp)		! byte count
-	shr	ecx, 2			! dword count
-   rep	ins				! input many dwords
-	pop	edi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_insw.s
===================================================================
--- trunk/minix/lib/i386/misc/io_insw.s	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-!	insw() - Input a word array			Author: Kees J. Bot
-!								18 Mar 1996
-!	void insw(U16_t port, void *buf, size_t count);
-
-.sect .text
-.define _insw
-_insw:
-	push	ebp
-	mov	ebp, esp
-	cld
-	push	edi
-	mov	edx, 8(ebp)		! port
-	mov	edi, 12(ebp)		! buf
-	mov	ecx, 16(ebp)		! byte count
-	shr	ecx, 1			! word count
-rep o16	ins				! input many words
-	pop	edi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_intr.s
===================================================================
--- trunk/minix/lib/i386/misc/io_intr.s	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-!	intr_disable(), intr_enable - Disable/Enable hardware interrupts.
-!							Author: Kees J. Bot
-!								18 Mar 1996
-!	void intr_disable(void);
-!	void intr_enable(void);
-
-.sect .text
-.define _intr_disable
-_intr_disable:
-	cli
-	ret
-
-.define _intr_enable
-_intr_enable:
-	sti
-	ret
Index: trunk/minix/lib/i386/misc/io_inw.s
===================================================================
--- trunk/minix/lib/i386/misc/io_inw.s	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-!	inw() - Input one word				Author: Kees J. Bot
-!								18 Mar 1996
-!	unsigned inw(U16_t port);
-
-.sect .text
-.define _inw
-_inw:
-	push	ebp
-	mov	ebp, esp
-	mov	edx, 8(ebp)		! port
-	xor	eax, eax
-    o16	in	dx			! read 1 word
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_outb.s
===================================================================
--- trunk/minix/lib/i386/misc/io_outb.s	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-!	outb() - Output one byte			Author: Kees J. Bot
-!								18 Mar 1996
-!	void outb(U16_t port, U8_t value);
-
-.sect .text
-.define _outb
-_outb:
-	push	ebp
-	mov	ebp, esp
-	mov	edx, 8(ebp)		! port
-	mov	eax, 8+4(ebp)		! value
-	outb	dx			! output 1 byte
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_outl.s
===================================================================
--- trunk/minix/lib/i386/misc/io_outl.s	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-!	outl() - Output one dword			Author: Kees J. Bot
-!								18 Mar 1996
-!	void outl(U16_t port, u32_t value);
-
-.sect .text
-.define _outl
-_outl:
-	push	ebp
-	mov	ebp, esp
-	mov	edx, 8(ebp)		! port
-	mov	eax, 8+4(ebp)		! value
-	out	dx			! output 1 dword
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_outsb.s
===================================================================
--- trunk/minix/lib/i386/misc/io_outsb.s	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-!	outsb() - Output a byte array		Author: Kees J. Bot
-!								18 Mar 1996
-!	void outsb(U16_t port, void *buf, size_t count);
-
-.sect .text
-.define _outsb
-_outsb:
-	push	ebp
-	mov	ebp, esp
-	cld
-	push	esi
-	mov	edx, 8(ebp)		! port
-	mov	esi, 12(ebp)		! buf
-	mov	ecx, 16(ebp)		! byte count
-   rep	outsb				! output many bytes
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_outsl.s
===================================================================
--- trunk/minix/lib/i386/misc/io_outsl.s	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-!	outsl() - Output a dword array		Author: Kees J. Bot
-!								18 Mar 1996
-!	void outsl(U16_t port, void *buf, size_t count);
-
-.sect .text
-.define _outsl
-_outsl:
-	push	ebp
-	mov	ebp, esp
-	cld
-	push	esi
-	mov	edx, 8(ebp)		! port
-	mov	esi, 12(ebp)		! buf
-	mov	ecx, 16(ebp)		! byte count
-	shr	ecx, 2			! dword count
-   rep	outs				! output many dwords
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_outsw.s
===================================================================
--- trunk/minix/lib/i386/misc/io_outsw.s	(revision 9)
+++ 	(revision )
@@ -1,19 +1,0 @@
-!	outsw() - Output a word array		Author: Kees J. Bot
-!								18 Mar 1996
-!	void outsw(U16_t port, void *buf, size_t count);
-
-.sect .text
-.define _outsw
-_outsw:
-	push	ebp
-	mov	ebp, esp
-	cld
-	push	esi
-	mov	edx, 8(ebp)		! port
-	mov	esi, 12(ebp)		! buf
-	mov	ecx, 16(ebp)		! byte count
-	shr	ecx, 1			! word count
-rep o16	outs				! output many words
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/io_outw.s
===================================================================
--- trunk/minix/lib/i386/misc/io_outw.s	(revision 9)
+++ 	(revision )
@@ -1,14 +1,0 @@
-!	outw() - Output one word			Author: Kees J. Bot
-!								18 Mar 1996
-!	void outw(U16_t port, U16_t value);
-
-.sect .text
-.define _outw
-_outw:
-	push	ebp
-	mov	ebp, esp
-	mov	edx, 8(ebp)		! port
-	mov	eax, 8+4(ebp)		! value
-    o16	out	dx			! output 1 word
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/misc/oneC_sum.s
===================================================================
--- trunk/minix/lib/i386/misc/oneC_sum.s	(revision 9)
+++ 	(revision )
@@ -1,80 +1,0 @@
-!	oneC_sum() - One complement`s checksum		Author: Kees J. Bot
-!								9 May 1995
-! See RFC 1071, "Computing the Internet checksum"
-! See also the C version of this code.
-
-.sect .text
-
-.define _oneC_sum
-	.align	16
-_oneC_sum:
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	movzx	eax, 8(ebp)		! Checksum of previous block
-	mov	esi, 12(ebp)		! Data to compute checksum over
-	mov	edi, 16(ebp)		! Number of bytes
-
-	xor	edx, edx
-	xorb	cl, cl
-align:	test	esi, 3			! Is the data aligned?
-	jz	aligned
-	test	edi, edi
-	jz	0f
-	movb	dl, (esi)		! Rotate the first unaligned bytes
-	dec	edi			! into the edx register
-0:	inc	esi
-	ror	edx, 8
-	ror	eax, 8			! Rotate the checksum likewise
-	addb	cl, 8			! Number of bits rotated
-	jmp	align
-aligned:add	eax, edx		! Summate the unaligned bytes
-	adc	eax, 0			! Add carry back in for one`s complement
-
-	jmp	add6test
-	.align	16
-add6:	add	eax, (esi)		! Six times unrolled loop, see below
-	adc	eax, 4(esi)
-	adc	eax, 8(esi)
-	adc	eax, 12(esi)
-	adc	eax, 16(esi)
-	adc	eax, 20(esi)
-	adc	eax, 0
-	add	esi, 24
-add6test:
-	sub	edi, 24
-	jae	add6
-	add	edi, 24
-
-	jmp	add1test
-	.align	16
-add1:	add	eax, (esi)		! while ((edi -= 4) >= 0)
-	adc	eax, 0			!	eax += *esi++;
-	add	esi, 4			! edi += 4;
-add1test:
-	sub	edi, 4
-	jae	add1
-	add	edi, 4
-
-	jz	done			! Are there extra bytes?
-	mov	edx, (esi)		! Load extra bytes in a full dword
-	and	edx, mask-4(edi*4)	! Mask off excess
-	add	eax, edx		! Add in the last bits
-	adc	eax, 0
-done:	rol	eax, cl			! Undo the rotation at the beginning
-	mov	edx, eax
-	shr	eax, 16
-  o16	add	ax, dx			! Add the two words in eax to form
-  o16	adc	ax, 0			! a 16 bit sum
-	pop	edi
-	pop	esi
-	pop	ebp
-	ret
-
-.sect .rom
-	.align	4
-mask:	.data4	0x000000FF, 0x0000FFFF, 0x00FFFFFF
-
-!
-! $PchId: oneC_sum.ack.s,v 1.2 1996/03/12 19:33:51 philip Exp $
Index: trunk/minix/lib/i386/rts/Makedepend-ack
===================================================================
--- trunk/minix/lib/i386/rts/Makedepend-ack	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-depend-ack:
-	rm .depend-ack
-	touch .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' __sigreturn.s | sed -e 's:^\(.\):../../obj-ack//./i386/rts/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _ipc.s | sed -e 's:^\(.\):../../obj-ack//./i386/rts/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' _ipcnew.s | sed -e 's:^\(.\):../../obj-ack//./i386/rts/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' brksize.s | sed -e 's:^\(.\):../../obj-ack//./i386/rts/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' crtso.s | sed -e 's:^\(.\):../../obj-ack/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' m2rtso.s | sed -e 's:^\(.\):../../obj-ack/\1:' >> .depend-ack
-	mkdep 'cc -O -D_MINIX -D_POSIX_SOURCE -E' prtso.s | sed -e 's:^\(.\):../../obj-ack/\1:' >> .depend-ack
Index: trunk/minix/lib/i386/rts/Makedepend-gnu
===================================================================
--- trunk/minix/lib/i386/rts/Makedepend-gnu	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-depend-gnu:
-	rm .depend-gnu
-	touch .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' __sigreturn.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/rts/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' _ipc.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/rts/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' _ipcnew.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/rts/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' brksize.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/rts/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' crtso.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' m2rtso.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/\1:' >> .depend-gnu
-	mkdep 'gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I.' prtso.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/\1:' >> .depend-gnu
Index: trunk/minix/lib/i386/rts/Makefile
===================================================================
--- trunk/minix/lib/i386/rts/Makefile	(revision 9)
+++ 	(revision )
@@ -1,113 +1,0 @@
-#Generated from ./i386/rts/Makefile.in
-all: all-ack
-
-all-ack:
-all-gnu:
-
-makefiles: Makefile
-Makedepend-ack Makedepend-gnu: 
-	sh ../../generate.sh ./i386/rts ../../obj-ack/ ../../obj-gnu
-
-Makefile: Makefile.in Makedepend-ack Makedepend-gnu
-	sh ../../generate.sh ./i386/rts ../../obj-ack/ ../../obj-gnu
-	@echo
-	@echo *Attention*
-	@echo Makefile is regenerated... rerun command to see changes
-	@echo *Attention*
-	@echo
-
-depend: depend-ack
-all-ack: ../../obj-ack//libc.a
-
-../../obj-ack//libc.a: ../../obj-ack//libc.a(__sigreturn.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(_ipc.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(_ipcnew.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(brksize.o)
-
-../../obj-ack//libc.a:
-	ar cr ../../obj-ack//libc.a ../../obj-ack//./i386/rts/*.o
-	rm ../../obj-ack//./i386/rts/*.o
-
-../../obj-ack//libc.a(__sigreturn.o): __sigreturn.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/rts/__sigreturn.o __sigreturn.s
-../../obj-ack//libc.a(_ipc.o): _ipc.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/rts/_ipc.o _ipc.s
-../../obj-ack//libc.a(_ipcnew.o): _ipcnew.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/rts/_ipcnew.o _ipcnew.s
-../../obj-ack//libc.a(brksize.o): brksize.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//./i386/rts/brksize.o brksize.s
-
-all-gnu: ../../obj-gnu/libc.a
-
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/rts/__sigreturn.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/rts/_ipc.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/rts/_ipcnew.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/rts/brksize.o
-
-../../obj-gnu/libc.a:
-	gar cr ../../obj-gnu/libc.a $?
-
-../../obj-gnu/./i386/rts/__sigreturn.o: __sigreturn.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. __sigreturn.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/rts/__sigreturn.s.gnu || true
-	gas -o ../../obj-gnu/./i386/rts/__sigreturn.o ../../obj-gnu/./i386/rts/__sigreturn.s.gnu
-
-../../obj-gnu/./i386/rts/_ipc.o: _ipc.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. _ipc.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/rts/_ipc.s.gnu || true
-	gas -o ../../obj-gnu/./i386/rts/_ipc.o ../../obj-gnu/./i386/rts/_ipc.s.gnu
-
-../../obj-gnu/./i386/rts/_ipcnew.o: _ipcnew.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. _ipcnew.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/rts/_ipcnew.s.gnu || true
-	gas -o ../../obj-gnu/./i386/rts/_ipcnew.o ../../obj-gnu/./i386/rts/_ipcnew.s.gnu
-
-../../obj-gnu/./i386/rts/brksize.o: brksize.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. brksize.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/rts/brksize.s.gnu || true
-	gas -o ../../obj-gnu/./i386/rts/brksize.o ../../obj-gnu/./i386/rts/brksize.s.gnu
-
-
-
-all-ack: ../../obj-ack//crtso.o
-
-../../obj-ack//crtso.o: crtso.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//crtso.o crtso.s
-
-all-gnu: ../../obj-gnu/crtso.o
-
-../../obj-gnu/crtso.o: crtso.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. crtso.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/rts/crtso.s.gnu || true
-	gas -o ../../obj-gnu/crtso.o ../../obj-gnu/./i386/rts/crtso.s.gnu
-
-
-all-ack: ../../obj-ack//m2rtso.o
-
-../../obj-ack//m2rtso.o: m2rtso.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//m2rtso.o m2rtso.s
-
-all-gnu: ../../obj-gnu/m2rtso.o
-
-../../obj-gnu/m2rtso.o: m2rtso.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. m2rtso.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/rts/m2rtso.s.gnu || true
-	gas -o ../../obj-gnu/m2rtso.o ../../obj-gnu/./i386/rts/m2rtso.s.gnu
-
-
-all-ack: ../../obj-ack//prtso.o
-
-../../obj-ack//prtso.o: prtso.s
-	cc -O -D_MINIX -D_POSIX_SOURCE -c -o ../../obj-ack//prtso.o prtso.s
-
-all-gnu: ../../obj-gnu/prtso.o
-
-../../obj-gnu/prtso.o: prtso.s
-	gcc -O -D_MINIX -D_POSIX_SOURCE -E -x assembler-with-cpp -I. prtso.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/rts/prtso.s.gnu || true
-	gas -o ../../obj-gnu/prtso.o ../../obj-gnu/./i386/rts/prtso.s.gnu
-
-
-
-clean::
-	rm -f ../../obj-ack//./i386/rts/*
-	rm -f ../../obj-gnu/./i386/rts/*
-
-include Makedepend-ack
-include .depend-ack
-
-include Makedepend-gnu
-include .depend-gnu
Index: trunk/minix/lib/i386/rts/Makefile.in
===================================================================
--- trunk/minix/lib/i386/rts/Makefile.in	(revision 9)
+++ 	(revision )
@@ -1,18 +1,0 @@
-# Makefile for lib/i386/rts.
-
-CFLAGS="-O -D_MINIX -D_POSIX_SOURCE"
-
-LIBRARIES=libc
-
-libc_FILES=" \
-	__sigreturn.s \
-	_ipc.s \
-	_ipcnew.s \
-	brksize.s"
-	
-STARTFILES="\
-	crtso.s \
-	m2rtso.s \
-	prtso.s"
-
-TYPE=both
Index: trunk/minix/lib/i386/rts/__sigreturn.s
===================================================================
--- trunk/minix/lib/i386/rts/__sigreturn.s	(revision 9)
+++ 	(revision )
@@ -1,10 +1,0 @@
-! This routine is the low-level code for returning from signals.  
-! It calls __sigreturn, which is the normal "system call" routine.
-! Both ___sigreturn and __sigreturn are needed.
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.sect .text
-.define ___sigreturn
-.extern __sigreturn
-___sigreturn:
-	add esp, 16
-	jmp __sigreturn
Index: trunk/minix/lib/i386/rts/_ipc.s
===================================================================
--- trunk/minix/lib/i386/rts/_ipc.s	(revision 9)
+++ 	(revision )
@@ -1,79 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define __echo, __notify, __send, __receive, __sendrec 
-
-! See src/kernel/ipc.h for C definitions
-SEND = 1
-RECEIVE = 2
-SENDREC = 3 
-NOTIFY = 4
-ECHO = 8
-SYSVEC = 33			! trap to kernel 
-
-SRC_DST = 8			! source/ destination process 
-ECHO_MESS = 8			! echo doesn't have SRC_DST 
-MESSAGE = 12			! message pointer 
-
-!*========================================================================*
-!                           IPC assembly routines			  *
-!*========================================================================*
-! all message passing routines save ebp, but destroy eax and ecx.
-.define __echo, __notify, __send, __receive, __sendrec 
-.sect .text
-__send:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! eax = dest-src
-	mov	ebx, MESSAGE(ebp)	! ebx = message pointer
-	mov	ecx, SEND		! _send(dest, ptr)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-__receive:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! eax = dest-src
-	mov	ebx, MESSAGE(ebp)	! ebx = message pointer
-	mov	ecx, RECEIVE		! _receive(src, ptr)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-__sendrec:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! eax = dest-src
-	mov	ebx, MESSAGE(ebp)	! ebx = message pointer
-	mov	ecx, SENDREC		! _sendrec(srcdest, ptr)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-__notify:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! ebx = destination 
-	mov	ecx, NOTIFY		! _notify(srcdst)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-__echo:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	ebx, ECHO_MESS(ebp)	! ebx = message pointer
-	mov	ecx, ECHO		! _echo(srcdest, ptr)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
Index: trunk/minix/lib/i386/rts/_ipcnew.s
===================================================================
--- trunk/minix/lib/i386/rts/_ipcnew.s	(revision 9)
+++ 	(revision )
@@ -1,75 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define __ipc_request, __ipc_reply, __ipc_notify, __ipc_receive
-
-! See src/kernel/ipc.h for C definitions.
-IPC_REQUEST = 16		! each gets a distinct bit
-IPC_REPLY = 32
-IPC_NOTIFY = 64
-IPC_RECEIVE = 128
-
-SYSVEC = 33			! trap to kernel 
-
-! Offsets of arguments relative to stack pointer.
-SRC_DST = 8			! source/ destination process 
-SEND_MSG = 12			! message pointer for sending 
-EVENT_SET = 12			! notification event set 
-RECV_MSG = 16			! message pointer for receiving 
-
-
-!*========================================================================*
-!                           IPC assembly routines			  *
-!*========================================================================*
-! all message passing routines save ebp, but destroy eax, ecx, and edx.
-.define __ipc_request, __ipc_reply, __ipc_notify, __ipc_receive
-.sect .text
-
-__ipc_request:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! eax = destination
-	mov	ebx, SEND_MSG(ebp)	! ebx = message pointer
-	mov	ecx, IPC_REQUEST	! _ipc_request(dst, ptr)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-__ipc_reply:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! eax = destination
-	mov	ebx, SEND_MSG(ebp)	! ebx = message pointer
-	mov	ecx, IPC_REPLY		! _ipc_reply(dst, ptr)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-__ipc_receive:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! eax = source
-	mov	edx, EVENT_SET(ebp)	! ebx = event set
-	mov	ebx, RCV_MSG(ebp)	! ebx = message pointer
-	mov	ecx, IPC_RECEIVE	! _ipc_receive(src, events, ptr)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-__ipc_notify:
-	push	ebp
-	mov	ebp, esp
-	push	ebx
-	mov	eax, SRC_DST(ebp)	! ebx = destination 
-	mov	edx, EVENT_SET(ebp)	! edx = event set 
-	mov	ecx, IPC_NOTIFY		! _ipc_notify(dst, events)
-	int	SYSVEC			! trap to the kernel
-	pop	ebx
-	pop	ebp
-	ret
-
-
Index: trunk/minix/lib/i386/rts/brksize.s
===================================================================
--- trunk/minix/lib/i386/rts/brksize.s	(revision 9)
+++ 	(revision )
@@ -1,5 +1,0 @@
-.sect .text; .sect .rom; .sect .data; .sect .bss
-.define __brksize
-.sect .data
-.extern endbss, __brksize
-__brksize: .data4 endbss
Index: trunk/minix/lib/i386/rts/crtso.s
===================================================================
--- trunk/minix/lib/i386/rts/crtso.s	(revision 9)
+++ 	(revision )
@@ -1,72 +1,0 @@
-! This is the C run-time start-off routine.  It's job is to take the
-! arguments as put on the stack by EXEC, and to parse them and set them up the
-! way _main expects them.
-! It also initializes _environ when this variable isn't defined by the
-! programmer.  The detection of whether _environ belong to us is rather
-! simplistic.  We simply check for some magic value, but there is no other
-! way.
-
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-.define begtext, begdata, begbss
-.sect .text
-begtext:
-.sect .rom
-begrom:
-.sect .data
-begdata:
-.sect .bss
-begbss:
-
-.define crtso, __penviron, __penvp, __fpu_present
-.extern _main, _exit
-.sect .text
-crtso:
-	xor     ebp, ebp		! clear for backtrace of core files
-	mov     eax, (esp)		! argc
-	lea     edx, 4(esp)		! argv
-	lea     ecx, 8(esp)(eax*4)	! envp
-
-	! Test if environ is in the initialized data area and is set to our
-	! magic number.  If so then it is not redefined by the user.
-	mov	ebx, _environ
-	cmp	ebx, __edata		! within initialized data?
-	jae	0f
-	testb	bl, 3			! aligned?
-	jnz	0f
-	cmp	(ebx), 0x53535353	! is it our _environ?
-	jne	0f
-	mov	(__penviron), ebx	! _penviron = &environ;
-0:	mov	ebx, (__penviron)
-	mov	(ebx), ecx		! *_penviron = envp;
-
-	push	ecx			! push envp
-	push	edx			! push argv
-	push	eax			! push argc
-
-	! Test the EM bit of the MSW to determine if an FPU is present and
-	! set __fpu_present if one is found.
-	smsw	ax
-	testb	al, 0x4			! EM bit in MSW
-	setz	(__fpu_present)		! True if not set
-
-	call	_main			! main(argc, argv, envp)
-
-	push	eax			! push exit status
-	call	_exit
-
-	hlt				! force a trap if exit fails
-
-.sect .rom
-	.data4	0			! Separate I&D: *NULL == 0
-					! Also keeps the first string in the
-					! program from appearing at location 0!
-.sect .data
-__penviron:
-	.data4	__penvp			! Pointer to environ, or hidden pointer
-
-.sect .bss
-	.comm	__penvp, 4		! Hidden environment vector
-	.comm	__fpu_present, 4	! FPU present flag
-
-.extern endtext				! Force loading of end labels.
Index: trunk/minix/lib/i386/rts/m2rtso.s
===================================================================
--- trunk/minix/lib/i386/rts/m2rtso.s	(revision 9)
+++ 	(revision )
@@ -1,67 +1,0 @@
-! This is the Modula-2 run-time start-off routine.  It's job is to take the
-! arguments as put on the stack by EXEC, and to parse them and set them up the
-! way _m_a_i_n expects them.
-
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-.define begtext, begdata, begbss
-.sect .text
-begtext:
-.sect .rom
-begrom:
-.sect .data
-begdata:
-.sect .bss
-begbss:
-
-.define m2rtso, hol0, __penviron, __penvp, __fpu_present
-.sect .text
-m2rtso:
-	xor	ebp, ebp		! clear for backtrace of core files
-	mov	eax, (esp)		! argc
-	lea	edx, 4(esp)		! argv
-	lea	ecx, 8(esp)(eax*4)	! envp
-
-	! Test if environ is in the initialized data area and is set to our
-	! magic number.  If so then it is not redefined by the user.
-	mov	ebx, _environ
-	cmp	ebx, __edata		! within initialized data?
-	jae	0f
-	testb	bl, 3			! aligned?
-	jnz	0f
-	cmp	(ebx), 0x53535353	! is it our environ?
-	jne	0f
-	mov	(__penviron), ebx	! _penviron = &environ;
-0:	mov	ebx, (__penviron)
-	mov	(ebx), ecx		! *_penviron = envp;
-
-	push	ecx			! push envp
-	push	edx			! push argv
-	push	eax			! push argc
-
-	! Test the EM bit of the MSW to determine if an FPU is present and
-	! set __fpu_present if one is found.
-	smsw	ax
-	testb	al, 0x4			! EM bit in MSW
-	setz	(__fpu_present)		! True if not set
-
-	call	__m_a_i_n		! run Modula-2 program
-
-	push	eax			! push exit status
-	call	__exit
-
-	hlt				! force a trap if exit fails
-
-.sect .rom
-	.data4	0			! Separate I&D: *NULL == 0
-					! Also keeps the first string in the
-					! program from appearing at location 0!
-.sect .data
-__penviron:
-	.data4	__penvp			! Pointer to environ, or hidden pointer
-
-.sect .bss
-	.comm	__penvp, 4		! Hidden environment vector
-	.comm	__fpu_present, 4	! FPU present flag
-
-.extern endtext				! Force loading of end labels.
Index: trunk/minix/lib/i386/rts/prtso.s
===================================================================
--- trunk/minix/lib/i386/rts/prtso.s	(revision 9)
+++ 	(revision )
@@ -1,69 +1,0 @@
-! This is the Pascal run-time start-off routine.  It's job is to take the
-! arguments as put on the stack by EXEC, and to parse them and set them up the
-! way _m_a_i_n expects them.
-
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-.define begtext, begdata, begbss
-.sect .text
-begtext:
-.sect .rom
-begrom:
-.sect .data
-begdata:
-.sect .bss
-begbss:
-
-.define prtso, hol0, __penviron, __penvp, __fpu_present
-.sect .text
-prtso:
-	xor	ebp, ebp		! clear for backtrace of core files
-	mov	eax, (esp)		! argc
-	lea	edx, 4(esp)		! argv
-	lea	ecx, 8(esp)(eax*4)	! envp
-
-	! Test if environ is in the initialized data area and is set to our
-	! magic number.  If so then it is not redefined by the user.
-	mov	ebx, _environ
-	cmp	ebx, __edata		! within initialized data?
-	jae	0f
-	testb	bl, 3			! aligned?
-	jnz	0f
-	cmp	(ebx), 0x53535353	! is it our environ?
-	jne	0f
-	mov	(__penviron), ebx	! _penviron = &environ;
-0:	mov	ebx, (__penviron)
-	mov	(ebx), ecx		! *_penviron = envp;
-
-	push	ecx			! push envp
-	push	edx			! push argv
-	push	eax			! push argc
-
-	! Test the EM bit of the MSW to determine if an FPU is present and
-	! set __fpu_present if one is found.
-	smsw	ax
-	testb	al, 0x4			! EM bit in MSW
-	setz	(__fpu_present)		! True if not set
-
-	mov	(.ignmask), 56
-
-	call	__m_a_i_n		! Run Pascal program
-
-	push	eax			! push exit status
-	call	__exit
-
-	hlt				! force a trap if exit fails
-
-.sect .rom
-	.data4	0			! Separate I&D: *NULL == 0
-					! Also keeps the first string in the
-					! program from appearing at location 0!
-.sect .data
-__penviron:
-	.data4	__penvp			! Pointer to environ, or hidden pointer
-
-.sect .bss
-	.comm	__penvp, 4		! Hidden environment vector
-	.comm	__fpu_present, 4	! FPU present flag
-
-.extern endtext				! Force loading of end labels.
Index: trunk/minix/lib/i386/string/Makedepend-ack
===================================================================
--- trunk/minix/lib/i386/string/Makedepend-ack	(revision 9)
+++ 	(revision )
@@ -1,28 +1,0 @@
-depend-ack:
-	rm .depend-ack
-	touch .depend-ack
-	mkdep 'cc  -E' _memmove.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' _strncat.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' _strncmp.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' _strncpy.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' _strnlen.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' bcmp.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' bcopy.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' bzero.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' index.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' memchr.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' memcmp.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' memcpy.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' memmove.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' memset.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' rindex.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strcat.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strchr.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strcmp.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strcpy.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strlen.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strncat.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strncmp.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strncpy.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strnlen.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
-	mkdep 'cc  -E' strrchr.s | sed -e 's:^\(.\):../../obj-ack//./i386/string/\1:' >> .depend-ack
Index: trunk/minix/lib/i386/string/Makedepend-gnu
===================================================================
--- trunk/minix/lib/i386/string/Makedepend-gnu	(revision 9)
+++ 	(revision )
@@ -1,28 +1,0 @@
-depend-gnu:
-	rm .depend-gnu
-	touch .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' _memmove.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' _strncat.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' _strncmp.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' _strncpy.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' _strnlen.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' bcmp.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' bcopy.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' bzero.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' index.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' memchr.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' memcmp.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' memcpy.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' memmove.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' memset.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' rindex.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strcat.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strchr.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strcmp.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strcpy.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strlen.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strncat.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strncmp.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strncpy.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strnlen.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
-	mkdep 'gcc  -E -x assembler-with-cpp -I.' strrchr.s | sed -e '/<built-in>/d' -e '/<command line>/d' -e 's:^\(.\):../../obj-gnu/./i386/string/\1:' >> .depend-gnu
Index: trunk/minix/lib/i386/string/Makefile
===================================================================
--- trunk/minix/lib/i386/string/Makefile	(revision 9)
+++ 	(revision )
@@ -1,245 +1,0 @@
-#Generated from ./i386/string/Makefile.in
-all: all-ack
-
-all-ack:
-all-gnu:
-
-makefiles: Makefile
-Makedepend-ack Makedepend-gnu: 
-	sh ../../generate.sh ./i386/string ../../obj-ack/ ../../obj-gnu
-
-Makefile: Makefile.in Makedepend-ack Makedepend-gnu
-	sh ../../generate.sh ./i386/string ../../obj-ack/ ../../obj-gnu
-	@echo
-	@echo *Attention*
-	@echo Makefile is regenerated... rerun command to see changes
-	@echo *Attention*
-	@echo
-
-depend: depend-ack
-all-ack: ../../obj-ack//libc.a
-
-../../obj-ack//libc.a: ../../obj-ack//libc.a(_memmove.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(_strncat.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(_strncmp.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(_strncpy.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(_strnlen.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(bcmp.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(bcopy.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(bzero.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(index.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(memchr.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(memcmp.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(memcpy.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(memmove.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(memset.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(rindex.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strcat.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strchr.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strcmp.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strcpy.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strlen.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strncat.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strncmp.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strncpy.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strnlen.o)
-../../obj-ack//libc.a: ../../obj-ack//libc.a(strrchr.o)
-
-../../obj-ack//libc.a:
-	ar cr ../../obj-ack//libc.a ../../obj-ack//./i386/string/*.o
-	rm ../../obj-ack//./i386/string/*.o
-
-../../obj-ack//libc.a(_memmove.o): _memmove.s
-	cc  -c -o ../../obj-ack//./i386/string/_memmove.o _memmove.s
-../../obj-ack//libc.a(_strncat.o): _strncat.s
-	cc  -c -o ../../obj-ack//./i386/string/_strncat.o _strncat.s
-../../obj-ack//libc.a(_strncmp.o): _strncmp.s
-	cc  -c -o ../../obj-ack//./i386/string/_strncmp.o _strncmp.s
-../../obj-ack//libc.a(_strncpy.o): _strncpy.s
-	cc  -c -o ../../obj-ack//./i386/string/_strncpy.o _strncpy.s
-../../obj-ack//libc.a(_strnlen.o): _strnlen.s
-	cc  -c -o ../../obj-ack//./i386/string/_strnlen.o _strnlen.s
-../../obj-ack//libc.a(bcmp.o): bcmp.s
-	cc  -c -o ../../obj-ack//./i386/string/bcmp.o bcmp.s
-../../obj-ack//libc.a(bcopy.o): bcopy.s
-	cc  -c -o ../../obj-ack//./i386/string/bcopy.o bcopy.s
-../../obj-ack//libc.a(bzero.o): bzero.s
-	cc  -c -o ../../obj-ack//./i386/string/bzero.o bzero.s
-../../obj-ack//libc.a(index.o): index.s
-	cc  -c -o ../../obj-ack//./i386/string/index.o index.s
-../../obj-ack//libc.a(memchr.o): memchr.s
-	cc  -c -o ../../obj-ack//./i386/string/memchr.o memchr.s
-../../obj-ack//libc.a(memcmp.o): memcmp.s
-	cc  -c -o ../../obj-ack//./i386/string/memcmp.o memcmp.s
-../../obj-ack//libc.a(memcpy.o): memcpy.s
-	cc  -c -o ../../obj-ack//./i386/string/memcpy.o memcpy.s
-../../obj-ack//libc.a(memmove.o): memmove.s
-	cc  -c -o ../../obj-ack//./i386/string/memmove.o memmove.s
-../../obj-ack//libc.a(memset.o): memset.s
-	cc  -c -o ../../obj-ack//./i386/string/memset.o memset.s
-../../obj-ack//libc.a(rindex.o): rindex.s
-	cc  -c -o ../../obj-ack//./i386/string/rindex.o rindex.s
-../../obj-ack//libc.a(strcat.o): strcat.s
-	cc  -c -o ../../obj-ack//./i386/string/strcat.o strcat.s
-../../obj-ack//libc.a(strchr.o): strchr.s
-	cc  -c -o ../../obj-ack//./i386/string/strchr.o strchr.s
-../../obj-ack//libc.a(strcmp.o): strcmp.s
-	cc  -c -o ../../obj-ack//./i386/string/strcmp.o strcmp.s
-../../obj-ack//libc.a(strcpy.o): strcpy.s
-	cc  -c -o ../../obj-ack//./i386/string/strcpy.o strcpy.s
-../../obj-ack//libc.a(strlen.o): strlen.s
-	cc  -c -o ../../obj-ack//./i386/string/strlen.o strlen.s
-../../obj-ack//libc.a(strncat.o): strncat.s
-	cc  -c -o ../../obj-ack//./i386/string/strncat.o strncat.s
-../../obj-ack//libc.a(strncmp.o): strncmp.s
-	cc  -c -o ../../obj-ack//./i386/string/strncmp.o strncmp.s
-../../obj-ack//libc.a(strncpy.o): strncpy.s
-	cc  -c -o ../../obj-ack//./i386/string/strncpy.o strncpy.s
-../../obj-ack//libc.a(strnlen.o): strnlen.s
-	cc  -c -o ../../obj-ack//./i386/string/strnlen.o strnlen.s
-../../obj-ack//libc.a(strrchr.o): strrchr.s
-	cc  -c -o ../../obj-ack//./i386/string/strrchr.o strrchr.s
-
-all-gnu: ../../obj-gnu/libc.a
-
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/_memmove.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/_strncat.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/_strncmp.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/_strncpy.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/_strnlen.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/bcmp.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/bcopy.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/bzero.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/index.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/memchr.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/memcmp.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/memcpy.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/memmove.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/memset.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/rindex.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strcat.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strchr.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strcmp.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strcpy.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strlen.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strncat.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strncmp.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strncpy.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strnlen.o
-../../obj-gnu/libc.a: ../../obj-gnu/./i386/string/strrchr.o
-
-../../obj-gnu/libc.a:
-	gar cr ../../obj-gnu/libc.a $?
-
-../../obj-gnu/./i386/string/_memmove.o: _memmove.s
-	gcc  -E -x assembler-with-cpp -I. _memmove.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/_memmove.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/_memmove.o ../../obj-gnu/./i386/string/_memmove.s.gnu
-
-../../obj-gnu/./i386/string/_strncat.o: _strncat.s
-	gcc  -E -x assembler-with-cpp -I. _strncat.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/_strncat.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/_strncat.o ../../obj-gnu/./i386/string/_strncat.s.gnu
-
-../../obj-gnu/./i386/string/_strncmp.o: _strncmp.s
-	gcc  -E -x assembler-with-cpp -I. _strncmp.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/_strncmp.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/_strncmp.o ../../obj-gnu/./i386/string/_strncmp.s.gnu
-
-../../obj-gnu/./i386/string/_strncpy.o: _strncpy.s
-	gcc  -E -x assembler-with-cpp -I. _strncpy.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/_strncpy.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/_strncpy.o ../../obj-gnu/./i386/string/_strncpy.s.gnu
-
-../../obj-gnu/./i386/string/_strnlen.o: _strnlen.s
-	gcc  -E -x assembler-with-cpp -I. _strnlen.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/_strnlen.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/_strnlen.o ../../obj-gnu/./i386/string/_strnlen.s.gnu
-
-../../obj-gnu/./i386/string/bcmp.o: bcmp.s
-	gcc  -E -x assembler-with-cpp -I. bcmp.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/bcmp.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/bcmp.o ../../obj-gnu/./i386/string/bcmp.s.gnu
-
-../../obj-gnu/./i386/string/bcopy.o: bcopy.s
-	gcc  -E -x assembler-with-cpp -I. bcopy.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/bcopy.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/bcopy.o ../../obj-gnu/./i386/string/bcopy.s.gnu
-
-../../obj-gnu/./i386/string/bzero.o: bzero.s
-	gcc  -E -x assembler-with-cpp -I. bzero.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/bzero.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/bzero.o ../../obj-gnu/./i386/string/bzero.s.gnu
-
-../../obj-gnu/./i386/string/index.o: index.s
-	gcc  -E -x assembler-with-cpp -I. index.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/index.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/index.o ../../obj-gnu/./i386/string/index.s.gnu
-
-../../obj-gnu/./i386/string/memchr.o: memchr.s
-	gcc  -E -x assembler-with-cpp -I. memchr.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/memchr.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/memchr.o ../../obj-gnu/./i386/string/memchr.s.gnu
-
-../../obj-gnu/./i386/string/memcmp.o: memcmp.s
-	gcc  -E -x assembler-with-cpp -I. memcmp.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/memcmp.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/memcmp.o ../../obj-gnu/./i386/string/memcmp.s.gnu
-
-../../obj-gnu/./i386/string/memcpy.o: memcpy.s
-	gcc  -E -x assembler-with-cpp -I. memcpy.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/memcpy.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/memcpy.o ../../obj-gnu/./i386/string/memcpy.s.gnu
-
-../../obj-gnu/./i386/string/memmove.o: memmove.s
-	gcc  -E -x assembler-with-cpp -I. memmove.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/memmove.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/memmove.o ../../obj-gnu/./i386/string/memmove.s.gnu
-
-../../obj-gnu/./i386/string/memset.o: memset.s
-	gcc  -E -x assembler-with-cpp -I. memset.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/memset.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/memset.o ../../obj-gnu/./i386/string/memset.s.gnu
-
-../../obj-gnu/./i386/string/rindex.o: rindex.s
-	gcc  -E -x assembler-with-cpp -I. rindex.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/rindex.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/rindex.o ../../obj-gnu/./i386/string/rindex.s.gnu
-
-../../obj-gnu/./i386/string/strcat.o: strcat.s
-	gcc  -E -x assembler-with-cpp -I. strcat.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strcat.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strcat.o ../../obj-gnu/./i386/string/strcat.s.gnu
-
-../../obj-gnu/./i386/string/strchr.o: strchr.s
-	gcc  -E -x assembler-with-cpp -I. strchr.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strchr.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strchr.o ../../obj-gnu/./i386/string/strchr.s.gnu
-
-../../obj-gnu/./i386/string/strcmp.o: strcmp.s
-	gcc  -E -x assembler-with-cpp -I. strcmp.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strcmp.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strcmp.o ../../obj-gnu/./i386/string/strcmp.s.gnu
-
-../../obj-gnu/./i386/string/strcpy.o: strcpy.s
-	gcc  -E -x assembler-with-cpp -I. strcpy.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strcpy.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strcpy.o ../../obj-gnu/./i386/string/strcpy.s.gnu
-
-../../obj-gnu/./i386/string/strlen.o: strlen.s
-	gcc  -E -x assembler-with-cpp -I. strlen.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strlen.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strlen.o ../../obj-gnu/./i386/string/strlen.s.gnu
-
-../../obj-gnu/./i386/string/strncat.o: strncat.s
-	gcc  -E -x assembler-with-cpp -I. strncat.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strncat.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strncat.o ../../obj-gnu/./i386/string/strncat.s.gnu
-
-../../obj-gnu/./i386/string/strncmp.o: strncmp.s
-	gcc  -E -x assembler-with-cpp -I. strncmp.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strncmp.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strncmp.o ../../obj-gnu/./i386/string/strncmp.s.gnu
-
-../../obj-gnu/./i386/string/strncpy.o: strncpy.s
-	gcc  -E -x assembler-with-cpp -I. strncpy.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strncpy.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strncpy.o ../../obj-gnu/./i386/string/strncpy.s.gnu
-
-../../obj-gnu/./i386/string/strnlen.o: strnlen.s
-	gcc  -E -x assembler-with-cpp -I. strnlen.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strnlen.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strnlen.o ../../obj-gnu/./i386/string/strnlen.s.gnu
-
-../../obj-gnu/./i386/string/strrchr.o: strrchr.s
-	gcc  -E -x assembler-with-cpp -I. strrchr.s | asmconv -mi386 ack gnu > ../../obj-gnu/./i386/string/strrchr.s.gnu || true
-	gas -o ../../obj-gnu/./i386/string/strrchr.o ../../obj-gnu/./i386/string/strrchr.s.gnu
-
-
-
-
-clean::
-	rm -f ../../obj-ack//./i386/string/*
-	rm -f ../../obj-gnu/./i386/string/*
-
-include Makedepend-ack
-include .depend-ack
-
-include Makedepend-gnu
-include .depend-gnu
Index: trunk/minix/lib/i386/string/Makefile.in
===================================================================
--- trunk/minix/lib/i386/string/Makefile.in	(revision 9)
+++ 	(revision )
@@ -1,32 +1,0 @@
-# Makefile for lib/i386/string.
-
-LIBRARIES=libc
-
-libc_FILES=" \
-	_memmove.s \
-	_strncat.s \
-	_strncmp.s \
-	_strncpy.s \
-	_strnlen.s \
-	bcmp.s \
-	bcopy.s \
-	bzero.s \
-	index.s \
-	memchr.s \
-	memcmp.s \
-	memcpy.s \
-	memmove.s \
-	memset.s \
-	rindex.s \
-	strcat.s \
-	strchr.s \
-	strcmp.s \
-	strcpy.s \
-	strlen.s \
-	strncat.s \
-	strncmp.s \
-	strncpy.s \
-	strnlen.s \
-	strrchr.s"
-
-TYPE=both
Index: trunk/minix/lib/i386/string/README
===================================================================
--- trunk/minix/lib/i386/string/README	(revision 9)
+++ 	(revision )
@@ -1,52 +1,0 @@
-Notes on i80386 string assembly routines.		Author: Kees J. Bot
-								2 Jan 1994
-
-Remarks.
-    All routines set up proper stack frames, so that stack traces can be
-    derived from core dumps.  String routines are often the ones that
-    get the bad pointer.
-
-    Flags are often not right in boundary cases (zero string length) on
-    repeated string scanning or comparing instructions.  This has been
-    handled in sometimes nonobvious ways.
-
-    Only the eax, edx, and ecx registers are not preserved, all other
-    registers are.  This is what GCC expects.  (ACK sees ebx as scratch
-    too.)  The direction byte is assumed to be wrong, and left clear on
-    exit.
-
-Assumptions.
-    The average string is short, so short strings should not suffer from
-    smart tricks to copy, compare, or search large strings fast.  This
-    means that the routines are fast on average, but not optimal for
-    long strings.
-
-    It doesn't pay to use word or longword operations on strings, the
-    setup time hurts the average case.
-
-    Memory blocks are probably large and on word or longword boundaries.
-
-    No unaligned word moves are done.  Again the setup time may hurt the
-    average case.  Furthermore, the author likes to enable the alignment
-    check on a 486.
-
-String routines.
-    They have been implemented using byte string instructions.  The
-    length of a string it usually determined first, followed by the
-    actual operation.
-
-Strcmp.
-    This is the only string routine that uses a loop, and not
-    instructions with a repeat prefix.  Problem is that we don't know
-    how long the string is.  Scanning for the end costs if the strings
-    are unequal in the first few bytes.
-
-Strchr.
-    The character we look for is often not there, or at some distance
-    from the start.  The string is scanned twice, for the terminating
-    zero and the character searched, in chunks of increasing length.
-
-Memory routines.
-    Memmove, memcpy, and memset use word or longword instructions if the
-    address(es) are at word or longword boundaries.  No tricks to get
-    alignment after doing a few bytes.  No unaligned operations.
Index: trunk/minix/lib/i386/string/_memmove.s
===================================================================
--- trunk/minix/lib/i386/string/_memmove.s	(revision 9)
+++ 	(revision )
@@ -1,58 +1,0 @@
-!	_memmove()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! void *_memmove(void *s1, const void *s2, size_t n)
-!	Copy a chunk of memory.  Handle overlap.
-!
-.sect .text
-.define __memmove, __memcpy
-	.align	16
-__memmove:
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	mov	edi, 8(ebp)	! String s1
-	mov	esi, 12(ebp)	! String s2
-	mov	ecx, 16(ebp)	! Length
-	mov	eax, edi
-	sub	eax, esi
-	cmp	eax, ecx
-	jb	downwards	! if (s2 - s1) < n then copy downwards
-__memcpy:
-	cld			! Clear direction bit: upwards
-	cmp	ecx, 16
-	jb	upbyte		! Don't bother being smart with short arrays
-	mov	eax, esi
-	or	eax, edi
-	testb	al, 1
-	jnz	upbyte		! Bit 0 set, use byte copy
-	testb	al, 2
-	jnz	upword		! Bit 1 set, use word copy
-uplword:shrd	eax, ecx, 2	! Save low 2 bits of ecx in eax
-	shr	ecx, 2
-	rep
-	movs			! Copy longwords.
-	shld	ecx, eax, 2	! Restore excess count
-upword:	shr	ecx, 1
-	rep
-    o16	movs			! Copy words
-	adc	ecx, ecx	! One more byte?
-upbyte:	rep
-	movsb			! Copy bytes
-done:	mov	eax, 8(ebp)	! Absolutely noone cares about this value
-	pop	edi
-	pop	esi
-	pop	ebp
-	ret
-
-! Handle bad overlap by copying downwards, don't bother to do word copies.
-downwards:
-	std			! Set direction bit: downwards
-	lea	esi, -1(esi)(ecx*1)
-	lea	edi, -1(edi)(ecx*1)
-	rep
-	movsb			! Copy bytes
-	cld
-	jmp	done
Index: trunk/minix/lib/i386/string/_strncat.s
===================================================================
--- trunk/minix/lib/i386/string/_strncat.s	(revision 9)
+++ 	(revision )
@@ -1,41 +1,0 @@
-!	_strncat()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *_strncat(char *s1, const char *s2, size_t edx)
-!	Append string s2 to s1.
-!
-.sect .text
-.define __strncat
-	.align	16
-__strncat:
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	mov	edi, 8(ebp)	! String s1
-	mov	ecx, -1
-	xorb	al, al		! Null byte
-	cld
-	repne
-	scasb			! Look for the zero byte in s1
-	dec	edi		! Back one up (and clear 'Z' flag)
-	push	edi		! Save end of s1
-	mov	edi, 12(ebp)	! edi = string s2
-	mov	ecx, edx	! Maximum count
-	repne
-	scasb			! Look for the end of s2
-	jne	no0
-	inc	ecx		! Exclude null byte
-no0:	sub	edx, ecx	! Number of bytes in s2
-	mov	ecx, edx
-	mov	esi, 12(ebp)	! esi = string s2
-	pop	edi		! edi = end of string s1
-	rep
-	movsb			! Copy bytes
-	stosb			! Add a terminating null
-	mov	eax, 8(ebp)	! Return s1
-	pop	edi
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/_strncmp.s
===================================================================
--- trunk/minix/lib/i386/string/_strncmp.s	(revision 9)
+++ 	(revision )
@@ -1,35 +1,0 @@
-!	strncmp()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! int strncmp(const char *s1, const char *s2, size_t ecx)
-!	Compare two strings.
-!
-.sect .text
-.define __strncmp
-	.align	16
-__strncmp:
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	test	ecx, ecx	! Max length is zero?
-	je	done
-	mov	esi, 8(ebp)	! esi = string s1
-	mov	edi, 12(ebp)	! edi = string s2
-	cld
-compare:
-	cmpsb			! Compare two bytes
-	jne	done
-	cmpb	-1(esi), 0	! End of string?
-	je	done
-	dec	ecx		! Length limit reached?
-	jne	compare
-done:	seta	al		! al = (s1 > s2)
-	setb	ah		! ah = (s1 < s2)
-	subb	al, ah
-	movsxb	eax, al		! eax = (s1 > s2) - (s1 < s2), i.e. -1, 0, 1
-	pop	edi
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/_strncpy.s
===================================================================
--- trunk/minix/lib/i386/string/_strncpy.s	(revision 9)
+++ 	(revision )
@@ -1,24 +1,0 @@
-!	_strncpy()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *_strncpy(char *s1, const char *s2, size_t ecx)
-!	Copy string s2 to s1.
-!
-.sect .text
-.define __strncpy
-	.align	16
-__strncpy:
-	mov	edi, 12(ebp)	! edi = string s2
-	xorb	al, al		! Look for a zero byte
-	mov	edx, ecx	! Save maximum count
-	cld
-	repne
-	scasb			! Look for end of s2
-	sub	edx, ecx	! Number of bytes in s2 including null
-	xchg	ecx, edx
-	mov	esi, 12(ebp)	! esi = string s2
-	mov	edi, 8(ebp)	! edi = string s1
-	rep
-	movsb			! Copy bytes
-	ret
Index: trunk/minix/lib/i386/string/_strnlen.s
===================================================================
--- trunk/minix/lib/i386/string/_strnlen.s	(revision 9)
+++ 	(revision )
@@ -1,28 +1,0 @@
-!	_strnlen()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! size_t _strnlen(const char *s, size_t ecx)
-!	Return the length of a string.
-!
-.sect .text
-.define __strnlen
-	.align	16
-__strnlen:
-	push	ebp
-	mov	ebp, esp
-	push	edi
-	mov	edi, 8(ebp)	! edi = string
-	xorb	al, al		! Look for a zero byte
-	mov	edx, ecx	! Save maximum count
-	cmpb	cl, 1		! 'Z' bit must be clear if ecx = 0
-	cld
-	repne
-	scasb			! Look for zero
-	jne	no0
-	inc	ecx		! Don't count zero byte
-no0:	mov	eax, edx
-	sub	eax, ecx	! Compute bytes scanned
-	pop	edi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/bcmp.s
===================================================================
--- trunk/minix/lib/i386/string/bcmp.s	(revision 9)
+++ 	(revision )
@@ -1,28 +1,0 @@
-!	bcmp()						Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! int bcmp(const void *s1, const void *s2, size_t n)
-!	Compare two chunks of memory.
-!	This is a BSD routine that escaped from the kernel.  Don't use.
-!	(Alas it is not without some use, it reports the number of bytes
-!	after the bytes that are equal.  So it can't be simply replaced.)
-!
-.sect .text
-.define _bcmp
-	.align	16
-_bcmp:
-	push	ebp
-	mov	ebp, esp
-	push	16(ebp)
-	push	12(ebp)
-	push	8(ebp)
-	call	_memcmp		! Let memcmp do the work
-	test	eax, eax
-	jz	equal
-	sub	edx, 8(ebp)	! Memcmp was nice enough to leave "esi" in edx
-	dec	edx		! Number of bytes that are equal
-	mov	eax, 16(ebp)
-	sub	eax, edx	! Number of bytes that are unequal
-equal:	leave
-	ret
Index: trunk/minix/lib/i386/string/bcopy.s
===================================================================
--- trunk/minix/lib/i386/string/bcopy.s	(revision 9)
+++ 	(revision )
@@ -1,16 +1,0 @@
-!	bcopy()						Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! void bcopy(const void *s1, void *s2, size_t n)
-!	Copy a chunk of memory.  Handle overlap.
-!	This is a BSD routine that escaped from the kernel.  Don't use.
-!
-.sect .text
-.define _bcopy
-	.align	16
-_bcopy:
-	mov	eax, 4(esp)	! Exchange string arguments
-	xchg	eax, 8(esp)
-	mov	4(esp), eax
-	jmp	__memmove	! Call the proper routine
Index: trunk/minix/lib/i386/string/bzero.s
===================================================================
--- trunk/minix/lib/i386/string/bzero.s	(revision 9)
+++ 	(revision )
@@ -1,20 +1,0 @@
-!	bzero()						Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! void bzero(void *s, size_t n)
-!	Set a chunk of memory to zero.
-!	This is a BSD routine that escaped from the kernel.  Don't use.
-!
-.sect .text
-.define _bzero
-	.align	16
-_bzero:
-	push	ebp
-	mov	ebp, esp
-	push	12(ebp)		! Size
-	push	0		! Zero
-	push	8(ebp)		! String
-	call	_memset		! Call the proper routine
-	leave
-	ret
Index: trunk/minix/lib/i386/string/index.s
===================================================================
--- trunk/minix/lib/i386/string/index.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	index()						Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *index(const char *s, int c)
-!	Look for a character in a string.  Has suffered from a hostile
-!	takeover by strchr().
-!
-.sect .text
-.define _index
-	.align	16
-_index:
-	jmp	_strchr
Index: trunk/minix/lib/i386/string/memchr.s
===================================================================
--- trunk/minix/lib/i386/string/memchr.s	(revision 9)
+++ 	(revision )
@@ -1,30 +1,0 @@
-!	memchr()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! void *memchr(const void *s, int c, size_t n)
-!	Look for a character in a chunk of memory.
-!
-.sect .text
-.define _memchr
-	.align	16
-_memchr:
-	push	ebp
-	mov	ebp, esp
-	push	edi
-	mov	edi, 8(ebp)	! edi = string
-	movb	al, 12(ebp)	! The character to look for
-	mov	ecx, 16(ebp)	! Length
-	cmpb	cl, 1		! 'Z' bit must be clear if ecx = 0
-	cld
-	repne
-	scasb
-	jne	failure
-	lea	eax, -1(edi)	! Found
-	pop	edi
-	pop	ebp
-	ret
-failure:xor	eax, eax
-	pop	edi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/memcmp.s
===================================================================
--- trunk/minix/lib/i386/string/memcmp.s	(revision 9)
+++ 	(revision )
@@ -1,56 +1,0 @@
-!	memcmp()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! int memcmp(const void *s1, const void *s2, size_t n)
-!	Compare two chunks of memory.
-!
-.sect .text
-.define _memcmp
-	.align	16
-_memcmp:
-	cld
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	mov	esi, 8(ebp)	! String s1
-	mov	edi, 12(ebp)	! String s2
-	mov	ecx, 16(ebp)	! Length
-	cmp	ecx, 16
-	jb	cbyte		! Don't bother being smart with short arrays
-	mov	eax, esi
-	or	eax, edi
-	testb	al, 1
-	jnz	cbyte		! Bit 0 set, use byte compare
-	testb	al, 2
-	jnz	cword		! Bit 1 set, use word compare
-clword:	shrd	eax, ecx, 2	! Save low two bits of ecx in eax
-	shr	ecx, 2
-	repe
-	cmps			! Compare longwords
-	sub	esi, 4
-	sub	edi, 4
-	inc	ecx		! Recompare the last longword
-	shld	ecx, eax, 2	! And any excess bytes
-	jmp	last
-cword:	shrd	eax, ecx, 1	! Save low bit of ecx in eax
-	shr	ecx, 1
-	repe
-    o16	cmps			! Compare words
-	sub	esi, 2
-	sub	edi, 2
-	inc	ecx		! Recompare the last word
-	shld	ecx, eax, 1	! And one more byte?
-cbyte:	test	ecx, ecx	! Set 'Z' flag if ecx = 0
-last:	repe
-	cmpsb			! Look for the first differing byte
-	seta	al		! al = (s1 > s2)
-	setb	ah		! ah = (s1 < s2)
-	subb	al, ah
-	movsxb	eax, al		! eax = (s1 > s2) - (s1 < s2), i.e. -1, 0, 1
-	mov	edx, esi	! For bcmp() to play with
-	pop	edi
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/memcpy.s
===================================================================
--- trunk/minix/lib/i386/string/memcpy.s	(revision 9)
+++ 	(revision )
@@ -1,24 +1,0 @@
-!	memcpy()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! void *memcpy(void *s1, const void *s2, size_t n)
-!	Copy a chunk of memory.
-!	This routine need not handle overlap, so it does not handle overlap.
-!	One could simply call __memmove, the cost of the overlap check is
-!	negligible, but you are dealing with a programmer who believes that
-!	if anything can go wrong, it should go wrong.
-!
-.sect .text
-.define _memcpy
-	.align	16
-_memcpy:
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	mov	edi, 8(ebp)	! String s1
-	mov	esi, 12(ebp)	! String s2
-	mov	ecx, 16(ebp)	! Length
-	! No overlap check here
-	jmp	__memcpy	! Call the part of __memmove that copies up
Index: trunk/minix/lib/i386/string/memmove.s
===================================================================
--- trunk/minix/lib/i386/string/memmove.s	(revision 9)
+++ 	(revision )
@@ -1,12 +1,0 @@
-!	memmove()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! void *memmove(void *s1, const void *s2, size_t n)
-!	Copy a chunk of memory.  Handle overlap.
-!
-.sect .text
-.define _memmove
-	.align	16
-_memmove:
-	jmp	__memmove	! Call common code
Index: trunk/minix/lib/i386/string/memset.s
===================================================================
--- trunk/minix/lib/i386/string/memset.s	(revision 9)
+++ 	(revision )
@@ -1,44 +1,0 @@
-!	memset()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! void *memset(void *s, int c, size_t n)
-!	Set a chunk of memory to the same byte value.
-!
-.sect .text
-.define _memset
-	.align	16
-_memset:
-	push	ebp
-	mov	ebp, esp
-	push	edi
-	mov	edi, 8(ebp)	! The string
-	movzxb	eax, 12(ebp)	! The fill byte
-	mov	ecx, 16(ebp)	! Length
-	cld
-	cmp	ecx, 16
-	jb	sbyte		! Don't bother being smart with short arrays
-	test	edi, 1
-	jnz	sbyte		! Bit 0 set, use byte store
-	test	edi, 2
-	jnz	sword		! Bit 1 set, use word store
-slword:	movb	ah, al
-	mov	edx, eax
-	sal	edx, 16
-	or	eax, edx	! One byte to four bytes
-	shrd	edx, ecx, 2	! Save low two bits of ecx in edx
-	shr	ecx, 2
-	rep
-	stos			! Store longwords.
-	shld	ecx, edx, 2	! Restore low two bits
-sword:	movb	ah, al		! One byte to two bytes
-	shr	ecx, 1
-	rep
-    o16	stos			! Store words
-	adc	ecx, ecx	! One more byte?
-sbyte:	rep
-	stosb			! Store bytes
-done:	mov	eax, 8(ebp)	! Return some value you have no need for
-	pop	edi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/rindex.s
===================================================================
--- trunk/minix/lib/i386/string/rindex.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	rindex()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *rindex(const char *s, int c)
-!	Look for the last occurrence a character in a string.  Has suffered
-!	from a hostile takeover by strrchr().
-!
-.sect .text
-.define _rindex
-	.align	16
-_rindex:
-	jmp	_strrchr
Index: trunk/minix/lib/i386/string/strcat.s
===================================================================
--- trunk/minix/lib/i386/string/strcat.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	strcat()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *strcat(char *s1, const char *s2)
-!	Append string s2 to s1.
-!
-.sect .text
-.define _strcat
-	.align	16
-_strcat:
-	mov	edx, -1		! Unlimited length
-	jmp	__strncat	! Common code
Index: trunk/minix/lib/i386/string/strchr.s
===================================================================
--- trunk/minix/lib/i386/string/strchr.s	(revision 9)
+++ 	(revision )
@@ -1,41 +1,0 @@
-!	strchr()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *strchr(const char *s, int c)
-!	Look for a character in a string.
-!
-.sect .text
-.define _strchr
-	.align	16
-_strchr:
-	push	ebp
-	mov	ebp, esp
-	push	edi
-	cld
-	mov	edi, 8(ebp)	! edi = string
-	mov	edx, 16		! Look at small chunks of the string
-next:	shl	edx, 1		! Chunks become bigger each time
-	mov	ecx, edx
-	xorb	al, al		! Look for the zero at the end
-	repne
-	scasb
-	pushf			! Remember the flags
-	sub	ecx, edx
-	neg	ecx		! Some or all of the chunk
-	sub	edi, ecx	! Step back
-	movb	al, 12(ebp)	! The character to look for
-	repne
-	scasb
-	je	found
-	popf			! Did we find the end of string earlier?
-	jne	next		! No, try again
-	xor	eax, eax	! Return NULL
-	pop	edi
-	pop	ebp
-	ret
-found:	pop	eax		! Get rid of those flags
-	lea	eax, -1(edi)	! Address of byte found
-	pop	edi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/strcmp.s
===================================================================
--- trunk/minix/lib/i386/string/strcmp.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	strcmp()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! int strcmp(const char *s1, const char *s2)
-!	Compare two strings.
-!
-.sect .text
-.define _strcmp
-	.align	16
-_strcmp:
-	mov	ecx, -1		! Unlimited length
-	jmp	__strncmp	! Common code
Index: trunk/minix/lib/i386/string/strcpy.s
===================================================================
--- trunk/minix/lib/i386/string/strcpy.s	(revision 9)
+++ 	(revision )
@@ -1,22 +1,0 @@
-!	strcpy()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *strcpy(char *s1, const char *s2)
-!	Copy string s2 to s1.
-!
-.sect .text
-.define _strcpy
-	.align	16
-_strcpy:
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	mov	ecx, -1		! Unlimited length
-	call	__strncpy	! Common code
-	mov	eax, 8(ebp)	! Return s1
-	pop	edi
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/strlen.s
===================================================================
--- trunk/minix/lib/i386/string/strlen.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	strlen()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! size_t strlen(const char *s)
-!	Return the length of a string.
-!
-.sect .text
-.define _strlen
-	.align	16
-_strlen:
-	mov	ecx, -1		! Unlimited length
-	jmp	__strnlen	! Common code
Index: trunk/minix/lib/i386/string/strncat.s
===================================================================
--- trunk/minix/lib/i386/string/strncat.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	strncat()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! size_t strncat(char *s1, const char *s2, size_t n)
-!	Append string s2 to s1.
-!
-.sect .text
-.define _strncat
-	.align	16
-_strncat:
-	mov	edx, 12(esp)	! Maximum length
-	jmp	__strncat	! Common code
Index: trunk/minix/lib/i386/string/strncmp.s
===================================================================
--- trunk/minix/lib/i386/string/strncmp.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	strncmp()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! int strncmp(const char *s1, const char *s2, size_t n)
-!	Compare two strings.
-!
-.sect .text
-.define _strncmp
-	.align	16
-_strncmp:
-	mov	ecx, 12(esp)	! Maximum length
-	jmp	__strncmp	! Common code
Index: trunk/minix/lib/i386/string/strncpy.s
===================================================================
--- trunk/minix/lib/i386/string/strncpy.s	(revision 9)
+++ 	(revision )
@@ -1,25 +1,0 @@
-!	strncpy()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *strncpy(char *s1, const char *s2, size_t n)
-!	Copy string s2 to s1.
-!
-.sect .text
-.define _strncpy
-	.align	16
-_strncpy:
-	push	ebp
-	mov	ebp, esp
-	push	esi
-	push	edi
-	mov	ecx, 16(ebp)	! Maximum length
-	call	__strncpy	! Common code
-	mov	ecx, edx	! Number of bytes not copied
-	rep
-	stosb			! strncpy always copies n bytes by null padding
-	mov	eax, 8(ebp)	! Return s1
-	pop	edi
-	pop	esi
-	pop	ebp
-	ret
Index: trunk/minix/lib/i386/string/strnlen.s
===================================================================
--- trunk/minix/lib/i386/string/strnlen.s	(revision 9)
+++ 	(revision )
@@ -1,13 +1,0 @@
-!	strnlen()					Author: Kees J. Bot
-!								1 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! size_t strnlen(const char *s, size_t n)
-!	Return the length of a string.
-!
-.sect .text
-.define _strnlen
-	.align	16
-_strnlen:
-	mov	ecx, 8(esp)	! Maximum length
-	jmp	__strnlen	! Common code
Index: trunk/minix/lib/i386/string/strrchr.s
===================================================================
--- trunk/minix/lib/i386/string/strrchr.s	(revision 9)
+++ 	(revision )
@@ -1,36 +1,0 @@
-!	strrchr()					Author: Kees J. Bot
-!								2 Jan 1994
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-! char *strrchr(const char *s, int c)
-!	Look for the last occurrence a character in a string.
-!
-.sect .text
-.define _strrchr
-	.align	16
-_strrchr:
-	push	ebp
-	mov	ebp, esp
-	push	edi
-	mov	edi, 8(ebp)	! edi = string
-	mov	ecx, -1
-	xorb	al, al
-	cld
-	repne
-	scasb			! Look for the end of the string
-	not	ecx		! -1 - ecx = Length of the string + null
-	dec	edi		! Put edi back on the zero byte
-	movb	al, 12(ebp)	! The character to look for
-	std			! Downwards search
-	repne
-	scasb
-	cld			! Direction bit back to default
-	jne	failure
-	lea	eax, 1(edi)	! Found it
-	pop	edi
-	pop	ebp
-	ret
-failure:xor	eax, eax	! Not there
-	pop	edi
-	pop	ebp
-	ret
