diff options
| author | Jon Morton <jonanin@gmail.com> | 2012-04-02 22:18:01 -0500 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-03 16:02:38 -0700 |
| commit | 632a4c9326561de2bd9d9ded19a82f22678a0cf4 (patch) | |
| tree | e5c5c509b2679cab824819c1d6340e44986d950d /src/rt/arch | |
| parent | 704ca046a13977175975cb20a77ea2fbac15d77a (diff) | |
| download | rust-632a4c9326561de2bd9d9ded19a82f22678a0cf4.tar.gz rust-632a4c9326561de2bd9d9ded19a82f22678a0cf4.zip | |
Refactor includes structure, getting rid of rust_internal.h
Many changes to code structure are included: - removed TIME_SLICE_IN_MS - removed sychronized_indexed_list - removed region_owned - kernel_owned move to kernel.h, task_owned moved to task.h - global configs moved to rust_globals.h - changed #pragma once to standard guard in rust_upcall.h - got rid of memory.h
Diffstat (limited to 'src/rt/arch')
| -rw-r--r-- | src/rt/arch/i386/context.cpp | 8 | ||||
| -rw-r--r-- | src/rt/arch/x86_64/context.cpp | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/src/rt/arch/i386/context.cpp b/src/rt/arch/i386/context.cpp index e65420dc0e3..14dbb3e0db7 100644 --- a/src/rt/arch/i386/context.cpp +++ b/src/rt/arch/i386/context.cpp @@ -1,10 +1,6 @@ -#include "context.h" - -#include "../../rust.h" -#include <stdio.h> -#include <stdlib.h> -#include <assert.h> +#include "context.h" +#include "../../rust_globals.h" extern "C" uint32_t CDECL swap_registers(registers_t *oregs, registers_t *regs) diff --git a/src/rt/arch/x86_64/context.cpp b/src/rt/arch/x86_64/context.cpp index 46a606c6c6e..aefb1fef2c2 100644 --- a/src/rt/arch/x86_64/context.cpp +++ b/src/rt/arch/x86_64/context.cpp @@ -1,10 +1,6 @@ -#include "context.h" - -#include "../../rust.h" -#include <stdio.h> -#include <stdlib.h> -#include <assert.h> +#include "context.h" +#include "../../rust_globals.h" extern "C" void CDECL swap_registers(registers_t *oregs, registers_t *regs) |
