adds volatile to array passed to tohost and updates bsp submodule
This commit is contained in:
		 Submodule bare-metal-bsp updated: 3042e0e124...ada4881d33
									
								
							| @@ -19,13 +19,15 @@ extern volatile uint32_t tohost; | |||||||
| extern volatile uint32_t fromhost; | extern volatile uint32_t fromhost; | ||||||
| int main() { | int main() { | ||||||
|   volatile int result = factorial(10); |   volatile int result = factorial(10); | ||||||
|   char string[] = "hello world with write"; |   volatile char string[] = "hello world with write in hello"; | ||||||
|  |  | ||||||
|  |   volatile uint64_t payload[4] = {64, 0, (uintptr_t)string, | ||||||
|  |                                   (strlen(string) + 1)}; | ||||||
|  |   tohost = (uint32_t)payload; | ||||||
|  |  | ||||||
|   write(STDOUT_FILENO, string, sizeof(string)); |   write(STDOUT_FILENO, string, sizeof(string)); | ||||||
|  |  | ||||||
|   uint64_t payload[4] = {64, 0, (uintptr_t)string, (strlen(string) + 1)}; |  | ||||||
|   // tohost = (uint32_t)payload; |  | ||||||
|   printf("Factorial is %d", result); |   printf("Factorial is %d", result); | ||||||
|   //  printf("End of execution"); |   // printf("End of execution"); | ||||||
|   return 0; |   return 0; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user