mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 08:10:18 +00:00
[HAL]
Convert asm to new syntax, use spec file svn path=/branches/cmake-bringup/; revision=49681
This commit is contained in:
parent
45a06d507a
commit
63dde4fa13
7 changed files with 28 additions and 19 deletions
|
@ -1,4 +1,6 @@
|
|||
|
||||
spec2def(hal.dll hal.spec)
|
||||
|
||||
if(ARCH MATCHES i386)
|
||||
|
||||
add_definitions(
|
||||
|
@ -51,7 +53,8 @@ list(APPEND HAL_SOURCE
|
|||
${HAL_GENERIC_PCAT_SOURCE}
|
||||
${HAL_GENERIC_UP_SOURCE}
|
||||
halx86/up/halinit_up.c
|
||||
halx86/up/halup.rc)
|
||||
halx86/up/halup.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/hal.def)
|
||||
|
||||
add_library(hal SHARED ${HAL_SOURCE})
|
||||
add_pch(hal ${CMAKE_CURRENT_SOURCE_DIR}/halx86/include/hal.h ${HAL_SOURCE})
|
||||
|
@ -63,9 +66,7 @@ set_image_base(hal 0x00010000)
|
|||
|
||||
add_importlibs(hal ntoskrnl)
|
||||
|
||||
target_link_libraries(hal
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/halx86/hal_i386.def
|
||||
libcntpr)
|
||||
target_link_libraries(hal libcntpr)
|
||||
|
||||
list(APPEND MINI_HAL_SOURCE
|
||||
halx86/generic/legacy/bus/bushndlr.c
|
||||
|
@ -106,4 +107,4 @@ else()
|
|||
#TBD
|
||||
endif(ARCH MATCHES i386)
|
||||
|
||||
add_importlib_target(hal.spec)
|
||||
add_importlib_target(hal.spec)
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <asm.inc>
|
||||
|
||||
#include <ksamd64.inc>
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
|
@ -92,5 +93,5 @@ MpsTimerInterrupt:
|
|||
AFTER
|
||||
iret
|
||||
|
||||
|
||||
END
|
||||
/* EOF */
|
||||
|
|
|
@ -7,8 +7,9 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <asm.inc>
|
||||
|
||||
#include <ksamd64.inc>
|
||||
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
|
@ -90,3 +91,4 @@ HalpClockInterrupt:
|
|||
UNIMPLEMENTED _HalpClockInterrupt
|
||||
iret
|
||||
|
||||
END
|
||||
|
|
|
@ -197,9 +197,9 @@ HalpDispatchV86Opcode(IN PKTRAP_FRAME TrapFrame)
|
|||
/* V86 TRAP HANDLERS **********************************************************/
|
||||
|
||||
#ifndef _MINIHAL_
|
||||
DECLSPEC_NORETURN
|
||||
VOID
|
||||
FASTCALL
|
||||
DECLSPEC_NORETURN
|
||||
HalpTrap0DHandler(IN PKTRAP_FRAME TrapFrame)
|
||||
{
|
||||
/* Enter the trap */
|
||||
|
|
|
@ -7,8 +7,9 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/asm.h>
|
||||
#include <asm.inc>
|
||||
|
||||
#include <ks386.inc>
|
||||
|
||||
EXTERN _HalpAcquireSystemHardwareSpinLock@0:PROC
|
||||
EXTERN _HalpReleaseCmosSpinLock@0:PROC
|
||||
|
@ -39,7 +40,7 @@ EXTERN _HalpPerfCounterCutoff:DWORD
|
|||
/* GLOBALS *******************************************************************/
|
||||
|
||||
.data
|
||||
//ASSUME CS:NOTHING, DS:NOTHING, ES:NOTHING, FS:NOTHING, GS:NOTHING
|
||||
ASSUME CS:NOTHING, DS:NOTHING, ES:NOTHING, FS:NOTHING, GS:NOTHING
|
||||
|
||||
PUBLIC _HalpPerfCounter
|
||||
_HalpLastPerfCounterLow: .long 0
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/i386/asm.h>
|
||||
#include <asm.inc>
|
||||
|
||||
#include <ks386.inc>
|
||||
#include <internal/i386/asmmacro.S>
|
||||
|
||||
.code32
|
||||
.text
|
||||
.code
|
||||
|
||||
TRAP_ENTRY HalpTrap0D, 0
|
||||
TRAP_ENTRY HalpApcInterrupt, KI_SOFTWARE_TRAP
|
||||
|
@ -42,4 +42,6 @@ _HalpRealModeStart:
|
|||
.space 2048
|
||||
_HalpRealModeEnd:
|
||||
PUBLIC _HalpRealModeEnd
|
||||
.endcode16
|
||||
|
||||
END
|
||||
|
|
|
@ -11,7 +11,9 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ndk/asm.h>
|
||||
#include <asm.inc>
|
||||
|
||||
#include <ks386.inc>
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
|
|
Loading…
Reference in a new issue