Temporarily removing menuetlibc

git-svn-id: svn://kolibrios.org@4799 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
right-hearted
2014-04-08 16:39:46 +00:00
parent c62aaa70ed
commit b22b1101b6
1730 changed files with 0 additions and 316209 deletions
@@ -1,33 +0,0 @@
all:
make -C cpu
make -C endian
make -C farptr
make -C fpu
make -C hwint
make -C kb
make -C sound
make -C mem
make -C timer
clean:
make -C cpu clean
make -C endian clean
make -C farptr clean
make -C fpu clean
make -C hwint clean
make -C kb clean
make -C sound clean
make -C mem clean
make -C timer clean
depend:
make -C cpu depend
make -C endian depend
make -C farptr depend
make -C fpu depend
make -C hwint depend
make -C kb depend
make -C sound depend
make -C mem depend
make -C timer depend
@@ -1,3 +0,0 @@
THIS_SRCS = my_cs.s my_ds.s my_ss.s
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,8 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(_my_cs)
movw %cs,%ax
movzwl %ax,%eax
ret
@@ -1,8 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(_my_ds)
movw %ds,%ax
movzwl %ax,%eax
ret
@@ -1,8 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(_my_ss)
movw %ss,%ax
movzwl %ax,%eax
ret
@@ -1,3 +0,0 @@
THIS_SRCS = htonl.s htons.s ntohl.s ntohs.s
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,11 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(htonl)
movl 4(%esp), %eax
xchgb %ah, %al
rorl $16, %eax
xchgb %ah, %al
ret
@@ -1,9 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(htons)
movl 4(%esp), %eax
xchgb %ah, %al
ret
@@ -1,11 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(ntohl)
movl 4(%esp), %eax
xchgb %ah, %al
rorl $16, %eax
xchgb %ah, %al
ret
@@ -1,8 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(ntohs)
movl 4(%esp), %eax
xchgb %ah, %al
ret
@@ -1,3 +0,0 @@
THIS_SRCS = farptr.c
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,4 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#define extern
#define __inline__
#include <sys/farptr.h>
@@ -1,3 +0,0 @@
THIS_SRCS = clear87.s cntrl87.s fpreset.s stat87.s
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,10 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(clear87)
fstsw %ax
movzwl %ax, %eax
fclex
ret
@@ -1,29 +0,0 @@
#include<libc/asm.h>
.text
MK_C_SYM(control87)
pushl %ebp
movl %esp,%ebp
pushl %eax
fstcw (%esp)
fwait
popl %eax
andl $0xffff, %eax
movl 12(%ebp) , %ecx
notl %ecx
andl %eax, %ecx
movl 12(%ebp) , %edx
andl 8(%ebp) , %edx
orl %ecx, %edx
pushl %edx
fldcw (%esp)
popl %edx
movl %ebp,%esp
popl %ebp
ret
@@ -1,11 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
#include<libc/asm.h>
.text
MK_C_SYM(fpreset)
fninit
ret
@@ -1,12 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/asmdefs.h>
.text
#include<libc/asm.h>
MK_C_SYM(status87)
fstsw %ax
movzwl %ax, %eax
ret
@@ -1,4 +0,0 @@
THIS_SRCS = disable.c enable.c
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,8 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <dos.h>
#include <assert.h>
int disable(void)
{
return -1;
}
@@ -1,8 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <dos.h>
#include <assert.h>
int enable(void)
{
return -1;
}
@@ -1,4 +0,0 @@
THIS_SRCS = getkey.c getxkey.c kbhit.c
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,9 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <pc.h>
#include <menuet/os.h>
int getkey(void)
{
if(!kbhit()) return -1;
return __menuet__getkey();
}
@@ -1,7 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <pc.h>
int getxkey(void)
{
return getkey();
}
@@ -1,11 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <pc.h>
#include <libc/farptrgs.h>
#include <menuet/os.h>
int kbhit(void)
{
int i;
i=__menuet__check_for_event();
if(i==2) return 1; else return 0;
}
@@ -1,3 +0,0 @@
THIS_SRCS = djmdr.s djmd.s mdb.s mdl.s md.s mdw.s
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,40 +0,0 @@
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
# This routine moves %ecx bytes from %ds:%esi to %es:%edi. It clobbers
# %eax, %ecx, %esi, %edi, and eflags. The memory ranges must not overlap,
# unless %esi >= %edi.
#include <libc/asmdefs.h>
#include<libc/asm.h>
.file "djmd.s"
.text
.balign 16,,7
MK_C_SYM(__dj_movedata)
cmpl $15,%ecx
jle small_move
jmp mod_4_check
# Transfer bytes until either %esi or %edi is aligned % 4
align_mod_4:
movsb
decl %ecx
mod_4_check:
testl $3,%esi
jz big_move
testl $3,%edi
jnz align_mod_4
big_move:
movb %cl,%al # We will store leftover count in %al
shrl $2,%ecx
andb $3,%al
rep
movsl
# %ecx known to be zero here, so insert the leftover count in %al
movb %al,%cl
small_move:
rep
movsb
ret
@@ -1,58 +0,0 @@
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
/* Modified by SET to copy in reverse order */
# This routine moves %ecx bytes from %ds:%esi to %es:%edi. It clobbers
# %eax, %ecx, %esi, %edi, and eflags.
#include <libc/asmdefs.h>
#include<libc/asm.h>
.file "djmdr.s"
.text
.balign 16,,7
MK_C_SYM(__dj_movedata_rev)
std
# Add the counter to the index
addl %ecx,%edi
addl %ecx,%esi
decl %esi
decl %edi
cmpl $15,%ecx
jle small_move
jmp mod_4_check
# Transfer bytes until either %esi or %edi is aligned % 3
align_mod_4:
movsb
decl %ecx
mod_4_check:
movl %esi,%eax
andl $3,%eax
cmpl $3,%eax
jz big_move
movl %edi,%eax
andl $3,%eax
cmpl $3,%eax
jnz align_mod_4
big_move:
movb %cl,%al # We will store leftover count in %al
shrl $2,%ecx
andb $3,%al
# Now retrocess the index 3 positions
subl $3,%edi
subl $3,%esi
rep
movsl
# %ecx known to be zero here, so insert the leftover count in %al
movb %al,%cl
# advance the index by 3
addl $3,%edi
addl $3,%esi
small_move:
rep
movsb
ret
@@ -1,27 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#define USE_ESI
#define USE_EDI
#include <libc/asmdefs.h>
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(__movedata) /* src_sel, src_ofs, dest_sel, dest_ofs, len */
ENTER
pushw %ds
pushw %es
movw ARG1,%ds
movw ARG3,%es
movl ARG2,%esi
movl ARG4,%edi
movl ARG5,%ecx
call C_SYM(__dj_movedata)
popw %es
popw %ds
LEAVE
@@ -1,29 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#define USE_ESI
#define USE_EDI
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(_movedatab) /* src_sel, src_ofs, dest_sel, dest_ofs, len */
ENTER
pushw %ds
pushw %es
movl ARG1,%eax
movw %ax,%ds
movl ARG2,%esi
movl ARG3,%eax
movw %ax,%es
movl ARG4,%edi
movl ARG5,%ecx
cld
rep
movsb
popw %es
popw %ds
LEAVE
@@ -1,29 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#define USE_ESI
#define USE_EDI
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(_movedatal) /* src_sel, src_ofs, dest_sel, dest_ofs, len */
ENTER
pushw %ds
pushw %es
movl ARG1,%eax
movw %ax,%ds
movl ARG2,%esi
movl ARG3,%eax
movw %ax,%es
movl ARG4,%edi
movl ARG5,%ecx
cld
rep
movsl
popw %es
popw %ds
LEAVE
@@ -1,29 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#define USE_ESI
#define USE_EDI
#include <libc/asmdefs.h>
#include<libc/asm.h>
MK_C_SYM(_movedataw) /* src_sel, src_ofs, dest_sel, dest_ofs, len */
ENTER
pushw %ds
pushw %es
movl ARG1,%eax
movw %ax,%ds
movl ARG2,%esi
movl ARG3,%eax
movw %ax,%es
movl ARG4,%edi
movl ARG5,%ecx
cld
rep
movsw
popw %es
popw %ds
LEAVE
@@ -1,3 +0,0 @@
THIS_SRCS = sound.c
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,18 +0,0 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <pc.h>
#include <assert.h>
void sound(int freq)
{
int scale;
if (freq == 0)
{
outportb(0x61, inportb(0x61) & ~3);
return;
}
scale = 1193046 / freq;
outportb(0x43, 0xb6);
outportb(0x42, scale & 0xff);
outportb(0x42, scale >> 8);
outportb(0x61, inportb(0x61) | 3);
}
@@ -1,3 +0,0 @@
THIS_SRCS = clock.c uclock.c
include $(MENUET_LIBC_TOPDIR)/Make.rules
@@ -1,10 +0,0 @@
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <time.h>
#include <libc/farptrgs.h>
#include <libc/bss.h>
clock_t clock(void)
{
return 0;
}
@@ -1,13 +0,0 @@
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <time.h>
#include <errno.h>
#include <pc.h>
#include <libc/farptrgs.h>
#include <libc/bss.h>
uclock_t uclock(void)
{
return 0;
}