Restore original field types

These fields are used when kernel is SMPREADY, but SMP is not enabled.
Changing the types means that comparisons like TDNESTCOUNT_GET < 0 give
wrong answers (UBYTE 255 = BYTE -1, -1 < 0 but 0 < 255)
This commit is contained in:
deadwood 2023-02-12 21:25:14 +01:00
parent ae9e0167aa
commit 1ee53aaa8b
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ $(GENINCDIR)/exec/execbase.h : $(SRCDIR)/$(CURDIR)/exec/execbase.inc
@$(ECHO) "Copying C includes to $(GENINCDIR)..."
@$(CP) $< $@
ifneq ($(strip $(SMPREADY)),"")
$(SED) -i -e 's/.*ThisTask;.*/ IPTR Private1;/' -e 's/.*Quantum;.*/ WORD Private2;/' -e 's/.*Elapsed;.*/ WORD Private3;/' -e 's/.*IDNestCnt;.*/ UBYTE Private4;/' -e 's/.*TDNestCnt;.*/ UBYTE Private5;/' $@
$(SED) -i -e 's/.*ThisTask;.*/ IPTR Private1;/' -e 's/.*Quantum;.*/ UWORD Private2;/' -e 's/.*Elapsed;.*/ UWORD Private3;/' -e 's/.*IDNestCnt;.*/ BYTE Private4;/' -e 's/.*TDNestCnt;.*/ BYTE Private5;/' $@
endif
$(AROS_INCLUDES)/exec/execbase.h : $(GENINCDIR)/exec/execbase.h