Commit graph

49 commits

Author SHA1 Message Date
Marian Ohligs
400451879c remove test printf 2012-12-30 21:39:20 +01:00
Marian Ohligs
f0ff5b2c86 remove "syntactic sugar" 2012-12-30 21:15:37 +01:00
Stefan Lankes
575727535a use correct coding style 2012-07-20 09:32:58 +02:00
Stefan Lankes
edadf16d7f Merge branch 'master' into readwrite 2012-07-20 09:05:57 +02:00
Stefan Lankes
a929feb257 nicer code style 2012-06-10 09:00:02 +02:00
Stefan Lankes
227cc19890 add alpha version of x64 support
New features:
- support of kernel tasks in 64bit mode
- support of LwIP in 64bit mode

Missing features in 64bit mode
- user-level support
- APIC support => SMP support

To create a 64bit version of the MetalSVM kernel, the compiler flags “-m64 -mno-red-zone” and the assembler flags “-felf64” has to be used. Please use qemu-system-x86_64 as test platform.

Notice, metalsvm.elf is a 32bit ELF file. However, it contains (beside the startup code) only 64bit code. This is required because GRUB doesn’t boot 64bit ELF kernels. Therefore, for disassembling via objdump the flag  “-M x86-64” has to be used.
2012-06-10 08:05:24 +02:00
Stefan Lankes
45313d47f2 add build environment for 64bit code
=> environment build 64bit kernel, but the kernel is not tested!
=> work in progess
2012-05-24 10:49:45 +02:00
Marian Ohligs
b292e96cec fix bug 2011-11-09 12:51:21 +01:00
Marian Ohligs
6a10fb1a0b add ls in mshell 2011-11-09 12:14:31 +01:00
Marian Ohligs
a834155cce add readdir 2011-11-09 11:56:37 +01:00
Marian Ohligs
c63fa01de6 add opendir, add closedir 2011-11-08 16:45:16 +01:00
Stefan Lankes
a33d1ca9eb use a simpler name (log) for kernel messages 2011-10-26 13:05:31 -07:00
Stefan Lankes
2e12c7ca1d add character device to dump all kernel messages 2011-09-25 23:58:37 +02:00
Stefan Lankes
0709d365a1 remove some compiler warnings 2011-09-15 21:49:56 +02:00
Marian Ohligs
0dc10634a9 - code cleanup
- rename netio in socket
    - reactivate workaround in lseek
2011-09-14 14:30:06 +02:00
Marian Ohligs
27b7c6aa6e add networkI/O (unstable) 2011-08-10 18:56:40 +02:00
Marian Ohligs
032bba3a95 - some chmod changes 2011-08-02 15:58:20 +02:00
Marian Ohligs
c7012f7bc0 - enable flags O_RDONLY O_WRONLY and O_RDWR 2011-08-02 11:57:14 +02:00
Marian Ohligs
a154525683 - correct some errno msg 2011-08-02 11:28:48 +02:00
Marian Ohligs
55e0e971be merge master 2011-07-27 10:28:01 +02:00
Marian Ohligs
c768f03193 - initrd_open now init in initrd_mkdir
- O_CREAT is working!
2011-07-21 13:32:09 +02:00
Marian Ohligs
a11897414d - O_TRUNC is working yet
- fixing some bugs in O_TRUNC
- disable some buggy code
2011-07-21 10:24:37 +02:00
Marian Ohligs
1744238f28 - open is working yet. Have to be tested a little bit more. 2011-07-06 04:00:55 +02:00
Marian Ohligs
7b63bf1d27 !!!!! -> increasing the offset has to be done inside the fs/chardriver.
- rewrite the initrd_read/write, char_driver r/w. Now all functions use fildes_t instead of vfs_node_t structs.
- eleminate some compiler warnings
- some changes in open, to reduce compiler warnings. This function isn't working yet!
2011-07-05 14:50:25 +02:00
Marian Ohligs
0cd8ea9e37 add initrd_open. still buggy! 2011-07-01 18:03:49 +02:00
Marian Ohligs
6027bb2d15 redesign of fs_open to support creating files and O_TRUNK 2011-06-21 17:51:52 +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
4f0bc05a74 add basic support of scanf, get ... 2011-05-23 12:56:14 +02: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
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
29ab43f289 First steps to realize Inter-Core-Communication via RCCE 2011-04-23 00:13:12 -07:00
Marian Ohligs
40ce1fe457 manual merge old readwrite branch 2011-04-21 00:25:05 +02:00
Marian Ohligs
e2ae62af2b add initrd_write 2011-04-20 23:14:15 +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
f730f410c3 Merge branch 'master' into readwrite
Conflicts:
	arch/x86/include/asm/apic.h
	arch/x86/include/asm/page.h
	arch/x86/include/asm/processor.h
	arch/x86/kernel/idt.c
	fs/initrd.c
2011-04-16 23:20:52 +02:00
Stefan Lankes
eeb49cdb90 add the SCC support of a initial ramdisk 2011-04-13 11:03:34 -07:00
Marian Ohligs
4990227b5c add initrd_write (working with small files only) 2011-04-12 16:48:16 +02:00
Marian Ohligs
04583e3982 read write patch (not working yet) 2011-04-07 16:41:39 +02:00
Stefan Lankes
88393984d9 use platform independent data types to create the initrd 2011-03-22 19:04:37 +01:00
stefan
180f370298 - add the directories sbin and var
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@403 315a16e6-25f9-4109-90ae-ca3045a26c18
2011-02-10 06:47:22 +00:00
stefan
2f595f03c6 - remove compiler warnings
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@402 315a16e6-25f9-4109-90ae-ca3045a26c18
2011-02-09 20:23:46 +00:00
stefan
9130e9f03c - increasing the readability
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@396 315a16e6-25f9-4109-90ae-ca3045a26c18
2011-02-09 07:07:07 +00:00
stefan
98769944c8 - remove bug in initrd_read
=> fix the using of the argument "offset" 


git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@377 315a16e6-25f9-4109-90ae-ca3045a26c18
2011-01-19 17:12:20 +00:00
stefan
da2b895d68 - redesign of the initial ram disk
- now, we could map file in subdirectories


git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@119 315a16e6-25f9-4109-90ae-ca3045a26c18
2010-08-22 09:56:02 +00:00
stefan
5cfbfb5a32 - add a simple virtual filesystem and as simple initial ramdisk
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@102 315a16e6-25f9-4109-90ae-ca3045a26c18
2010-08-17 21:20:03 +00:00