Commit graph

134 commits

Author SHA1 Message Date
Marian Ohligs
58353723e1 fix typo 2011-06-12 12:22:18 +02:00
Marian Ohligs
16ac07a8ca fix bug in tasks.c 2011-06-12 12:18:54 +02:00
Marian Ohligs
2a23f30963 Merge branch 'master' into ohligs 2011-06-12 12:02:24 +02:00
Stefan Lankes
393808e198 fix bug in the initializtion of the BSS section
- DO NOT LONGER USE the compiler flag "-fno-zero-initialized-in-bss"
2011-06-09 08:18:12 +02:00
Marian Ohligs
47e22ba262 Merge branch 'master' into ohligs 2011-05-29 20:54:35 +02:00
Stefan Lankes
bfc5f29620 add ping test and increase the number of timeouts 2011-05-29 15:54:33 +02:00
Stefan Lankes
fdeceeac36 switch from lwip-1.3.2 to lwip 1.4.0 2011-05-29 15:36:02 +02:00
Marian Ohligs
83f5a4c426 Merge branch 'master' into ohligs
Conflicts:
	.gitignore
2011-05-29 11:20:49 +02:00
Stefan Lankes
cdd16a2b9f add the SSE support
=> context switch stores also the SSE registers
2011-05-28 23:35:46 +02:00
Jacek Galowicz
394befa3a8 Color management for procedures using vga_putchar
As seen in some BSD operating systems, you can now push and pop foreground and background colors onto a stack to change the colors you see on the screen whenever kprintf/kputchar is used.

This could become useful if one wants to see kernel space kprintfs in other colors than user space printfs or error messages in red and other debugging purposes.

Beware: This is just a small and dirty hack which protects the colorstack with locks and so on. But on task switching the color will not be switched. That makes different colors for different colors persistent for all the time difficult/impossible. But I considered adding colors to the task structures a bit overdone for a small debugging-help.

[Sorry for those commit-and-pull-back-mails. Forgot that I had this stuff on the master branch while pushing my own branch onto the server.]
2011-05-25 09:26:00 +02:00
Marian Ohligs
6ba32a14b5 Merge branch 'ohligs' into mshell
Conflicts:
	kernel/tests.c
2011-05-24 18:42:58 +02:00
Marian Ohligs
5c9ff18204 fixing a bug with fork 2011-05-24 18:41:24 +02:00
Marian Ohligs
9137549a42 add basic mshell
-> help
-> exit
-> path/to/elf
2011-05-24 00:48:56 +02:00
Marian Ohligs
bb80eec6e4 Merge branch 'ohligs' into readwrite 2011-05-23 13:48:12 +02:00
Marian Ohligs
bae6e2df51 add tiny hangman test 2011-05-23 13:47:05 +02:00
Marian Ohligs
ec6ccf9c3a Merge branch 'ohligs' into readwrite
Conflicts:
	newlib/examples/hello.c
2011-05-23 12:59:10 +02:00
Marian Ohligs
34641f4338 - add some open-flag defines
- some design changes
2011-05-19 12:53:47 +02:00
Marian Ohligs
33be04bfcd lseek only works with FS_FILE. On failture, the result is -EINVAL 2011-05-19 11:11:18 +02:00
Marian Ohligs
06f24224ef Merge branch 'ohligs' into readwrite 2011-05-18 18:18:36 +02:00
Marian Ohligs
9e5dcfc2b4 add lseek (SEEK_SET, SEEK_CUR, SEEK_END)
- still missing some filetype checking
2011-05-18 18:14:23 +02:00
Marian Ohligs
1f74434a46 Merge branch 'master' into ohligs 2011-05-18 12:50:41 +02:00
Stefan Lankes
08f5153257 add the support of inter core interrupts 2011-05-17 08:13:20 -07:00
Marian Ohligs
d1e0e2304d Merge branch 'ohligs' into readwrite
Conflicts:
	newlib/examples/test
2011-05-16 10:27:43 +02:00
Marian Ohligs
b94875ccfe initrd_write:
- writing strings of any length now possible
2011-05-16 10:19:13 +02:00
Marian Ohligs
4460d92843 add syscall lseek (not working yet)
some design changes in kernel/systcall.c
2011-05-12 11:29:31 +02:00
Marian Ohligs
0ac95a30b3 Merge branch 'ohligs' into readwrite
Conflicts:
	drivers/char/null.c
	drivers/stderr/Makefile
	drivers/stderr/stderr.c
	drivers/stdin/Makefile
	drivers/stdin/stdin.c
	drivers/stdout/Makefile
	drivers/stdout/stdout.c
	fs/initrd.c
	include/metalsvm/fs_types.h
	include/metalsvm/tasks_types.h
	kernel/syscall.c
	kernel/tasks.c
	kernel/tests.c
	newlib/examples/hello.c
	newlib/examples/test
	tools/Makefile
