Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1621 → Rev 1681

/shark/branches/xen/oslib/makefile
File deleted
/shark/branches/xen/oslib/kl/makefile
File deleted
/shark/branches/xen/oslib/kl/Makefile
0,0 → 1,13
targets:= \
mem.o \
cxsw-2.o \
init.o \
time.o \
aspace.o \
intevt.o \
event.o \
event1.o \
advtimer.o \
abort.o \
timeint.o
 
/shark/branches/xen/oslib/lib/makefile
File deleted
/shark/branches/xen/oslib/lib/Makefile
0,0 → 1,18
#
# Standard path
#
 
ifndef BASE
BASE = ..
BASEDOS = ..
endif
 
include $(BASE)/config.mk
.PHONY : all allclean
 
all:
 
allclean:
$(RM) lib*.a
$(RM) x0.o
/shark/branches/xen/oslib/ll/i386/x-bios.h
35,28 → 35,28
 
typedef union x_regs16 {
struct {
WORD ax __attribute__ ((packed));
WORD bx __attribute__ ((packed));
WORD cx __attribute__ ((packed));
WORD dx __attribute__ ((packed));
WORD si __attribute__ ((packed));
WORD di __attribute__ ((packed));
WORD cflag __attribute__ ((packed));
WORD _pad __attribute__ ((packed));
} x __attribute__ ((packed));
WORD ax;
WORD bx;
WORD cx;
WORD dx;
WORD si;
WORD di;
WORD cflag;
WORD _pad;
} x;
struct {
BYTE al,ah __attribute__ ((packed));
BYTE bl,bh __attribute__ ((packed));
BYTE cl,ch __attribute__ ((packed));
BYTE dl,dh __attribute__ ((packed));
} h __attribute__ ((packed));
BYTE al,ah;
BYTE bl,bh;
BYTE cl,ch;
BYTE dl,dh;
} h;
} X_REGS16;
 
typedef struct x_sregs16 {
WORD es __attribute__ ((packed));
WORD cs __attribute__ ((packed));
WORD ss __attribute__ ((packed));
WORD ds __attribute__ ((packed));
WORD es;
WORD cs;
WORD ss;
WORD ds;
} X_SREGS16;
 
