X-Git-Url: https://robinkrens.nl/gitweb/?p=cortex-from-scratch;a=blobdiff_plain;f=main.c;h=84496d5ede6dc0933fe7ef74bec218c23f24c6a9;hp=5b488cfc42ebcfef20210e2e3b3436059302dcf0;hb=3f9ee85c250250580f0ceb38525ddb99ebc6d36e;hpb=22c1abee1ad44eb88784fd7ff38ca669f41b6c01 diff --git a/main.c b/main.c index 5b488cf..84496d5 100644 --- a/main.c +++ b/main.c @@ -49,8 +49,19 @@ void main() systick_init(); uart_puts("LOADING SYSTEM 0.1 ...\n"); sysinfo(); - addrtohex((volatile uint32_t) 0x12345678 ); - addrtohex((volatile uint32_t) *SCB_VTOR ); + mm_init(); + + int * p2 = mm_alloc(200); + *p2 = 0x12345678; + + test_memory(p2); + + addrtohex(p2); + addrtohex(*p2); + + + //addrtohex((volatile uint32_t) 0x12345678 ); + //addrtohex((volatile uint32_t) SCB_VTOR ); // asm("cpsie i"); // enable irq , cpsied f (disable faukts(