2011-04-26 17:27:42 +02:00
Marian Ohligs
6c45e03d0e Merge branch 'master' into ohligs
Conflicts:
	fs/initrd.c
2011-04-26 16:52:52 +02:00
Marian Ohligs
4c370ad377 Bug fixed in stdout: printf is working
some test changes in initrd_write
2011-04-26 16:43:57 +02:00
Stefan Lankes
3a0e42eef1 add ping pong test and some bug fixes in the ICC part 2011-04-24 07:27:27 -07:00
Marian Ohligs
ef59f6cb8d Merge branch 'master' into ohligs
Conflicts:
	kernel/tasks.c
2011-04-23 11:09:56 +02:00
Marian Ohligs
02f7fecc61 first stdin, stout, stderr implementation (still buggy) 2011-04-23 11:04:32 +02:00
Stefan Lankes
29ab43f289 First steps to realize Inter-Core-Communication via RCCE 2011-04-23 00:13:12 -07:00
Stefan Lankes
a563c756ee fix bug in the setup of the caching strategy 2011-04-21 09:33:49 -07:00
Stefan Lankes
f3b620a9be add rudimental support of the system call times
- no full support of the POSIX API
- however, the libc function clock works correctly
2011-04-21 10:13:58 +02:00
Stefan Lankes
0c411fd702 add basic support of sbrk and fix bug in saving of the fpu context 2011-04-21 07:32:20 +02:00
Stefan Lankes
7cb05d8f4a first version to support the FPU
- seems to work
- currently, we didn't support SIMD instructions
2011-04-21 07:32:10 +02:00
Marian Ohligs
e765e16eb1 fixed a bug in create_user_task 2011-04-21 01:05:47 +02:00
Marian Ohligs
40ce1fe457 manual merge old readwrite branch 2011-04-21 00:25:05 +02:00
Stefan Lankes
faa41e25e2 add basic support of sbrk and fix bug in saving of the fpu context 2011-04-20 21:23:22 +02:00
Stefan Lankes
7e0179f5f7 first version to support the FPU
- seems to work
- currently, we didn't support SIMD instructions
2011-04-20 15:16:22 +02:00
Marian Ohligs
0444ef966d - replace syscalls with kprintfs
- remove stdin, stdout and stderr for testing
2011-04-20 12:25:38 +02:00
Marian Ohligs
aefc7e1165 add to dev folder: stdin, stdout and stderr 2011-04-19 00:33:45 +02:00
Marian Ohligs
489ed562c9 Merge branch 'master' into readwrite
Conflicts:
	kernel/tasks.c
2011-04-18 23:26:08 +02:00
Stefan Lankes
bd703f6be4 avoid compiler errors by using MAX_CORES = 1 2011-04-18 06:44:17 -07:00
Stefan Lankes
68564c3238 Merge branch 'tests'
Conflicts:
	include/metalsvm/spinlock.h
	include/metalsvm/spinlock_types.h
	kernel/tasks.c
2011-04-18 15:36:22 +02:00
Stefan Lankes
e94c31d03b add a new IRQ save spinlock implementation
- avoids a deadlock
- usable in a interrupt handler
2011-04-18 15:12:18 +02:00
Jacek Galowicz
2a6c555082 File read/write offset
Added offset integration.
2011-04-14 17:21:17 +02:00
Stefan Lankes
b5908af744 Merge branch 'master' of git.lfbs.rwth-aachen.de:metalsvm into doxygen
Conflicts:
	.gitignore
	arch/x86/include/asm/apic.h
	arch/x86/include/asm/page.h
	arch/x86/include/asm/processor.h
	arch/x86/kernel/idt.c
2011-04-14 08:40:52 +02:00
Marian Ohligs
4990227b5c add initrd_write (working with small files only) 2011-04-12 16:48:16 +02:00
Marian Ohligs
e16eb7ea07 some cosmetic changes in syscall.c 2011-04-12 13:26:00 +02:00