Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make AROS CDVDFS work on AmigaOS (again) #637

Closed
wants to merge 61 commits into from

Commits on Feb 9, 2024

  1. GFLG_GADGHIGHBITS: Fix incorrect usages.

    GFLG_GADGHIGHBITS was being used incorrectly in a few locations in Inutition and Icon libraries.
    
    Specifically, GFLG_GADGHIGHBITS is a mask against the set of one of the following:
       GFLG_GADGHCOMP
       GFLG_GADGHBOX
       GFLG_GADGHIMAGE
       GFLG_GADGHNONE
    ezrec authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    b2e5ba5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fef3d8f View commit details
    Browse the repository at this point in the history
  3. Fix for adding windows entry to grub

    Execute() returns information whether command was executed, not the return
    code of command.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    d7df714 View commit details
    Browse the repository at this point in the history
  4. Adjust to change in keymap limiting Hi to 0x38

    Without this change random, unallocated memory was read when using
    default (coming from keymap.library) keymap and this could cause a crash.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    e11e589 View commit details
    Browse the repository at this point in the history
  5. Further relax condition

    Based on tests of several pen-drives formatted under Linux Mint to
    FAT32 LBA (0x0c)
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    51519f2 View commit details
    Browse the repository at this point in the history
  6. Avoid generating empty .fd files as they have no value

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    fef92ac View commit details
    Browse the repository at this point in the history
  7. Also filter out devices without functions

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    dbd614b View commit details
    Browse the repository at this point in the history
  8. Allow renaming into exclusively locked directory

    Rationale:
    1) none of the other file systems does this check
    2) it is currently possible to create a file in exclusively locked
    directory and there is indication that in past it was blocked the same
    way as renaming. Changing rename synchronize logic in both paths.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    5af03aa View commit details
    Browse the repository at this point in the history
  9. Pass the tags containing project name and lock to CLI launch

    This allows executing tool from "Shell" with an argument via clicking. The
    code was like this until rev. 31196. It looks like it's a side-effect of
    that commit, not intention.
    
    Note: OS3.9 as well as Scalos both allow this mode
    
    This fixes deadwood2/AROS#64
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    5adad54 View commit details
    Browse the repository at this point in the history
  10. Set the correct mask via ohciEnableInt when enabling interrupt

    This fix extends rev 39050. When interrupt is disabled via ohicDisableInt
    is it removed from hc_PCIIntEnMask. Enabling HUBCHANGE interrupt without
    setting this mask was causing the interrupt to be raised but without
    code to handle, causing USB to stop issuing next interrupts.
    
    Problem became visible when starting ASUS M2N68-AM SE2 with usb
    keyboard and pendrive connected. USB interrupt was not handled correctly
    and USB stack was freezing, blocking IRQ5 which also happened
    to be IRQ of SATA.
    
    This fixes deadwood2/AROS#111
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    bbcd77f View commit details
    Browse the repository at this point in the history
  11. After MUIA_String_Contents, MUIA_String_Acknowledge has same value

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    338f5ad View commit details
    Browse the repository at this point in the history
  12. 2023 -> 2024

    mattrust authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    3f07bba View commit details
    Browse the repository at this point in the history
  13. Increase priority of close function to guarantee free() working

    At priority 0, C memory management is shutdown.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    a52c2fc View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0ff494d View commit details
    Browse the repository at this point in the history
  15. Don't translate error when it is already DOS error

    This was causing the previous errno (reported during fixcase) to be
    reported as effect of Rename rather then error reported in nocase_rename()
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    46ec77e View commit details
    Browse the repository at this point in the history
  16. Allow changing capitalization of name when renaming

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    6ae6078 View commit details
    Browse the repository at this point in the history
  17. Allow changing capitalization of name when renaming

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    d81e543 View commit details
    Browse the repository at this point in the history
  18. Fix warnings

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    be4a234 View commit details
    Browse the repository at this point in the history
  19. 64-bit fix.

    Field background is used as storage in GetAttr call and thus must be IPTR
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    83681bd View commit details
    Browse the repository at this point in the history
  20. Fix reading random memory

    mgi_Prefs have frame fields of count MUIV_Frame_Count. Having
    MUIV_Frame_Register as higher value than count was causing reading of
    random memory in zframe->draw.
    
    Note: loading and saving of settings for MUIV_Frame_Register is not
    implemented.
    
    This change is backward compatible. ZunePrefsNew is internal and mgi_Prefs
    pointer from MUI_GlobalInfo is not even exposed in public headers.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    55107e1 View commit details
    Browse the repository at this point in the history
  21. 64-bit fix

    Literals are treated as int (32-bit) by default. This causes wrong 64-bit
    values for negative numbers which are transported via APTR-size fields.
    Extend the literals to size of long depending on platform.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    0ef971f View commit details
    Browse the repository at this point in the history
  22. Silence debug

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    32859e0 View commit details
    Browse the repository at this point in the history
  23. Listtree.mcc: Rework CreateImage workaround for 64-bits

    The assumption of struct ListImage and NList image structure having obj
    at the same offset is not valid under 64-bits
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    6fe14ea View commit details
    Browse the repository at this point in the history
  24. Fix warnings related to C library functions

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    2d6b3e3 View commit details
    Browse the repository at this point in the history
  25. Add workaround for problem visible in C++ code

    In C code, p SysBase gives $1 = (struct ExecBase *)addr, however when
    first C++ debugging information is loaded, this is change into
    $1 = (ExecBase *)addr. This results in $SysBase = (ExecBase *)addr and
    gdb complaining about ExecBase type not being known.
    
    The hack makes sure that output is always $SysBase = (struct ExecBase*)addr
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    cfe8427 View commit details
    Browse the repository at this point in the history
  26. Extend CreateImage hack

    It now support case where address differ in number of digits and falls
    back to not displaying any images instead of displaying broken text when
    the hack fails
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    425f32d View commit details
    Browse the repository at this point in the history
  27. Fix for '*' in sscanf

    Ignore ('*') comes before width and length, not after width. Previous code
    was failing where there was * and width.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    79d406f View commit details
    Browse the repository at this point in the history
  28. Port newer version of random.c from FreeBSD

    This version correctly supports 64-bit systems with datasizes fixed at 32
    bit integers rather than "longs" as in old version.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    e9ba96d View commit details
    Browse the repository at this point in the history
  29. Fix: Mark ata_32bit object for '32bit' argument

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    87d253f View commit details
    Browse the repository at this point in the history
  30. Replace enableusb option with noioapic

    'enableusb' is no longer present in source code and 'noioapic' comes handy
    on some configurations
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    37b132e View commit details
    Browse the repository at this point in the history
  31. Add information at the top to avoid confusion

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    996e71c View commit details
    Browse the repository at this point in the history
  32. Default state of ata_32bit is disabled

    If there is no ATA= line in grub command line, it means 32bit switch
    is disabled.
    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    2fffaed View commit details
    Browse the repository at this point in the history
  33. Add separate tabs for ATA, AHCI and NVME

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    26b5f8a View commit details
    Browse the repository at this point in the history
  34. Implement support for ATA=disable argument

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    f07c55c View commit details
    Browse the repository at this point in the history
  35. Add support for AHCI=disable and NVME=disable

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    8d40a68 View commit details
    Browse the repository at this point in the history
  36. Implement AHCI=force150/force300/force600

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    7c4dc58 View commit details
    Browse the repository at this point in the history
  37. Localize strings

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    824236a View commit details
    Browse the repository at this point in the history
  38. Update version

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    8437180 View commit details
    Browse the repository at this point in the history
  39. Update ftmanager.c

    Paths to the font directory should not be translated
    subocz authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    f4f5678 View commit details
    Browse the repository at this point in the history
  40. Catalog submodules updated.

    deadwood authored and reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    2c06f9b View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    a26e895 View commit details
    Browse the repository at this point in the history
  42. CDVDFS: Trim whitespace

    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    8f89e82 View commit details
    Browse the repository at this point in the history
  43. CDVDFS: Use CopyMem where possible

    Consistent use of CopyMem across the code base
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    cde3f08 View commit details
    Browse the repository at this point in the history
  44. CDVDFS: Fix dbprintf / dbinit / dbuninit

    dbprintf was changed to pass struct CDVDBase * as the first parameter.
    This was not consistently fixed in the code base.
    
    Function prototypes need to be terminated with a semicolon.
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    72e753d View commit details
    Browse the repository at this point in the history
  45. CDVDFS: Allow use of OpenLibrary for opening libraries

    When compiling CDVDFS for AmigaOS TaggedOpenLibrary is not available
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    db4fe48 View commit details
    Browse the repository at this point in the history
  46. CDVDFS: Ensure filesystem IDs are available

    On AmigaOS these are not available. Define them conditionally.
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    2501f68 View commit details
    Browse the repository at this point in the history
  47. CDVDFS: Use %lx instead of %p for pointers

    RawDoFmt() does not support %p on AmigaOS
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    1f78f73 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    ab7cc4e View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    81150d2 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    9889b70 View commit details
    Browse the repository at this point in the history
  51. CDVDFS: Properly cast parameters for FindToolType()

    This fixes the following warning:
    
    intui.c: In function 'Init_Intui':
    intui.c:143:24: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                     name = FindToolType (global->g_user_disk_object->do_ToolTypes, "ICONNAME");
                            ^~~~~~~~~~~~
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    6bc3fb8 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    d481617 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    ea5999e View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    89348e8 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    2055dea View commit details
    Browse the repository at this point in the history
  56. CDVDFS: devsupp: Secure string copies in Get_Startup()

    g_resource_fork_extension and g_data_fork_extension are both limited
    to 17 bytes. Make sure we don't copy more than 17 bytes.
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    7057773 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    9ea9478 View commit details
    Browse the repository at this point in the history
  58. CDVDFS: hfs: file names can be 30 characters long

    There's no need to make the filename 1 character long and then pad
    it out with 32 characters.
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    bf98d0c View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    1ac4f7d View commit details
    Browse the repository at this point in the history
  60. CDVDFS: Use D(bug()); consistently where applicable

    CDVDFS has a variety of debug implementations that are inconsistently used
    across the files. One variant is enough.
    reinauer committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    95572b5 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    063c478 View commit details
    Browse the repository at this point in the history