diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/arch.S b/reactos/boot/freeldr/freeldr/arch/amd64/arch.S index 2bb7efba100..4edfb5c9934 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/arch.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/arch.S @@ -3,8 +3,6 @@ #include -#include - .text .code16 diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/boot.S b/reactos/boot/freeldr/freeldr/arch/amd64/boot.S index bc2e43e9e8b..277e773b992 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/boot.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/boot.S @@ -23,9 +23,6 @@ .text .code16 -#define ASM -#include - PUBLIC ChainLoadBiosBootSectorCode ChainLoadBiosBootSectorCode: .code64 diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/drvmap.S b/reactos/boot/freeldr/freeldr/arch/amd64/drvmap.S index 6871fe0f62d..9cfba3ccb45 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/drvmap.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/drvmap.S @@ -20,9 +20,7 @@ .text .code16 -#define ASM -#include - +#include EXTERN(DriveMapInt13HandlerStart) Int13Handler: diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/i386cpu.S b/reactos/boot/freeldr/freeldr/arch/amd64/i386cpu.S index ee3ee6fe256..449d491b88b 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/i386cpu.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/i386cpu.S @@ -20,9 +20,7 @@ .text .code16 -#define ASM - -#include +#include /* * U32 CpuidSupported(VOID); diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/i386idt.S b/reactos/boot/freeldr/freeldr/arch/amd64/i386idt.S index 10d3f16a0ae..38e9790825d 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/i386idt.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/i386idt.S @@ -20,10 +20,6 @@ .text .code16 -#define ASM -#include - - .p2align 2 /* force 4-byte alignment */ EXTERN(i386idt) /* Exception 0 - Divide By Zero */ diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/i386pnp.S b/reactos/boot/freeldr/freeldr/arch/amd64/i386pnp.S index c74fb97d64d..10228caa476 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/i386pnp.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/i386pnp.S @@ -23,9 +23,7 @@ .text .code16 -#define ASM - -#include +#include /* @@ -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) */ diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/i386trap.S b/reactos/boot/freeldr/freeldr/arch/amd64/i386trap.S index 195bf097cd0..11397fab13f 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/i386trap.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/i386trap.S @@ -20,8 +20,7 @@ .text .code16 -#define ASM -#include +#include #include #define SCREEN_ATTR 0x1f /* Bright white on blue background */ @@ -517,7 +516,7 @@ i386PrintTextLoop2: jmp i386PrintTextLoop i386PrintTextDone: - + ret /************************************************************************/ diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/int386.S b/reactos/boot/freeldr/freeldr/arch/amd64/int386.S index 6881173910d..820eb49e82c 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/int386.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/int386.S @@ -24,8 +24,7 @@ .text .code16 -#define ASM -#include +#include Int386_REGS: diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/mb.S b/reactos/boot/freeldr/freeldr/arch/amd64/mb.S index 51b06bc1e01..fe4ff62334d 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/mb.S +++ b/reactos/boot/freeldr/freeldr/arch/amd64/mb.S @@ -23,8 +23,7 @@ .text .code16 -#define ASM -#include +#include #include /* @@ -33,7 +32,7 @@ */ .code64 .globl PageDirectoryStart - + .globl pml4_startup .globl pdp_startup .globl pd_startup diff --git a/reactos/boot/freeldr/freeldr/arch/i386/boot.S b/reactos/boot/freeldr/freeldr/arch/i386/boot.S index cc1f469d444..079ae1e1976 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/boot.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/boot.S @@ -20,9 +20,7 @@ .text .code16 -#define ASM -#include - +#include EXTERN(_ChainLoadBiosBootSectorCode) .code32 diff --git a/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S b/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S index d6b081ca60b..9a9d284b5fb 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S @@ -20,9 +20,7 @@ .text .code16 -#define ASM -#include - +#include EXTERN(_DriveMapInt13HandlerStart) Int13Handler: diff --git a/reactos/boot/freeldr/freeldr/arch/i386/i386cpu.S b/reactos/boot/freeldr/freeldr/arch/i386/i386cpu.S index 6dfb91dbf4a..e3ef67d73be 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/i386cpu.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/i386cpu.S @@ -20,9 +20,7 @@ .text .code16 -#define ASM - -#include +#include /* * U32 CpuidSupported(VOID); diff --git a/reactos/boot/freeldr/freeldr/arch/i386/i386idt.S b/reactos/boot/freeldr/freeldr/arch/i386/i386idt.S index 8c7df9e44bb..68e8e95cdd5 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/i386idt.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/i386idt.S @@ -20,8 +20,7 @@ .text .code16 -#define ASM -#include +#include .p2align 2 /* force 4-byte alignment */ diff --git a/reactos/boot/freeldr/freeldr/arch/i386/i386pnp.S b/reactos/boot/freeldr/freeldr/arch/i386/i386pnp.S index 9276c72b1c4..52c402cc192 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/i386pnp.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/i386pnp.S @@ -20,9 +20,8 @@ .text .code16 -#define ASM +#include -#include /* @@ -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) */ diff --git a/reactos/boot/freeldr/freeldr/arch/i386/i386trap.S b/reactos/boot/freeldr/freeldr/arch/i386/i386trap.S index be5c7de3ce9..9dc9e481661 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/i386trap.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/i386trap.S @@ -21,8 +21,7 @@ .text .code16 -#define ASM -#include +#include #include #define SCREEN_ATTR 0x1f /* Bright white on blue background */ diff --git a/reactos/boot/freeldr/freeldr/arch/i386/linux.S b/reactos/boot/freeldr/freeldr/arch/i386/linux.S index da2f42600a8..51e6fb7344b 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/linux.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/linux.S @@ -20,9 +20,7 @@ .text .code16 -#define ASM -#include - +#include .code32 EXTERN(_BootNewLinuxKernel) diff --git a/reactos/boot/freeldr/freeldr/arch/i386/mb.S b/reactos/boot/freeldr/freeldr/arch/i386/mb.S index 3b36d179053..9f9ad808430 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/mb.S +++ b/reactos/boot/freeldr/freeldr/arch/i386/mb.S @@ -20,8 +20,7 @@ .text .code16 -#define ASM -#include +#include #include /* @@ -30,7 +29,7 @@ */ .code32 .globl _PageDirectoryStart - + .globl _startup_pagedirectory .globl _lowmem_pagetable .globl _kernel_pagetable