Commit graph

342 commits

Author SHA1 Message Date
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
4fc507bc6b fix bug in the TSS initialization for a new task, which is a copy of the current task 2011-04-18 12:18:59 -07: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
Stefan Lankes
68281c8ad0 cosmetic changes, minor code optimization 2011-04-18 15:10:24 +02:00
Stefan Lankes
47f37e3b00 use memory barriers instead of read memory barriers to determine the current TSC
=> more accurate caclculation of the timer frequency
+ minor cosmetic changes
2011-04-18 15:07:45 +02:00
Stefan Lankes
624afd187c by entering a system call, we need also to push the segment descriptor on the stack 2011-04-18 15:05:27 +02:00
Stefan Lankes
04a0dfb114 enable the support of the system call "fork"
remove obsolete file
2011-04-18 15:03:35 +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
Jacek Galowicz
b9b7841dc3 Moved IDT related structs from idt.c to idt.h. 2011-04-15 15:08:41 +02:00
Jacek Galowicz
2a6c555082 File read/write offset
Added offset integration.
2011-04-14 17:21:17 +02:00
Stefan Lankes
02cf1d87f2 resolve some merge conflicts 2011-04-14 08:58:07 +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
Stefan Lankes
a9ce93d119 define the macro SCC_BOOTINFO, which defines the address of the boot parameters 2011-04-13 11:10:47 -07:00
Stefan Lankes
9fb28ccfd9 currently, a fork doesn't work on all architectures => disable this feature in our examples 2011-04-13 11:04:46 -07:00
Stefan Lankes
eeb49cdb90 add the SCC support of a initial ramdisk 2011-04-13 11:03:34 -07:00
Stefan Lankes
4da0a6e15e set correct dependencies between the rules 2011-04-13 11:01:24 -07:00
Stefan Lankes
12fb2a60f2 create a dynamic region, which specifies the boot parameters 2011-04-13 07:04:50 -07: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
Marian Ohligs
be0a6fa72f Merge branch 'master' into readwrite
Conflicts:
	arch/x86/include/asm/page.h
	arch/x86/include/asm/processor.h
	arch/x86/kernel/idt.c
2011-04-12 12:58:38 +02:00
Marian Ohligs
cc06ff20e0 some test changes 2011-04-12 12:48:52 +02:00
Stefan Lankes
0fbf2df5ac use inline assembler to load the IDT 2011-04-08 10:45:26 -07:00
Marian Ohligs
41bee4b453 fixing merge 2011-04-08 17:38:29 +02:00
Stefan Lankes
ba1388c13d Merge branch 'master' of git.lfbs.rwth-aachen.de:metalsvm into rcce 2011-04-08 07:26:55 -07:00
Marian Ohligs
b6079272c1 Merge branch 'master' into readwrite
Conflicts:
	.gitignore
	arch/x86/include/asm/apic.h
	arch/x86/include/asm/processor.h
2011-04-08 16:25:00 +02:00
Stefan Lankes
d3ad7e1c66 move the call of scc_init to main function 2011-04-08 07:24:47 -07:00
Stefan Lankes
67b39b982a Merge branch 'master' of git.lfbs.rwth-aachen.de:metalsvm 2011-04-08 16:04:41 +02:00
Stefan Lankes
e3e06fe523 set APICID of the boot processor to 0 2011-04-08 16:02:29 +02:00
Stefan Lankes
92c5917ef4 add support to map kernel pages above 1GB 2011-04-08 16:02:29 +02:00
Stefan Lankes
ab78beb859 cosemtic changes 2011-04-08 16:02:28 +02:00
Stefan Lankes
8868900e19 redesign of nested if flag handling
=> only clearing and setting of the IF flag
2011-04-08 16:02:28 +02:00
Stefan Lankes
4d14ec6aa7 use HALT instead of NOP8 2011-04-08 16:02:24 +02:00
Stefan Lankes
c43efee104 use HALT instead of NOP 2011-04-08 16:02:18 +02:00
Stefan Lankes
1ff9c397a9 fix bug in the debug messages 2011-04-08 16:02:08 +02:00
Stefan Lankes
ea5b7e4930 reset APIC before timer initialization 2011-04-08 16:02:01 +02:00
Stefan Lankes
e96a549349 more accurate calculation of the processor frequency 2011-04-08 16:01:54 +02:00
Stefan Lankes
030243f200 introduce the hlt instruction 2011-04-08 16:01:44 +02:00
Stefan Lankes
6b86f3c572 add the address of error status register 2011-04-08 16:01:36 +02:00
Marian Ohligs
47a69a5603 corrent status 2011-04-08 14:58:33 +02:00
Marian Ohligs
04583e3982 read write patch (not working yet) 2011-04-07 16:41:39 +02:00
Marian Ohligs
bbc0bbe2c3 add some .gitignore filetypes 2011-04-07 16:18:18 +02:00
Marian Ohligs
73eab577a6 add some git .ignore filetypes 2011-04-07 15:58:37 +02:00
Stefan Lankes
683f8cca1e add macro to simplify the using of th hlt instruction 2011-04-06 05:38:44 -07:00
Stefan Lankes
f0e4a2b833 add the support of the memory type MPBT
=> seesection "10.1.2 Internal Cache Changes" of SCC External Architecture Specification (R1.1)
2011-04-05 23:43:44 -07:00
Jacek Galowicz
6c6d77cfa6 Committed the rest. There is only few stuff missing.
Embedded nice pictures.
2011-04-05 14:44:42 +02:00
Stefan Lankes
e599063dd2 cosmetic changes 2011-04-05 11:37:20 +02:00
Stefan Lankes
b46664b375 increasing the readability 2011-04-05 11:33:41 +02:00