Finished Aurix Protocol, AxBoot logs to file now
This commit is contained in:
parent
b1d59e02eb
commit
d1a5d7d43d
37 changed files with 744 additions and 221 deletions
|
@ -17,11 +17,22 @@
|
|||
/* SOFTWARE. */
|
||||
/*********************************************************************************/
|
||||
|
||||
#include <boot/aurix.h>
|
||||
#include <debug/uart.h>
|
||||
|
||||
void _start(void)
|
||||
void _start(struct aurix_parameters *params)
|
||||
{
|
||||
serial_init();
|
||||
|
||||
if (params->revision != AURIX_PROTOCOL_REVISION) {
|
||||
serial_sendstr("Aurix Protocol revision is not compatible!\n");
|
||||
}
|
||||
|
||||
for (int i = 0; i < 100; i++) {
|
||||
volatile uint32_t *fb_ptr = (uint32_t *)params->framebuffer->addr;
|
||||
fb_ptr[i * (params->framebuffer->pitch / 4) + i] = 0xffffff;
|
||||
}
|
||||
|
||||
serial_sendstr("Hello from AurixOS!\n");
|
||||
|
||||
for (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue