VirtualBox

Changeset 3482 in kBuild for trunk


Ignore:
Timestamp:
Sep 21, 2020 11:54:23 AM (5 years ago)
Author:
bird
Message:

kash: machdep: More sensible SHELL_SIZE for SHELL_ALIGN (32-bit targets).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/machdep.h

    r1233 r3482  
    4040 */
    4141
    42 #ifdef _MSC_VER
    43 #define SHELL_SIZE (8 - 1)
     42/* For the purposes of the allocation stack(s), this is nonsensical given
     43   that struct stack_block does not align the 'space' member accordingly.
     44   That member will be aligned according to the pointer size, so we
     45   should do the same here and not mix in any 'double' nonsense: */
     46#if 0
     47#define SHELL_SIZE (sizeof(union {int i; char *cp; double d; }) - 1)
    4448#else
    45 #define SHELL_SIZE (sizeof(union {int i; char *cp; double d; }) - 1)
     49#define SHELL_SIZE (sizeof(void *) - 1)
    4650#endif
    4751
Note: See TracChangeset for help on using the changeset viewer.

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