Raspberry Pi Bare Bones: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Line 347: | Line 347: | ||
extern "C" /* Use C linkage for kernel_main. */ |
extern "C" /* Use C linkage for kernel_main. */ |
||
#endif |
#endif |
||
#ifdef AARCH64 |
|||
void kernel_main(uint64_t dtb_ptr32, uint64_t x1, uint64_t x2, uint64_t x3) |
|||
{ |
|||
// Declare as unused |
|||
(void) dtb_ptr32; |
|||
(void) x1; |
|||
(void) x2; |
|||
(void) x3; |
|||
#else |
|||
void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags) |
void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags) |
||
{ |
{ |
||
Line 353: | Line 363: | ||
(void) r1; |
(void) r1; |
||
(void) atags; |
(void) atags; |
||
#endif |
|||
uart_init(); |
uart_init(); |