VirtualBox

Ignore:
Timestamp:
Apr 6, 2012 4:22:40 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77306
Message:

Generate SUPR0.def from SUPDrv.c.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r40792 r40795  
    133133
    134134#
    135 # SUPR0 - The Ring-0 Import / Thunk library.
     135# SUPR0 - The Ring-0 Import library.
    136136#
    137137SUPR0_TEMPLATE      = VBoxR0
    138 ifeq ($(VBOX_LDR_FMT),pe)
    139  SUPR0_SOURCES     += SUPR0.def
    140 endif
    141 ifeq ($(VBOX_LDR_FMT),lx)
    142 SUPR0_SOURCES      += $$(SUPR0_0_OUTDIR)/SUPR0.def
    143 $$(SUPR0_0_OUTDIR)/SUPR0.def: $(PATH_SUB_CURRENT)/SUPR0.def | $$(dir $$@)
     138if1of ($(VBOX_LDR_FMT), pe lx)
     139 SUPR0_SOURCES       = $(SUPR0_0_OUTDIR)/SUPR0.def
     140 SUPR0_CLEAN         = $(SUPR0_0_OUTDIR)/SUPR0.def
     141$$(SUPR0_0_OUTDIR)/SUPR0.def: \
     142                $(PATH_SUB_CURRENT)/SUPDrv.c \
     143                $(PATH_SUB_CURRENT)/SUPR0-def-$(VBOX_LDR_FMT).sed \
     144                | $$(dir $$@)
    144145        $(SED) \
    145                 -e 's/^[ \t][ \t]*\([gA-Z]\)/    _\1/' \
    146                 -e 's/[ \t]DATA[ \t]*/ /' \
    147                 -e 's/g_pSUPGlobalInfoPage/g_SUPGlobalInfoPage/' \
    148                 --output $@.tmp\
     146                -f $(dir $<)/SUPR0-def-$(VBOX_LDR_FMT).sed \
     147                --output $@ \
    149148                $<
    150         $(MV) -f $@.tmp $@
    151149endif
    152150
  • TabularUnified trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r40777 r40795  
    150150static SUPFUNC g_aFunctions[] =
    151151{
     152/* SED: START */
    152153    /* name                                     function */
    153154        /* Entries with absolute addresses determined at runtime, fixup
     
    184185    { "SUPR0PageAllocEx",                       (void *)SUPR0PageAllocEx },
    185186    { "SUPR0PageFree",                          (void *)SUPR0PageFree },
    186     { "SUPR0Printf",                            (void *)SUPR0Printf }, /** @todo needs wrapping? */
     187    { "SUPR0Printf",                            (void *)SUPR0Printf },
    187188    { "SUPSemEventCreate",                      (void *)SUPSemEventCreate },
    188189    { "SUPSemEventClose",                       (void *)SUPSemEventClose },
     
    206207    { "SUPR0TracerRegisterModule",              (void *)SUPR0TracerRegisterModule },
    207208    { "SUPGetGIP",                              (void *)SUPGetGIP },
    208     { "g_pSUPGlobalInfoPage",                   (void *)&g_pSUPGlobalInfoPage },
     209    { "g_pSUPGlobalInfoPage",                   (void *)&g_pSUPGlobalInfoPage },            /* SED: DATA */
    209210    { "RTMemAllocTag",                          (void *)RTMemAllocTag },
    210211    { "RTMemAllocZTag",                         (void *)RTMemAllocZTag },
     
    274275    { "RTSpinlockAcquireNoInts",                (void *)RTSpinlockAcquireNoInts },
    275276    { "RTSpinlockReleaseNoInts",                (void *)RTSpinlockReleaseNoInts },
     277    /*{ "RTTimeNow",                              (void *)RTTimeNow },*/
    276278    { "RTTimeNanoTS",                           (void *)RTTimeNanoTS },
    277279    { "RTTimeMilliTS",                          (void *)RTTimeMilliTS },
     
    384386    { "RTCrc32Process",                         (void *)RTCrc32Process },
    385387    { "RTCrc32Start",                           (void *)RTCrc32Start },
     388/* SED: END */
    386389};
    387390
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette