Changeset 8fe59be in rtems


Ignore:
Timestamp:
Mar 3, 2021, 9:27:52 AM (7 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1de00d6
Parents:
30f6fd5b
git-author:
Sebastian Huber <sebastian.huber@…> (03/03/21 09:27:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/04/21 08:08:03)
Message:

validation: Fix for 64-bit targets

Closes #4179.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • spec/build/bsps/aarch64/a53/tsta53.yml

    r30f6fd5b r8fe59be  
    44    # expected to fail, don't compile these
    55    minimum: exclude
    6 
    7     # test broken under 64bit due to SIZE_MAX differences
    8     validation-0: exclude
    96
    107    # don't compile due to toolchain issues
  • spec/build/bsps/aarch64/xilinx-zynqmp/tstqemu.yml

    r30f6fd5b r8fe59be  
    44    # expected to fail
    55    minimum: exclude
    6 
    7     # test broken under 64bit due to SIZE_MAX differences
    8     validation-0: expected-fail
    96
    107    # don't compile due to toolchain issues
  • testsuites/validation/tc-message-construct-errors.c

    r30f6fd5b r8fe59be  
    359359       * valid.
    360360       */
    361       ctx->config.maximum_message_size = MAX_MESSAGE_SIZE;
     361      if ( ctx->config.maximum_pending_messages == UINT32_MAX ) {
     362        /*
     363         * At least on 64-bit systems we need a bit of help to ensure that we
     364         * meet the Big state of the MaxPending pre-condition.  The following
     365         * message size is valid with respect to calculations involving only
     366         * the message size.
     367         */
     368        ctx->config.maximum_message_size = SIZE_MAX - sizeof( uintptr_t ) +
     369          1 - sizeof( CORE_message_queue_Buffer );
     370      } else {
     371        ctx->config.maximum_message_size = MAX_MESSAGE_SIZE;
     372      }
    362373      break;
    363374    }
Note: See TracChangeset for help on using the changeset viewer.