VirtualBox

Changeset 69034 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Oct 11, 2017 8:57:56 AM (7 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: fix wrong order in Linux outb/w/l uses.
bugref:8524: Additions/linux: play nicely with distribution-installed Additions

Linux reverses the parameter order of I/O out commands compared to everyone
else I know, and we were blindly replacing our VBVO_PORT_WRITE_ functions
with Linux out ones without touching the parameters. Fixing this requires
some not very nice use of sed. Improvements welcome.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/indent.sed

    r69019 r69034  
    8585s/\bVBVO_PORT_READ_U16\b/inw/g
    8686s/\bVBVO_PORT_READ_U32\b/inl/g
    87 s/\bVBVO_PORT_WRITE_U8\b/outb/g
    88 s/\bVBVO_PORT_WRITE_U16\b/outw/g
    89 s/\bVBVO_PORT_WRITE_U32\b/outl/g
     87s/\bVBVO_PORT_WRITE_U8\b *( *\(\b[^(),]*\b\) *, *\(\b[^(),]*\b\) *)/outb(\2, \1)/g
     88s/\bVBVO_PORT_WRITE_U16\b *( *\(\b[^(),]*\b\) *, *\(\b[^(),]*\b\) *)/outw(\2, \1)/g
     89s/\bVBVO_PORT_WRITE_U32\b *( *\(\b[^(),]*\b\) *, *\(\b[^(),]*\b\) *)/outl(\2, \1)/g
    9090
    9191# Macros:
Note: See TracChangeset for help on using the changeset viewer.

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