• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

マイクロカーネル、プリエンプティブマルチタスクを目指しているOSです。


Commit MetaInfo

Révision165de6142cfd648a1c77b544a0b722728fad8a5d (tree)
l'heure2014-10-18 22:28:43
Auteurvosystems <doradora.motochan@gmai...>
Commitervosystems

Message de Log

Add Task Switch

Change Summary

Modification

--- a/Kernel/Makefile
+++ b/Kernel/Makefile
@@ -37,9 +37,10 @@ GRAPHIC_C=Graphical.c
3737 SYSTEM_C=System.c
3838 MESSAGE_C=Message.c
3939 TIMER_C=timer.c
40+TASK_C=task.c
4041
4142 #オブジェクト
42-BOOT_OBJ=${BOOT_S:.S=.o} ${BOOT_C:.c=.o} ${VANE_S:.S=.o} ${KEYBOARD_C:.c=.o} ${STDIO_C:.c=.o} ${GDT_IDT_C:.c=.o} ${INTERRUPT_C:.c=.o} ${STRING_C:.c=.o} ${ASM_INTERRUPT_S:.S=.o} ${SCANCODE_C:.c=.o} ${MEMMAN_C:.c=.o} ${FAT_C:.c=.o} ${GRAPHIC_C:.c=.o} ${SYSTEM_C:.c=.o} ${MESSAGE_C:.c=.o} ${TIMER_C:.c=.o}
43+BOOT_OBJ=${BOOT_S:.S=.o} ${BOOT_C:.c=.o} ${VANE_S:.S=.o} ${KEYBOARD_C:.c=.o} ${STDIO_C:.c=.o} ${GDT_IDT_C:.c=.o} ${INTERRUPT_C:.c=.o} ${STRING_C:.c=.o} ${ASM_INTERRUPT_S:.S=.o} ${SCANCODE_C:.c=.o} ${MEMMAN_C:.c=.o} ${FAT_C:.c=.o} ${GRAPHIC_C:.c=.o} ${SYSTEM_C:.c=.o} ${MESSAGE_C:.c=.o} ${TIMER_C:.c=.o} ${TASK_C:.c=.o}
4344
4445 kernel: ${BOOT_OBJ}
4546 ${LD} ${TARGET} ${BOOT_OBJ}
--- a/include/VaneOS.h
+++ b/include/VaneOS.h
@@ -99,23 +99,4 @@ typedef struct
9999 char fs_type[8];
100100 }bpb_data_t;
101101
102-/* fifo.c *//*
103-struct TSS32 {
104- int backlink, esp0, ss0, esp1, ss1, esp2, ss2, cr3;
105- int eip, eflags, eax, ecx, edx, ebx, esp, ebp, esi, edi;
106- int es, cs, ss, ds, fs, gs;
107- int ldtr, iomap;
108-};
109-struct TASK {
110- int sel, flags;
111- int level, priority;
112- struct FIFO32 fifo;
113- struct TSS32 tss;
114-};
115-
116-void fifo32_init(struct FIFO32 *fifo, int size, int *buf, struct TASK *task);
117-int fifo32_put(struct FIFO32 *fifo, int data);
118-int fifo32_get(struct FIFO32 *fifo);
119-int fifo32_status(struct FIFO32 *fifo);
120-*/
121102 #endif
--- a/include/VaneOS.h~
+++ b/include/VaneOS.h~
@@ -10,9 +10,8 @@
1010
1111 #define local static
1212 #define DEBUG while(getchar()!='\n')
13-void vane_io_cli(void);
14-void vane_io_sti(void);
1513 void write_mem_8(int,int);
14+void farjmp(int eip,int cs);
1615
1716 void io_hlt(void);
1817 void io_cli(void);