40,7 → 40,9 |
#include "main.h" |
#include "asm.h" |
|
/* these tho variables will be set by the detect_subarchitecture function */ |
extern uint8_t subarchitecture; |
extern uint16_t mid_mask; |
|
void write(const char *str, const int len) |
{ |
129,14 → 131,7 |
: "r" (0), "i" (ASI_ICBUS_CONFIG)); |
current_mid >>= ICBUS_CONFIG_MID_SHIFT; |
|
if (subarchitecture == SUBARCH_US) { |
current_mid &= ICBUS_CONFIG_MID_MASK_US; |
} else if (subarchitecture == SUBARCH_US3) { |
current_mid &= ICBUS_CONFIG_MID_MASK_US3; |
} else { |
printf("MID format unknown for this subarchitecture."); |
return 0; |
} |
current_mid &= mid_mask; |
|
/* wake up CPUs */ |
|