Commit Graph

20 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
1852006c61 * Char -> AnsiChar 2023-07-14 17:26:09 +02:00
magorium
4058a0ac4b AROS: Make sure opaque SMP extension is used for ABIv11 only
These changes adds an additional record field to record structure TMsgPort in
order to support SMP for ABIv11 (non m68k targets only).

This additional field contains two opaque IPTR's/PtrUInt's and therefor breaks
compatibility between ABIv0, ABIv1 and ABIv11 as well as make them binary
incompatible.

It also renders ABIv11 incompatible with itself when this change was introduced
on march 18 2022. Recompilation of existing code for this ABI is thus required.

See: b9bc67accc
2022-06-26 19:03:18 +00:00
magorium
c660120329 AROS: Ensure that spinlocks for SMP enabled build is not possible for ABIv11
These changes makes sure that the use of record structure spinlock is not
active/available when compiling for AROS ABIv11 as that ABI does not support
spinlocks as implemented for AROS ABIv1.

Note that this is a ABI and Binary Compatible break between ABIv1 and ABIv11.
2022-06-26 19:03:18 +00:00
magorium
14f9774838 AROS: Ensure that spinlocks for SMP enabled build can only be active for ABIv1
These changes makes sure that the use of record structure TSpinlock can only
be enabled/active for AROS ABIv1 as that ABI is currently the only ABI that
is able to support SMP by using the spinlock record structure.
2022-06-26 19:03:18 +00:00
magorium
41a48fe385 AROS: Use structure spinlock for SMP enabled build (ABI/BC break)
This commit will add an additional spinlock field to record structures
TMsgPort and TSemaphoreRequest for a SMP enabled build.

This will break ABI and Binary Compatibility between ABIv0 and ABIv1 and for
ABIv1 (for a SMP enabled build).

Recompilation in such case is required as both record structures TMsgPort and
TSemaphoreRequest are embedded in other record structures which causes a
myriad of changes to those records including different record sizes and other
field offsets.

Note that SMP is currently only available for ABIv1 and afaik only supported
for AROS target x86_64 while AROS target i386 has initial support for SMP
(but not actively enabled).

SMP enabled build can be 'activated' by defining AROS_PLATFORM_SMP and
AROSEXEC_SMP.
2022-06-26 19:03:18 +00:00
magorium
b467de658d AROS: Add structure spinlock for SMP builds
In 2015 ABIv1 introduced support for spinlocks for SMP enabled builds (1) by
use of a special spinlock structure.

This structure was later updated to end up in its current form in 2017 (2)

This commit adds this record structure to both RTL (execd) and unit (exec).

The structure can be "enabled" by defining AROSPLATFORM_SMP during build.

1) b6045c27fd
2) 0ffdbdc48f
2022-06-26 19:03:18 +00:00
magorium
b218393b57 AROS: ABI compatibility update AROSSupportBase (ABI/API/BC break)
These changes break API/Binary Compatibility between ABIv0 and ABIv1.

Field stdOut is replaced by undefined field named _pad for ABIv1 while
(still) being present as stdOut for ABIv0.

Field DebugConfig is completely removed from ABIv1 (still present for ABIv0).

If your code depends on either of these two fields then you need to make
appropriate changes when compiling for ABIv1.

Removing dependency on either of these two mentioned fields is preferred.

Both RTL (execd.inc) and unit (exec.pas) are updated.

See also 194cc5e1c5
2022-06-26 18:38:06 +00:00
magorium
8bc7d5897d AROS: ABI compatibility update structure TETask (ABI/BC break)
These changes break Binary Compatibility between ABIv0 and ABIv1.

Record TETask was not compliant to ABIv1 because field et_Compatibility is
only required for ABIv0 (06538a1790).

Therefor these changes update record TETask for both RTL (execd.inc) and unit
exec (exec.pas) so that field et_Compatibility is only present for ABIv0.

The impact of these changes should be minimal because all relevant fields are
still accessible (some located at another offset) and code should never rely
on the size of this structure.
2022-06-26 18:17:44 +00:00
magorium
08cc81ff60 AROS: Update RTL structure TETask (execd)
Bring RTL (execd.inc) structure TETask up to date to unit exec (exec.pas).

This structure situated in the RTL was (literally) based on the MorphOS
version which is not compliant to AROS.

The original MorphOS TETask structure can still be 'activated' when the flag
AROS_MORPHOS_COMPATIBLE is defined when compiling the RTL and exec unit (as
is also the case in the original AROS repo).
2022-06-26 18:17:44 +00:00
magorium
e339d236e1 AROS: RTL exec update. Memory sizes are IPTR
Memory sizes are expressed in IPTR/PtrUInt in order to be compatible to both
32 and 64-bit.

Affects both record structures and API call signatures.

See: d7df812342
2022-05-06 22:21:47 +00:00
magorium
2a75debff6 AROS: 32/64-bit RTL exec compatibility update
Update some exec RTL record structures to be 32/64-bit compatible.

Unit Exec was already up-to-date with these changes.
2022-05-06 22:21:47 +00:00
Károly Balogh
d084bd0d3b aros: implemented pascal sysinit, will be shared across all cpus. also refactored the RTL build
git-svn-id: trunk@35237 -
2017-01-05 00:21:59 +00:00
marcus
bebef242d4 AROS: Initial ABIv1 Support
git-svn-id: trunk@35066 -
2016-12-04 15:41:35 +00:00
marcus
114a43e6ef AROS: fixed TTask type
git-svn-id: trunk@35064 -
2016-12-04 13:45:04 +00:00
marcus
b02d541e78 AROS: x86_64 needs also BINCOMPAT, TTask fixed type for 64 bit
git-svn-id: trunk@35028 -
2016-12-01 17:22:11 +00:00
marcus
3207a346e1 AROS: arm needs AROS_FLAVOUR_BINCOMPAT defines
git-svn-id: trunk@34895 -
2016-11-13 21:05:12 +00:00
Károly Balogh
cdfe930c31 Amiga-likes: fix the same header issues in Amiga and AROS, which was fixed for MorphOS in r30917
git-svn-id: trunk@31151 -
2015-06-23 23:22:22 +00:00
marcus
980abaa9ba AROS: introduced threading without additional library
git-svn-id: trunk@28682 -
2014-09-16 19:32:56 +00:00
marcus
85700afd0d AROS: StdErrout introduced, string fixes, preparations for threading
git-svn-id: trunk@28602 -
2014-09-05 18:45:00 +00:00
Károly Balogh
4179e8812d AROS: initial RTL, based on the work by Marcus Sackrow. this is enough to have a working native compiler. contains duplicated code from the Amiga and MorphOS RTLs, but the three Amiga variants will be merged soon, and then it will go away.
git-svn-id: trunk@28445 -
2014-08-18 16:42:02 +00:00