typedef struct {
/shark/branches/xen/oslib/ll/i386/hw-data.h
62,20 → 62,20
/* Hardware based types (Self explanatory) */
 
typedef struct gate {
WORD offset_lo __attribute__ ((packed));
WORD sel __attribute__ ((packed));
BYTE dword_cnt __attribute__ ((packed));
BYTE access __attribute__ ((packed));
WORD offset_hi __attribute__ ((packed));
WORD offset_lo;
WORD sel;
BYTE dword_cnt;
BYTE access;
WORD offset_hi;
} GATE;
 
typedef struct descriptor {
WORD lim_lo __attribute__ ((packed));
WORD base_lo __attribute__ ((packed));
BYTE base_med __attribute__ ((packed));
BYTE access __attribute__ ((packed));
BYTE gran __attribute__ ((packed));
BYTE base_hi __attribute__ ((packed));
WORD lim_lo;
WORD base_lo;
BYTE base_med;
BYTE access;
BYTE gran;
BYTE base_hi;
} DESCRIPTOR;
 
/* A LDT/GDT entry could be a gate or a selector */
82,8 → 82,8
/* An IDT entry could be a gate only */
 
union gdt_entry {
DESCRIPTOR d __attribute__ ((packed));
GATE g __attribute__ ((packed));
DESCRIPTOR d;
GATE g;
};
 
struct registers {
161,46 → 161,46
 
 
typedef struct tss {
WORD back_link __attribute__ ((packed));
WORD _fill0 __attribute__ ((packed));
DWORD esp0 __attribute__ ((packed));
WORD ss0 __attribute__ ((packed));
WORD _fill1 __attribute__ ((packed));
DWORD esp1 __attribute__ ((packed));
WORD ss1 __attribute__ ((packed));
WORD _fill2 __attribute__ ((packed));
DWORD esp2 __attribute__ ((packed));
WORD ss2 __attribute__ ((packed));
WORD _fill3 __attribute__ ((packed));
DWORD cr3 __attribute__ ((packed));
DWORD eip __attribute__ ((packed));
DWORD eflags __attribute__ ((packed));
DWORD eax __attribute__ ((packed));
DWORD ecx __attribute__ ((packed));
DWORD edx __attribute__ ((packed));
DWORD ebx __attribute__ ((packed));
DWORD esp __attribute__ ((packed));
DWORD ebp __attribute__ ((packed));
DWORD esi __attribute__ ((packed));
DWORD edi __attribute__ ((packed));
WORD es __attribute__ ((packed));
WORD _fill5 __attribute__ ((packed));
WORD cs __attribute__ ((packed));
WORD _fill6 __attribute__ ((packed));
WORD ss __attribute__ ((packed));
WORD _fill7 __attribute__ ((packed));
WORD ds __attribute__ ((packed));
WORD _fill8 __attribute__ ((packed));
WORD fs __attribute__ ((packed));
WORD _fill9 __attribute__ ((packed));
WORD gs __attribute__ ((packed));
WORD _fill10 __attribute__ ((packed));
WORD ldt __attribute__ ((packed));
WORD _fill11 __attribute__ ((packed));
WORD trap __attribute__ ((packed));
WORD io_base __attribute__ ((packed));
DWORD control __attribute__ ((packed));
BYTE ctx_FPU[FPU_CONTEXT_SIZE] __attribute__ ((packed));
WORD back_link;
WORD _fill0;
DWORD esp0;
WORD ss0;
WORD _fill1;
DWORD esp1;
WORD ss1;
WORD _fill2;
DWORD esp2;
WORD ss2;
WORD _fill3;
DWORD cr3;
DWORD eip;
DWORD eflags;
DWORD eax;
DWORD ecx;
DWORD edx;
DWORD ebx;
DWORD esp;
DWORD ebp;
DWORD esi;
DWORD edi;
WORD es;
WORD _fill5;
WORD cs;
WORD _fill6;
WORD ss;
WORD _fill7;
WORD ds;
WORD _fill8;
WORD fs;
WORD _fill9;
WORD gs;
WORD _fill10;
WORD ldt;
WORD _fill11;
WORD trap;
WORD io_base;
DWORD control;
BYTE ctx_FPU[FPU_CONTEXT_SIZE];
} TSS;
 
/* Irq services specifications */
/shark/branches/xen/oslib/docs/makefile
File deleted
/shark/branches/xen/oslib/docs/Makefile
0,0 → 1,19
all: man.ps
 
oslib.dvi: oslib.tex
latex oslib
latex oslib
 
man.ps: oslib.dvi
dvips oslib -o man.ps
 
clean :
rm -f *.log
rm -f *~
rm -f *.aux
rm -f *.dvi
rm -f man.ps
rm -f *.ind
rm -f *.idx
rm -f *.ilg
rm -f *.toc
/shark/branches/xen/oslib/libcons/makefile
File deleted
/shark/branches/xen/oslib/libcons/Makefile
0,0 → 1,53
# Standard library for X/COFF applications
# Makefile for GNU MAKE & GCC 2.8.0
 
ifndef BASE
BASE = ..
BASEDOS = ..
endif
 
include $(BASE)/config.mk
 
#C_OPT += -DPROFILE
#ASM_OPT += -DPROFILE
 
OBJS = cons1.o \
cons2.o \
cprintf.o \
message.o
 
.PHONY : clean allclean info install
 
info :
@echo "OSLib Makefile"
@echo "Chose: all, install, clean"
all : libcons.a
 
install : libcons.a $(LIB_DIR)
$(CP) libcons.a $(LIB_DIR)
 
$(LIB_DIR) :
$(MKDIR) $(LIB_DIR)
 
clean :
$(RM) *.o
$(RM) *.err
$(RM) libcons.a
 
allclean :
echo # XTN Library dependencies > deps
$(RM) $(LIB_PATH)libcons.a
 
deps: $(OBJS:.o=.c)
$(CC) $(C_OPT) -M $(OBJS:.o=.c) > deps
 
#
# The library!!
#
libcons.a : $(OBJS)
$(AR) rs libcons.a $(OBJS)
 
ifeq (deps,$(wildcard deps))
include deps
endif
/shark/branches/xen/oslib/Makefile
0,0 → 1,3
targets:= xlib/ kl/
 
exported-cppflags:= -I$(srctree)/libc/arch/$(ARCH)/include
/shark/branches/xen/oslib/examples/makefile
File deleted
/shark/branches/xen/oslib/examples/Makefile
0,0 → 1,35
# Standard library for X/COFF applications
# Makefile for GNU MAKE & GCC 2.8.0
 
ifndef BASE
BASE = ..
BASEDOS = ..
endif
 
include $(BASE)/config.mk
 
all: mbdemo.xtn timetest.xtn eventdem.xtn vmdemo.xtn \
ctxswdem.xtn scheddem.xtn cpudemo.xtn biosdemo.xtn \
asdemo.xtn kerndem.xtn
 
%.ftp: %.xtn
ncftpput -u ll -p example thorin . $<
%.flp: %.xtn
mcopy $< a:
 
clean :
$(RM) *.o
$(RM) *.err
$(RM) *.xtn
 
#
# Demo
#
 
kerndem.xtn: syscalls.o $(LIB_PATH)/libhc.a $(LIB_PATH)/libhm.a $(LIB_PATH)/libhx.a $(LIB_PATH)/libkl.a
$(LD) $(LINK_OPT) $(LIB_PATH)x0.o syscalls.o --start-group -lhc -lhm -lhx -lkl -lcons --end-group -o $@
 
 
%.xtn : %.o $(LIB_PATH)/libhc.a $(LIB_PATH)/libhm.a $(LIB_PATH)/libhx.a $(LIB_PATH)/libkl.a
$(LD) $(LINK_OPT) $(LIB_PATH)x0.o $< --start-group -lhc -lhm -lhx -lkl -lcons --end-group -o $@
# $(LD) $(LINK_OPT) $(LIB_PATH)x0.o $< --start-group -lhc -lhx -lkl --end-group -o $@
/shark/branches/xen/oslib/xlib/makefile
File deleted
/shark/branches/xen/oslib/xlib/Makefile
0,0 → 1,19
targets:= \
libx0.a \
xinfo.o \
x1.o \
xsystab.o \
xconv.o \
xdosf.o \
xdosm.o \
ccpu.o \
fpu.o \
irq.o \
ctxsw.o \
xinit.o \
idtinit.o \
vm86.o \
xbios.o
 
libx0.a-objs:= x0.o