ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
June 2011
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
25 participants
460 discussions
Start a n
N
ew thread
[tkreuzer] 52325: [FREELDR] - Instead of using the far jmp when switching to protected mode to go to the entry point, use a relative absolute jmp instruction, manually encoded - Remove the END from...
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 23:44:07 2011 New Revision: 52325 URL:
http://svn.reactos.org/svn/reactos?rev=52325&view=rev
Log: [FREELDR] - Instead of using the far jmp when switching to protected mode to go to the entry point, use a relative absolute jmp instruction, manually encoded - Remove the END from fathelp.inc, that was terminating the code - fix code for ML Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/fathelp.inc trunk/reactos/boot/freeldr/freeldr/arch/realmode/helpers.inc trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S trunk/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc trunk/reactos/boot/freeldr/freeldr/arch/realmode/pnp.inc trunk/reactos/boot/freeldr/freeldr/arch/realmode/pxe.inc Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/fathelp.inc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/realmode/fathelp.inc [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/realmode/fathelp.inc [iso-8859-1] Fri Jun 17 23:44:07 2011 @@ -217,9 +217,8 @@ ret -msgLoading: .asciz "Loading FreeLoader...\r\n" +msgLoading: .asciz "Loading FreeLoader...", CR, LF .org 510 // Pad to 510 bytes .word HEX(0aa55) // BootSector signature -END Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/helpers.inc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/realmode/helpers.inc [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/realmode/helpers.inc [iso-8859-1] Fri Jun 17 23:44:07 2011 @@ -1,10 +1,10 @@ Empty8042: - .word 0x00eb,0x00eb // jmp $+2, jmp $+2 - in al, 0x64 - cmp al, 0xff // legacy-free machine without keyboard + .word HEX(00eb), HEX(00eb) // jmp $+2, jmp $+2 + in al, HEX(64) + cmp al, HEX(0ff) // legacy-free machine without keyboard jz Empty8042_ret // controllers on Intel Macs read back 0xFF - test al, 0x02 + test al, 2 jnz Empty8042 Empty8042_ret: ret @@ -12,11 +12,11 @@ EnableA20: pusha call Empty8042 - mov al, 0xD1 // command write - out 0x64, al + mov al, HEX(0D1) // command write + out HEX(064), al call Empty8042 - mov al, 0xDF // A20 on - out 0x60, al + mov al, HEX(0DF) // A20 on + out HEX(060), al call Empty8042 popa ret @@ -46,9 +46,9 @@ writechr: pushf pusha - mov ah, 0x0E + mov ah, HEX(0E) xor bx, bx - int 0x10 + int HEX(10) popa popf ret Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S [iso-8859-1] Fri Jun 17 23:44:07 2011 @@ -31,7 +31,7 @@ call EnableA20 /* Safe real mode entry point in shared memory */ - mov dword ptr [BSS_RealModeEntry], offset switch_to_real16 + mov dword ptr ds:[BSS_RealModeEntry], offset switch_to_real16 /* Get address of optional header */ mov eax, dword ptr ds:[FREELDR_PE_BASE + IMAGE_DOS_HEADER_e_lfanew] @@ -41,8 +41,8 @@ mov eax, dword ptr ds:[eax + IMAGE_OPTIONAL_HEADER_AddressOfEntryPoint] add eax, FREELDR_PE_BASE - /* Patch the long jump instruction */ - mov word ptr [pm_offset], ax + /* Save entry point */ + mov dword ptr [pm_entrypoint], eax jmp exit_to_protected @@ -87,7 +87,12 @@ mov sp, word ptr ds:[stack16] /* Load IDTR with real mode value */ +#ifdef _USE_ML + DB 0Fh, 01h, 1Eh + DW rmode_idtptr +#else lidt rmode_idtptr +#endif sti /* These are ok now */ @@ -108,7 +113,12 @@ mov word ptr ds:[stack16], sp /* Load the GDT */ +#ifdef _USE_ML + DB 0Fh, 01h, 16h + DW rmode_idtptr +#else lgdt gdtptr +#endif /* Enable Protected Mode */ mov eax, cr0 @@ -116,14 +126,13 @@ mov cr0, eax /* Clear prefetch queue & correct CS */ - .byte HEX(0ea) // jmp far PMODE_CS:entry_point -pm_offset: - .word 0 // receives address of PE entry point - .word PMODE_CS + ljmp16 PMODE_CS, inpmode +inpmode: + .byte HEX(0ff), HEX(25) // opcode of indirect jump + .word pm_entrypoint, 0 +pm_entrypoint: + .long 0 // receives address of PE entry point nop -// FIXME: use ljmp16 PMODE_CS:inpmode + hexed 32bit jump - - callback_table: .word Int386 @@ -174,15 +183,13 @@ /* GDT table pointer */ gdtptr: .word HEX(27) /* Limit */ - .long gdt /* Base Address */ + .word gdt, 0 /* Base Address */ /* Real-mode IDT pointer */ rmode_idtptr: .word HEX(3ff) /* Limit */ .long 0 /* Base Address */ -//.org 1024 - #include "int386.inc" #include "pxe.inc" #include "pnp.inc" Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc [iso-8859-1] Fri Jun 17 23:44:07 2011 @@ -34,9 +34,9 @@ /* Call the interrupt vector */ /*int Int386_vector*/ - .byte 0xcd + .byte HEX(0cd) Int386_vector_opcode: - .byte 0x00 + .byte 00 /* Save the registers */ mov dword ptr cs:[BSS_RegisterSet + REGS_EAX], eax Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/pnp.inc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/realmode/pnp.inc [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/realmode/pnp.inc [iso-8859-1] Fri Jun 17 23:44:07 2011 @@ -15,11 +15,11 @@ push 0 - call dword ptr [BSS_PnpBiosEntryPoint] + call dword ptr ds:[BSS_PnpBiosEntryPoint] add sp, 12 movzx ecx, ax - mov dword ptr [BSS_PnpResult], ecx + mov dword ptr ds:[BSS_PnpResult], ecx ret @@ -48,11 +48,11 @@ push 1 /* call entry point */ - call dword ptr [BSS_PnpBiosEntryPoint] + call dword ptr ds:[BSS_PnpBiosEntryPoint] add sp, 14 movzx ecx, ax - mov [BSS_PnpResult], ecx + mov dword ptr ds:[BSS_PnpResult], ecx ret Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/pxe.inc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/realmode/pxe.inc [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/realmode/pxe.inc [iso-8859-1] Fri Jun 17 23:44:07 2011 @@ -26,8 +26,8 @@ push ax mov ax, [BSS_PxeFunction] push ax - call dword ptr [BSS_PxeEntryPoint] + call dword ptr ds:[BSS_PxeEntryPoint] add esp, 6 - mov [BSS_PxeResult], ax + mov word ptr ds:[BSS_PxeResult], ax ret
13 years, 6 months
1
0
0
0
[tkreuzer] 52324: [FREELDR] - convert mb.S to portable syntax - remove obsolete reactos_memory_map - Make use of CR / LF in isoboot.S
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 22:26:11 2011 New Revision: 52324 URL:
http://svn.reactos.org/svn/reactos?rev=52324&view=rev
Log: [FREELDR] - convert mb.S to portable syntax - remove obsolete reactos_memory_map - Make use of CR / LF in isoboot.S Modified: trunk/reactos/boot/freeldr/bootsect/isoboot.S trunk/reactos/boot/freeldr/freeldr/CMakeLists.txt trunk/reactos/boot/freeldr/freeldr/arch/i386/mb.S trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S Modified: trunk/reactos/boot/freeldr/bootsect/isoboot.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/bootsect/isob…
============================================================================== --- trunk/reactos/boot/freeldr/bootsect/isoboot.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/bootsect/isoboot.S [iso-8859-1] Fri Jun 17 22:26:11 2011 @@ -923,9 +923,9 @@ isolinux_banner: - .asciz "\r\nLoading IsoBoot...\r\n" + .asciz CR, LF, "Loading IsoBoot...", CR, LF copyright_str: - .asciz " (C) 1994-2002 H. Peter Anvin\r\n" + .asciz " (C) 1994-2002 H. Peter Anvin", CR, LF presskey_msg: .asciz "Press any key to boot from CD" dot_msg: @@ -957,33 +957,33 @@ #endif spec_err_msg: - .asciz "Load spec failed, trying wing ...\r\n" + .asciz "Load spec failed, trying wing ...", CR, LF maybe_msg: .asciz "Found smth at drive = " alright_msg: - .asciz "might be ok, continuing...\r\n" + .asciz "might be ok, continuing...", CR, LF nothing_msg: - .asciz "Failed locate CD-ROM; boot failed.\r\n" + .asciz "Failed locate CD-ROM; boot failed.", CR, LF isolinux_str: .asciz "IsoBoot: " crlf_msg: - .asciz "\r\n" + .asciz CR, LF diskerr_msg: .asciz "Disk error " ondrive_str: .asciz ", drive " err_bootfailed: - .asciz "\r\nfailed.." + .asciz CR, LF, "failed.." isolinux_dir: .asciz "\\LOADER" no_dir_msg: - .asciz "LOADER dir not found.\r\n" + .asciz "LOADER dir not found.", CR, LF isolinux_bin: .asciz "SETUPLDR.SYS" no_isolinux_msg: - .asciz "SETUPLDR not found.\r\n" + .asciz "SETUPLDR not found.", CR, LF // Modified: trunk/reactos/boot/freeldr/freeldr/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/CMake…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/CMakeLists.txt [iso-8859-1] Fri Jun 17 22:26:11 2011 @@ -14,13 +14,13 @@ arch/i386/i386idt.c arch/i386/i386trap.S arch/i386/i386pnp.cmake.S - arch/i386/i386bug.c) + arch/i386/i386bug.c + arch/i386/mb.S) if(NOT MSVC) list(APPEND FREELDR_BASE64K_SOURCE arch/i386/drvmap.S arch/i386/linux.S - arch/i386/multiboot.S - arch/i386/mb.S) + arch/i386/multiboot.S) else() list(APPEND FREELDR_BASE64K_SOURCE arch/i386/realmode.S) Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/mb.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/mb.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/mb.S [iso-8859-1] Fri Jun 17 22:26:11 2011 @@ -17,39 +17,22 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ - .text - .code16 - +#include <asm.inc> #include <arch/pc/x86common.h> #include <multiboot.h> - /* - * Here we assume the kernel is loaded at 1mb - * This boots the kernel - */ - .code32 - .globl _PageDirectoryStart +.code32 +PUBLIC _PageDirectoryStart - .globl _startup_pagedirectory - .globl _lowmem_pagetable - .globl _kernel_pagetable - .globl _apic_pagetable +PUBLIC _startup_pagedirectory +PUBLIC _lowmem_pagetable +PUBLIC _kernel_pagetable +PUBLIC _apic_pagetable +PUBLIC _PageDirectoryEnd - .globl _PageDirectoryEnd - - // - // Boot information structure - // - -EXTERN(_reactos_memory_map_descriptor_size) - .long 0 - -EXTERN(_reactos_memory_map) - .rept (32 * /*sizeof(memory_map_t)*/24) - .byte 0 - .endr - +#ifndef _USE_ML .bss +#endif _PageDirectoryStart: _startup_pagedirectory: .fill 4096, 1, 0 @@ -64,3 +47,5 @@ .fill 4096, 1, 0 _PageDirectoryEnd: + +END Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S [iso-8859-1] Fri Jun 17 22:26:11 2011 @@ -6,19 +6,6 @@ // globals -PUBLIC _PageDirectoryStart -_PageDirectoryStart: -PUBLIC _PageDirectoryEnd -_PageDirectoryEnd: - -PUBLIC _startup_pagedirectory -_startup_pagedirectory: -PUBLIC _apic_pagetable -_apic_pagetable: -PUBLIC _kernel_pagetable -_kernel_pagetable: -PUBLIC _lowmem_pagetable -_lowmem_pagetable: PUBLIC _BootOldLinuxKernel _BootOldLinuxKernel:
13 years, 6 months
1
0
0
0
[tkreuzer] 52323: [ASM] - Make .asciz macro accept a varaiable number of arguments - add CR and LF definitions, since MASM doesn't like "\r\n" codes
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 21:57:34 2011 New Revision: 52323 URL:
http://svn.reactos.org/svn/reactos?rev=52323&view=rev
Log: [ASM] - Make .asciz macro accept a varaiable number of arguments - add CR and LF definitions, since MASM doesn't like "\r\n" codes Modified: trunk/reactos/include/asm/asm.inc Modified: trunk/reactos/include/asm/asm.inc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/asm/asm.inc?rev=52…
============================================================================== --- trunk/reactos/include/asm/asm.inc [iso-8859-1] (original) +++ trunk/reactos/include/asm/asm.inc [iso-8859-1] Fri Jun 17 21:57:34 2011 @@ -52,11 +52,13 @@ ENDM /* MASM doesn't have an ASCIZ macro */ -.ASCIZ MACRO text - DB text, 0 -ENDM -.asciz MACRO text - DB text, 0 +.ASCIZ MACRO text:VARARG + DB text + DB 0 +ENDM +.asciz MACRO text:VARARG + DB text + DB 0 ENDM .code64 MACRO @@ -157,6 +159,9 @@ /* We need this to distinguish repeat from macros */ #define ENDR ENDM + +#define CR 13 +#define LF 10 #else /***********************************************************************/ @@ -305,4 +310,7 @@ #define else .else #define elseif .elseif +#define CR "\r" +#define LF "\n" + #endif
13 years, 6 months
1
0
0
0
[tkreuzer] 52322: [FREELDR] Disable DriveMapMapDrivesInSection on MSVC builds, freeldr works basically without it
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 20:02:37 2011 New Revision: 52322 URL:
http://svn.reactos.org/svn/reactos?rev=52322&view=rev
Log: [FREELDR] Disable DriveMapMapDrivesInSection on MSVC builds, freeldr works basically without it Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/drivemap.c trunk/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S trunk/reactos/boot/freeldr/freeldr/bootmgr.c Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/drivemap.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/drivemap.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/drivemap.c [iso-8859-1] Fri Jun 17 20:02:37 2011 @@ -25,6 +25,7 @@ ULONG DriveMapHandlerAddress = 0; // Linear address of our drive map handler ULONG DriveMapHandlerSegOff = 0; // Segment:offset style address of our drive map handler +#ifndef _MSC_VER VOID DriveMapMapDrivesInSection(PCSTR SectionName) { CHAR SettingName[80]; @@ -141,6 +142,7 @@ return TRUE; } +#endif ULONG DriveMapGetBiosDriveNumber(PCSTR DeviceName) { @@ -167,6 +169,7 @@ return BiosDriveNumber; } +#ifndef _MSC_VER VOID DriveMapInstallInt13Handler(PDRIVE_MAP_LIST DriveMap) { ULONG* RealModeIVT = (ULONG*)0x00000000; @@ -220,3 +223,4 @@ DriveMapInstalled = FALSE; } } +#endif Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/drvmap.S [iso-8859-1] Fri Jun 17 20:02:37 2011 @@ -139,4 +139,3 @@ PUBLIC _DriveMapInt13HandlerEnd _DriveMapInt13HandlerEnd: - .byte 0 Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/realmode.S [iso-8859-1] Fri Jun 17 20:02:37 2011 @@ -26,16 +26,4 @@ PUBLIC _BootNewLinuxKernel _BootNewLinuxKernel: -PUBLIC _DriveMapOldInt13HandlerAddress -_DriveMapOldInt13HandlerAddress: - -PUBLIC _DriveMapInt13HandlerStart -_DriveMapInt13HandlerStart: - -PUBLIC _DriveMapInt13HandlerEnd -_DriveMapInt13HandlerEnd: - -PUBLIC _DriveMapInt13HandlerMapList -_DriveMapInt13HandlerMapList: - END Modified: trunk/reactos/boot/freeldr/freeldr/bootmgr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/bootm…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/bootmgr.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/bootmgr.c [iso-8859-1] Fri Jun 17 20:02:37 2011 @@ -228,7 +228,7 @@ #ifndef _M_ARM // Install the drive mapper according to this sections drive mappings -#ifdef __i386__ +#if defined(__i386__) && !defined(_MSC_VER) DriveMapMapDrivesInSection(SectionName); #endif if (_stricmp(BootType, "ReactOS") == 0)
13 years, 6 months
1
0
0
0
[tkreuzer] 52321: [CRYPT32] remove version.rc from the CMakeLists.txt, since its included in crypt32.rc already
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 18:37:44 2011 New Revision: 52321 URL:
http://svn.reactos.org/svn/reactos?rev=52321&view=rev
Log: [CRYPT32] remove version.rc from the CMakeLists.txt, since its included in crypt32.rc already Modified: trunk/reactos/dll/win32/crypt32/CMakeLists.txt Modified: trunk/reactos/dll/win32/crypt32/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/crypt32/CMakeLis…
============================================================================== --- trunk/reactos/dll/win32/crypt32/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/crypt32/CMakeLists.txt [iso-8859-1] Fri Jun 17 18:37:44 2011 @@ -38,7 +38,6 @@ store.c str.c crypt32.rc - version.rc ${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
13 years, 6 months
1
0
0
0
[sir_richard] 52320: Patch by Anton Yarotsky: [SACDRV]: Implement DriverEntry point which connects to NTOS HeadLess Module (HDL). If HDL enabled through FreeLDR (/EMSPORT), connection should work. ...
by sir_richard@svn.reactos.org
Author: sir_richard Date: Fri Jun 17 17:21:20 2011 New Revision: 52320 URL:
http://svn.reactos.org/svn/reactos?rev=52320&view=rev
Log: Patch by Anton Yarotsky: [SACDRV]: Implement DriverEntry point which connects to NTOS HeadLess Module (HDL). If HDL enabled through FreeLDR (/EMSPORT), connection should work. [SACDRV]: Fix typo's. Modified: trunk/reactos/drivers/sac/driver/data.c trunk/reactos/drivers/sac/driver/dispatch.c trunk/reactos/drivers/sac/driver/init.c trunk/reactos/drivers/sac/driver/sacdrv.h Modified: trunk/reactos/drivers/sac/driver/data.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/sac/driver/data.c?…
============================================================================== --- trunk/reactos/drivers/sac/driver/data.c [iso-8859-1] (original) +++ trunk/reactos/drivers/sac/driver/data.c [iso-8859-1] Fri Jun 17 17:21:20 2011 @@ -49,7 +49,7 @@ } BOOLEAN -InitalizeGlobalData( +InitializeGlobalData( IN PUNICODE_STRING RegistryPath, IN PDRIVER_OBJECT DriverObject ) Modified: trunk/reactos/drivers/sac/driver/dispatch.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/sac/driver/dispatc…
============================================================================== --- trunk/reactos/drivers/sac/driver/dispatch.c [iso-8859-1] (original) +++ trunk/reactos/drivers/sac/driver/dispatch.c [iso-8859-1] Fri Jun 17 17:21:20 2011 @@ -80,7 +80,6 @@ } VOID -NTAPI UnloadHandler( IN PDRIVER_OBJECT DriverObject ) Modified: trunk/reactos/drivers/sac/driver/init.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/sac/driver/init.c?…
============================================================================== --- trunk/reactos/drivers/sac/driver/init.c [iso-8859-1] (original) +++ trunk/reactos/drivers/sac/driver/init.c [iso-8859-1] Fri Jun 17 17:21:20 2011 @@ -20,5 +20,74 @@ IN PUNICODE_STRING RegistryPath ) { - return STATUS_NOT_IMPLEMENTED; + HEADLESS_RSP_QUERY_INFO HeadlessInformation; + ULONG InfoSize; + NTSTATUS Status; + UNICODE_STRING DriverName; + PDEVICE_OBJECT DeviceObject; + PSAC_DEVICE_EXTENSION DeviceExtension; + PAGED_CODE(); + + SAC_DBG(SAC_DBG_ENTRY_EXIT, "Entering.\n"); + + HeadlessDispatch( + HeadlessCmdQueryInformation, + NULL, + 0, + &HeadlessInformation, + &InfoSize + ); + if ((HeadlessInformation.Serial.TerminalType != HeadlessUndefinedPortType) && + ((HeadlessInformation.Serial.TerminalType != HeadlessSerialPort) || + (HeadlessInformation.Serial.TerminalAttached))) + { + RtlInitUnicodeString(&DriverName, L"\\Device\\SAC"); + + Status = IoCreateDevice( + DriverObject, + sizeof(SAC_DEVICE_EXTENSION), + &DriverName, + FILE_DEVICE_UNKNOWN, + FILE_DEVICE_SECURE_OPEN, + FALSE, + &DeviceObject + ); + if (NT_SUCCESS(Status)) + { + DeviceExtension = DeviceObject->DeviceExtension; + DeviceExtension->Initialized = FALSE; + + RtlFillMemoryUlong( + DriverObject->MajorFunction, + sizeof(DriverObject->MajorFunction) / sizeof(PVOID), + (ULONG_PTR)Dispatch); + DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = + DispatchDeviceControl; + DriverObject->MajorFunction[IRP_MJ_SHUTDOWN] = + DispatchShutdownControl; + DriverObject->FastIoDispatch = NULL; + DriverObject->DriverUnload = UnloadHandler; + + if (InitializeGlobalData(RegistryPath, DriverObject)) + { + if (InitializeDeviceData(DeviceObject)) + { + IoRegisterShutdownNotification(DeviceObject); + return Status; + } + } + + Status = STATUS_INSUFFICIENT_RESOURCES; + } + else + { + SAC_DBG(SAC_DBG_INIT, "unable to create device object: %X\n", Status); + } + + FreeGlobalData(); + SAC_DBG(SAC_DBG_ENTRY_EXIT, "Exiting with status 0x%x\n", Status); + return Status; + } + + return STATUS_PORT_DISCONNECTED; } Modified: trunk/reactos/drivers/sac/driver/sacdrv.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/sac/driver/sacdrv.…
============================================================================== --- trunk/reactos/drivers/sac/driver/sacdrv.h [iso-8859-1] (original) +++ trunk/reactos/drivers/sac/driver/sacdrv.h [iso-8859-1] Fri Jun 17 17:21:20 2011 @@ -7,9 +7,11 @@ */ /* INCLUDES *******************************************************************/ -#include <ntddk.h> +#include <ntifs.h> +#include <ntoskrnl/include/internal/hdl.h> #define SAC_DBG_ENTRY_EXIT 0x01 +#define SAC_DBG_INIT 0x04 #define SAC_DBG_MM 0x1000 #define SAC_DBG(x, ...) \ @@ -154,8 +156,48 @@ PKEVENT HasNewDataEvent; PKEVENT LockEvent; PKEVENT RedrawEvent; - GUID ChannelId; + GUID ChannelId; } SAC_CHANNEL_ATTRIBUTES, *PSAC_CHANNEL_ATTRIBUTES; +NTSTATUS +Dispatch( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp +); + +NTSTATUS +NTAPI +DispatchDeviceControl( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp +); + +NTSTATUS +DispatchShutdownControl( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp +); + +VOID +UnloadHandler( + IN PDRIVER_OBJECT DriverObject +); + +VOID +FreeGlobalData( + VOID +); + +BOOLEAN +InitializeDeviceData( + IN PDEVICE_OBJECT DeviceObject +); + +BOOLEAN +InitializeGlobalData( + IN PUNICODE_STRING RegistryPath, + IN PDRIVER_OBJECT DriverObject +); + extern ULONG SACDebug;
13 years, 6 months
1
0
0
0
[sir_richard] 52319: Patch by Anton Yarotsky: [NTOSKRNL]: Export HeadlessDispatch. [NTOSKRNL]: Add more missing definitions to internal Headless header. Alex: Move to NDK? [NTOSKRNL]: Headless head...
by sir_richard@svn.reactos.org
Author: sir_richard Date: Fri Jun 17 17:19:56 2011 New Revision: 52319 URL:
http://svn.reactos.org/svn/reactos?rev=52319&view=rev
Log: Patch by Anton Yarotsky: [NTOSKRNL]: Export HeadlessDispatch. [NTOSKRNL]: Add more missing definitions to internal Headless header. Alex: Move to NDK? [NTOSKRNL]: Headless header uses SYSTEM_TIMEOFDAY_INFORMATION, which is only in NDK. So hdl.h needs NDK. Modified: trunk/reactos/ntoskrnl/include/internal/hdl.h trunk/reactos/ntoskrnl/ntoskrnl.pspec trunk/reactos/ntoskrnl/ntoskrnl.spec Modified: trunk/reactos/ntoskrnl/include/internal/hdl.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
============================================================================== --- trunk/reactos/ntoskrnl/include/internal/hdl.h [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/include/internal/hdl.h [iso-8859-1] Fri Jun 17 17:19:56 2011 @@ -7,6 +7,7 @@ */ #define _HDL_ #include <cportlib/cportlib.h> +#include <ndk/extypes.h> // // Define this if you want debugging support @@ -150,6 +151,38 @@ HeadlessCmdPutData } HEADLESS_CMD, *PHEADLESS_CMD; +typedef enum _HEADLESS_TERM_PORT_TYPE +{ + HeadlessUndefinedPortType = 0, + HeadlessSerialPort +} HEADLESS_TERM_PORT_TYPE, *PHEADLESS_TERM_PORT_TYPE; + +typedef enum _HEADLESS_TERM_SERIAL_PORT +{ + SerialPortUndefined = 0, + ComPort1, + ComPort2, + ComPort3, + ComPort4 +} HEADLESS_TERM_SERIAL_PORT, *PHEADLESS_TERM_SERIAL_PORT; + +typedef struct _HEADLESS_RSP_QUERY_INFO +{ + HEADLESS_TERM_PORT_TYPE PortType; + union + { + struct + { + BOOLEAN TerminalAttached; + BOOLEAN UsedBiosSettings; + HEADLESS_TERM_SERIAL_PORT TerminalPort; + PUCHAR TerminalPortBaseAddress; + ULONG TerminalBaudRate; + UCHAR TerminalType; + } Serial; + }; +} HEADLESS_RSP_QUERY_INFO, *PHEADLESS_RSP_QUERY_INFO; + typedef struct _HEADLESS_CMD_PUT_STRING { UCHAR String[1]; Modified: trunk/reactos/ntoskrnl/ntoskrnl.pspec URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.pspec?re…
============================================================================== --- trunk/reactos/ntoskrnl/ntoskrnl.pspec [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ntoskrnl.pspec [iso-8859-1] Fri Jun 17 17:19:56 2011 @@ -325,7 +325,7 @@ @ extern HalDispatchTable _HalDispatchTable @ FASTCALL HalExamineMBR(ptr long long ptr) @ extern HalPrivateDispatchTable -;HeadlessDispatch +@ stdcall HeadlessDispatch(long ptr long ptr ptr) @ stdcall InbvAcquireDisplayOwnership() @ stdcall InbvCheckDisplayOwnership() @ stdcall InbvDisplayString(str) Modified: trunk/reactos/ntoskrnl/ntoskrnl.spec URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl.spec?rev…
============================================================================== --- trunk/reactos/ntoskrnl/ntoskrnl.spec [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ntoskrnl.spec [iso-8859-1] Fri Jun 17 17:19:56 2011 @@ -305,7 +305,7 @@ @ extern HalDispatchTable _HalDispatchTable @ fastcall HalExamineMBR(ptr long long ptr) @ extern HalPrivateDispatchTable -;HeadlessDispatch +@ stdcall HeadlessDispatch(long ptr long ptr ptr) @ stdcall InbvAcquireDisplayOwnership() @ stdcall InbvCheckDisplayOwnership() @ stdcall InbvDisplayString(str)
13 years, 6 months
1
0
0
0
[tkreuzer] 52318: [ALLOCA.H] Add an MSVC friendly proxy of alloca.h Fixes MSVC build of dbghelp
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 15:51:00 2011 New Revision: 52318 URL:
http://svn.reactos.org/svn/reactos?rev=52318&view=rev
Log: [ALLOCA.H] Add an MSVC friendly proxy of alloca.h Fixes MSVC build of dbghelp Added: trunk/reactos/include/reactos/wine/alloca.h - copied, changed from r52303, trunk/reactos/include/reactos/wine/_alloca.h Removed: trunk/reactos/include/reactos/wine/_alloca.h Removed: trunk/reactos/include/reactos/wine/_alloca.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/_allo…
============================================================================== --- trunk/reactos/include/reactos/wine/_alloca.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/wine/_alloca.h (removed) @@ -1,2 +1,0 @@ - -#include <malloc.h> Copied: trunk/reactos/include/reactos/wine/alloca.h (from r52303, trunk/reactos/include/reactos/wine/_alloca.h) URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/alloc…
============================================================================== --- trunk/reactos/include/reactos/wine/_alloca.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/wine/alloca.h [iso-8859-1] Fri Jun 17 15:51:00 2011 @@ -1,2 +1,8 @@ +#ifdef _MSC_VER #include <malloc.h> +#define alloca _alloca +#else +#include_next <alloca.h> +#endif +
13 years, 6 months
1
0
0
0
[tkreuzer] 52317: [LIBMPG123] Fix definition of ALIGN() macro for MSVC. Fixes build.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 15:35:06 2011 New Revision: 52317 URL:
http://svn.reactos.org/svn/reactos?rev=52317&view=rev
Log: [LIBMPG123] Fix definition of ALIGN() macro for MSVC. Fixes build. Modified: trunk/reactos/include/reactos/libs/libmpg123/optimize.h Modified: trunk/reactos/include/reactos/libs/libmpg123/optimize.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/libmp…
============================================================================== --- trunk/reactos/include/reactos/libs/libmpg123/optimize.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/libs/libmpg123/optimize.h [iso-8859-1] Fri Jun 17 15:35:06 2011 @@ -58,7 +58,11 @@ /* this is included in mpg123.h, which includes config.h */ #ifdef CCALIGN +#ifdef _MSC_VER +#define ALIGNED(a) __declspec(align(a)) +#else #define ALIGNED(a) __attribute__((aligned(a))) +#endif #else #define ALIGNED(a) #endif
13 years, 6 months
1
0
0
0
[tkreuzer] 52316: [PSEH2_TEST] Don't compile pseh2 test with MSVC
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Fri Jun 17 14:13:30 2011 New Revision: 52316 URL:
http://svn.reactos.org/svn/reactos?rev=52316&view=rev
Log: [PSEH2_TEST] Don't compile pseh2 test with MSVC Modified: trunk/rostests/tests/CMakeLists.txt Modified: trunk/rostests/tests/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/tests/CMakeLists.txt?rev=…
============================================================================== --- trunk/rostests/tests/CMakeLists.txt [iso-8859-1] (original) +++ trunk/rostests/tests/CMakeLists.txt [iso-8859-1] Fri Jun 17 14:13:30 2011 @@ -1,2 +1,4 @@ add_subdirectory(mmixer_test) -add_subdirectory(pseh2) +if (NOT MSVC) + add_subdirectory(pseh2) +endif()
13 years, 6 months
1
0
0
0
← Newer
1
...
15
16
17
18
19
20
21
...
46
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Results per page:
10
25
50
100
200