Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
HermitOS
kernel
Commits
a964983e
Unverified
Commit
a964983e
authored
4 years ago
by
Stefan Lankes
Browse files
Options
Downloads
Patches
Plain Diff
Revert "activate assembly support for basic function (e.g. memcpy)"
This reverts commit
8f83d097
.
parent
4bf3eeaf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cargo/config
+1
-1
1 addition, 1 deletion
.cargo/config
CMakeLists.txt
+16
-0
16 additions, 0 deletions
CMakeLists.txt
with
17 additions
and
1 deletion
.cargo/config
+
1
−
1
View file @
a964983e
[unstable]
build-std = ["core", "alloc"]
build-std-features = ["compiler-builtins-mem"
, "compiler-builtins-asm"
]
build-std-features = ["compiler-builtins-mem"]
[build]
target = "x86_64-unknown-hermit-kernel"
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
16
−
0
View file @
a964983e
...
...
@@ -84,6 +84,22 @@ add_custom_command(
COMMAND
${
CMAKE_ELFEDIT
}
--output-osabi Standalone $<TARGET_FILE:hermit-bootstrap>
# rename basic functions like memcpy to avoid collisions with the user space
COMMAND
${
CMAKE_OBJCOPY
}
--redefine-sym memmove=kernel_memmove $<TARGET_FILE:hermit-bootstrap>
COMMAND
${
CMAKE_OBJCOPY
}
--redefine-sym memcpy=kernel_memcpy $<TARGET_FILE:hermit-bootstrap>
COMMAND
${
CMAKE_OBJCOPY
}
--redefine-sym memset=kernel_memset $<TARGET_FILE:hermit-bootstrap>
COMMAND
${
CMAKE_OBJCOPY
}
--redefine-sym memcmp=kernel_memcmp $<TARGET_FILE:hermit-bootstrap>
COMMAND
${
CMAKE_OBJCOPY
}
--redefine-sym bcmp=kernel_bcmp $<TARGET_FILE:hermit-bootstrap>
# Copy libhermit.a into local prefix directory so that all subsequent
# targets can link against the freshly built version (as opposed to
# linking against the one supplied by the toolchain)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment