Draft: lab 5 failed

This commit is contained in:
2025-05-03 20:45:34 +08:00
parent 981cae803b
commit e73f90395d
39 changed files with 588 additions and 429 deletions

View File

@@ -24,7 +24,7 @@
*/
/* a properly aligned buffer */
extern volatile unsigned int mbox[36];
// extern volatile unsigned int mbox[36];
#define MBOX_REQUEST 0
@@ -45,7 +45,7 @@ extern volatile unsigned int mbox[36];
#define MBOX_TAG_GETSERIAL 0x00010004
#define MBOX_TAG_ARM_MEMORY 0x00010005
int mbox_call(unsigned char ch);
int mbox_call(unsigned char ch, unsigned int *mbox);
unsigned int get_board_revision(void);
unsigned int get_memory_base_addr(void);
unsigned int get_memory_size(void);