Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 166 → Rev 167

/SPARTAN/trunk/arch/ppc/src/dummy.s
28,6 → 28,7
 
.text
 
.global memcopy
.global cpu_priority_high
.global cpu_priority_low
.global cpu_priority_read
50,6 → 51,7
.global asm_delay_loop
.global dummy
 
memcopy:
cpu_priority_high:
cpu_priority_low:
cpu_priority_restore:
/SPARTAN/trunk/arch/amd64/src/dummy.s
28,6 → 28,7
 
.text
 
.global memcopy
.global cpu_priority_high
.global cpu_priority_low
.global cpu_priority_read
53,6 → 54,7
.global frame_arch_init
.global dummy
 
memcopy:
cpu_priority_high:
cpu_priority_low:
cpu_priority_restore:
/SPARTAN/trunk/arch/ia32/src/pm.c
34,6 → 34,7
#include <arch/asm.h>
#include <arch/context.h>
#include <panic.h>
#include <arch/mm/page.h>
 
/*
* Early ia32 configuration functions and data structures.
131,9 → 132,9
/* Clean IOPL(12,13) and NT(14) flags in EFLAGS register */
static void clean_IOPL_NT_flags(void)
{
asm
asm
(
"pushfl;"
"pushfl;"
"pop %%eax;"
"and $0xffff8fff,%%eax;"
"push %%eax;"
147,9 → 148,9
/* Clean AM(18) flag in CR0 register */
static void clean_AM_flag(void)
{
asm
asm
(
"mov %%cr0,%%eax;"
"mov %%cr0,%%eax;"
"and $0xFFFBFFFF,%%eax;"
"mov %%eax,%%cr0;"
:
158,10 → 159,6
);
}
 
 
 
 
 
void pm_init(void)
{
struct descriptor *gdt_p = (struct descriptor *) PA2KA(gdtr.base);
/SPARTAN/trunk/arch/ia32/src/proc/scheduler.c
34,5 → 34,5
void before_thread_runs_arch(void)
{
CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-8];
CPU->arch.tss->ss0 = selector(KDATA_DES);
CPU->arch.tss->ss0 = selector(KDATA_DES);
}
/SPARTAN/trunk/arch/ia32/src/mm/page.c
37,15 → 37,6
#include <synch/spinlock.h>
#include <debug.h>
 
/*
* Note.
* This is the preliminary code for controlling paging mechanism on ia32. It is
* needed by other parts of the kernel for its ability to map virtual addresses
* to physical. SMP code relies on this feature. Other than that, this code is
* by no means meant to implement virtual memory in terms of swapping pages in
* and out.
*/
 
__address bootstrap_dba;
 
void page_arch_init(void)
/SPARTAN/trunk/arch/ia32/src/drivers/ega.c
29,6 → 29,7
#include <arch/ega.h>
#include <putchar.h>
#include <mm/page.h>
#include <arch/mm/page.h>
#include <synch/spinlock.h>
#include <arch/types.h>
#include <arch/asm.h>