Skip to content
Snippets Groups Projects
Commit cd8d0881 authored by koenigl's avatar koenigl
Browse files

remove custom alloc error handler

parent 6da814be
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment