Skip to content

Commit

Permalink
expr-elimination
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Nov 15, 2019
1 parent 58118dd commit cd73c26
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tock/boards/arty-e21/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,19 @@ pub unsafe fn reset_handler() {
rv32i::init_memory();

let chip = static_init!(arty_e21::chip::ArtyExx, arty_e21::chip::ArtyExx::new());
/*
chip.initialize();
*/

let process_mgmt_cap = create_capability!(capabilities::ProcessManagementCapability);
/*
let main_loop_cap = create_capability!(capabilities::MainLoopCapability);
let memory_allocation_cap = create_capability!(capabilities::MemoryAllocationCapability);
*/
let board_kernel = static_init!(kernel::Kernel, kernel::Kernel::new(&PROCESSES));

/*
kernel::debug::assign_gpios(
Some(&arty_e21::gpio::PORT[0]), // Red
Some(&arty_e21::gpio::PORT[1]),
Expand Down Expand Up @@ -243,6 +248,7 @@ pub unsafe fn reset_handler() {
kernel::debug::set_debug_writer_wrapper(debug_wrapper);
debug!("Initialization complete. Entering main loop.");
*/

extern "C" {
static _sapps: u8;
Expand All @@ -258,5 +264,7 @@ pub unsafe fn reset_handler() {
&process_mgmt_cap,
);

/*
board_kernel.kernel_loop(&artye21, chip, None, &main_loop_cap);
*/
}

0 comments on commit cd73c26

Please sign in to comment.