Skip to content

Conversation

@johnboiles
Copy link
Contributor

Remove unused __APPLE__ mach_vm.h include

Description

Looks like this was left over from #674 but the rest of that code (The mach_vm_round_page/mach_vm_trunc_page bits) are no longer in the codebase.

Including this file breaks compilation for iOS.

Test Steps

Run the POSIX sim on macOS. It still works!

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

@johnboiles johnboiles requested a review from a team as a code owner January 18, 2025 01:09
@johnboiles johnboiles changed the title Remove unused __APPLE__ mach_vm.h include POSIX Simulator: Remove unused __APPLE__ mach_vm.h include Jan 18, 2025
aggarg
aggarg previously approved these changes Jan 20, 2025
Signed-off-by: Gaurav Aggarwal <[email protected]>
@sonarqubecloud
Copy link

@aggarg aggarg merged commit a585796 into FreeRTOS:main Jan 21, 2025
17 checks passed
@johnboiles johnboiles deleted the dont-use-mach-vm branch January 22, 2025 21:51
moninom1 pushed a commit to moninom1/FreeRTOS-Kernel that referenced this pull request Sep 30, 2025
* MPS2_AN385 improvements

Sync various MPS2_AN385 CORTEX-M3 QEMU targets and improve their
Makefiles and cleanup gcc support:
- FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Qemu_mps2:
  - Makefile
    - output image size after linking
    - move -nostartfiles from compiler to linker flags
    - modernize compiler warning flags
    - add --gc-sections to linker flags
  - TCPEchoClient_SingleTasks.c: fix compiler warnings
  - main.c: fix compiler warnings (remove unused code)
  - main_networking.c
    - remove ipLOCAL_MAC_ADDRESS (unknown)
    - fix compiler warnings about unused params
  - startup.c: main(void), remove unused includes,
    silence  unused params
  - syscalls.c: remove unused defines, silence unused params,
    more compact _sbrk()
- FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC/build/gcc:
  - Makefile
    - CFLAGS/LDFLAGS in more readable lines
    - move -nostartfiles to linker flags
    - comment out -specs=rdimon.specs as it is not needed
  - startup_gcc.c: fix typo in comment, remove unused uart code
- FreeRTOS/Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC
  - Makefile
    - after compilation output size of image
    - remove -DQEMU_SOC_MPS2, not needed
    - update many CFLAGS/LDFLAGS settings to more modern gcc/source
    - -ffunction-sections -fdata-sections is moved to CFLAGS
  - startup.c: sync with other ports
  - syscall.c: _write(): param buf is not unused, silence unused params

Signed-off-by: Florian La Roche <[email protected]>

* remove ipLOCAL_MAC_ADDRESS completely and fix formatting errors

remove ipLOCAL_MAC_ADDRESS completely and fix formatting errors

Signed-off-by: Florian La Roche <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants