diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel.c b/src/kernel.c index 8fbeb66..2531c03 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -1,6 +1,6 @@ #include <stdint.h> -void entry( ) +void entry( void ) { volatile uint8_t *VIDEO_MEMORY = (uint8_t *)0xb8000; @@ -11,9 +11,9 @@ void entry( ) *(VIDEO_MEMORY+8) = 'O'; *(VIDEO_MEMORY+10) = '_'; - uint8_t bar[4] = "\\|/-"; + volatile uint8_t bar[] = "\\|/-"; int pos = 10; - volatile int i = 0; + int i = 0; for( i = 0; i < 20000; i++ ) { if( i % 1000 == 0 ) { *(VIDEO_MEMORY+pos) = '.'; |