瀏覽代碼

Removed dead code identified by symcheck

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
dc52db4920
共有 1 個檔案被更改,包括 0 行新增17 行删除
  1. 0
    17
      src/arch/i386/core/realmode.c

+ 0
- 17
src/arch/i386/core/realmode.c 查看文件

@@ -21,20 +21,3 @@ void memcpy_from_real ( void *dest, segoff_t src, size_t n ) {
21 21
 }
22 22
 
23 23
 #endif /* KEEP_IT_REAL */
24
-
25
-
26
-#define RM_STACK_SIZE ( 0x1000 )
27
-
28
-/* gcc won't let us use extended asm outside a function (compiler
29
- * bug), ao we have to put these asm statements inside a dummy
30
- * function.
31
- */
32
-static void work_around_gcc_bug ( void ) __attribute__ ((used));
33
-static void work_around_gcc_bug ( void ) {
34
-	/* Export _real_mode_stack_size as absolute linker symbol */
35
-	__asm__ ( ".globl real_mode_stack_size" );
36
-	__asm__ ( ".equ real_mode_stack_size, %c0" : : "i" (RM_STACK_SIZE) );
37
-}
38
-
39
-char *real_mode_stack;
40
-int lock_real_mode_stack;

Loading…
取消
儲存