Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSK
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
koenigl2
OpenSK
Commits
cd8d0881
Commit
cd8d0881
authored
4 years ago
by
koenigl
Browse files
Options
Downloads
Patches
Plain Diff
remove custom alloc error handler
parent
6da814be
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
src/allocator.rs
+0
-16
0 additions, 16 deletions
src/allocator.rs
src/main.rs
+0
-2
0 additions, 2 deletions
src/main.rs
with
0 additions
and
18 deletions
src/allocator.rs
+
0
−
16
View file @
cd8d0881
...
...
@@ -87,19 +87,3 @@ unsafe impl GlobalAlloc for TockAllocator {
#[global_allocator]
static
ALLOCATOR
:
TockAllocator
=
TockAllocator
::
new
();
#[cfg(not(feature
=
"custom_alloc_error_handler"
))]
#[alloc_error_handler]
unsafe
fn
alloc_error_handler
(
_
:
Layout
)
->
!
{
use
crate
::
syscalls
;
// Print 0x01 using the LowLevelDebug capsule (if available).
let
_
=
syscalls
::
command1_insecure
(
8
,
2
,
0x01
);
// Signal a panic using the LowLevelDebug capsule (if available).
let
_
=
syscalls
::
command1_insecure
(
8
,
1
,
0x01
);
loop
{
syscalls
::
raw
::
yieldk
();
}
}
This diff is collapsed.
Click to expand it.
src/main.rs
+
0
−
2
View file @
cd8d0881
...
...
@@ -11,8 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#![feature(alloc_error_handler)]
#![cfg_attr(not(feature
=
"std"
),
no_std)]
#[macro_use]
...
...
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