fix build

svn path=/trunk/; revision=52176
This commit is contained in:
Timo Kreuzer 2011-06-10 17:41:02 +00:00
parent a3dee99b18
commit 14531e0020
17 changed files with 24 additions and 54 deletions

View file

@ -3,8 +3,6 @@
#include <asm.inc>
#include <arch.h>
.text
.code16

View file

@ -23,9 +23,6 @@
.text
.code16
#define ASM
#include <arch.h>
PUBLIC ChainLoadBiosBootSectorCode
ChainLoadBiosBootSectorCode:
.code64

View file

@ -20,9 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
EXTERN(DriveMapInt13HandlerStart)
Int13Handler:

View file

@ -20,9 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
/*
* U32 CpuidSupported(VOID);

View file

@ -20,10 +20,6 @@
.text
.code16
#define ASM
#include <arch.h>
.p2align 2 /* force 4-byte alignment */
EXTERN(i386idt)
/* Exception 0 - Divide By Zero */

View file

@ -23,9 +23,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
/*
@ -199,7 +197,7 @@ EXTERN(PnpBiosGetDeviceNode)
mov al, [rsi]
mov _pnp_node_number, al
/* convert pointer to node buffer to segment/offset */
/* convert pointer to node buffer to segment/offset */
mov eax, [rbp + 0x0C]
shr eax, 4
and eax, 0xf000
@ -215,7 +213,7 @@ EXTERN(PnpBiosGetDeviceNode)
mov ax, _pnp_bios_data_segment
push ax
/* push control flag */
/* push control flag */
push 0x0001
/* push pointer to node buffer (segment/offset) */

View file

@ -20,8 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
#include <ver.h>
#define SCREEN_ATTR 0x1f /* Bright white on blue background */
@ -517,7 +516,7 @@ i386PrintTextLoop2:
jmp i386PrintTextLoop
i386PrintTextDone:
ret
/************************************************************************/

View file

@ -24,8 +24,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
Int386_REGS:

View file

@ -23,8 +23,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
#include <multiboot.h>
/*
@ -33,7 +32,7 @@
*/
.code64
.globl PageDirectoryStart
.globl pml4_startup
.globl pdp_startup
.globl pd_startup

View file

@ -20,9 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
EXTERN(_ChainLoadBiosBootSectorCode)
.code32

View file

@ -20,9 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
EXTERN(_DriveMapInt13HandlerStart)
Int13Handler:

View file

@ -20,9 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
/*
* U32 CpuidSupported(VOID);

View file

@ -20,8 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
.p2align 2 /* force 4-byte alignment */

View file

@ -20,9 +20,8 @@
.text
.code16
#define ASM
#include <arch/pc/x86common.h>
#include <arch.h>
/*
@ -144,7 +143,7 @@ EXTERN(_PnpBiosGetDeviceNodeCount)
movzwl %ax,%ecx
movl %ecx,_pnp_result
call switch_to_prot
.code32
@ -196,14 +195,14 @@ EXTERN(_PnpBiosGetDeviceNode)
movb (%esi),%al
movb %al,_pnp_node_number
/* convert pointer to node buffer to segment/offset */
/* convert pointer to node buffer to segment/offset */
movl 0x0C(%ebp),%eax
shrl $4,%eax
andl $0xf000,%eax
movw %ax,_pnp_buffer_segment
movw %ax,_pnp_buffer_segment
movl 0x0C(%ebp),%eax
andl $0xffff,%eax
movw %ax,_pnp_buffer_offset
movw %ax,_pnp_buffer_offset
call switch_to_real
.code16
@ -212,7 +211,7 @@ EXTERN(_PnpBiosGetDeviceNode)
movw _pnp_bios_data_segment,%ax
pushw %ax
/* push control flag */
/* push control flag */
pushw $0x0001
/* push pointer to node buffer (segment/offset) */

View file

@ -21,8 +21,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
#include <ver.h>
#define SCREEN_ATTR 0x1f /* Bright white on blue background */

View file

@ -20,9 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
.code32
EXTERN(_BootNewLinuxKernel)

View file

@ -20,8 +20,7 @@
.text
.code16
#define ASM
#include <arch.h>
#include <arch/pc/x86common.h>
#include <multiboot.h>
/*
@ -30,7 +29,7 @@
*/
.code32
.globl _PageDirectoryStart
.globl _startup_pagedirectory
.globl _lowmem_pagetable
.globl _kernel_pagetable