Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kernel.cpp:85:23: error: expected primary-expression before 'asm'
- 85 | u32 modeInfoPointer = asm volatile ("eax");
- | ^~~
- kernel.cpp:88:39: error: request for member 'PhysBasePtr' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
- 88 | static u32 *BUFFER = (u32 *) modeInfo.PhysBasePtr;
- | ^~~~~~~~~~~
- kernel.cpp:17:37: error: request for member 'XResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
- 17 | #define SCREEN_WIDTH (int)(modeInfo.XResolution)
- | ^~~~~~~~~~~
- kernel.cpp:20:22: note: in expansion of macro 'SCREEN_WIDTH'
- 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
- | ^~~~~~~~~~~~
- kernel.cpp:91:18: note: in expansion of macro 'SCREEN_SIZE'
- 91 | u32 _sbuffers[2][SCREEN_SIZE];
- | ^~~~~~~~~~~
- kernel.cpp:18:38: error: request for member 'YResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
- 18 | #define SCREEN_HEIGHT (int)(modeInfo.YResolution)
- | ^~~~~~~~~~~
- kernel.cpp:20:37: note: in expansion of macro 'SCREEN_HEIGHT'
- 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
- | ^~~~~~~~~~~~~
- kernel.cpp:91:18: note: in expansion of macro 'SCREEN_SIZE'
- 91 | u32 _sbuffers[2][SCREEN_SIZE];
- | ^~~~~~~~~~~
- kernel.cpp: In function 'void screen_set(u32, int, int)':
- kernel.cpp:107:37: error: request for member 'PhysBasePtr' in 'modeInfoPointer', which is of non-class type 'u32' {aka
- unsigned int'}
- 107 | u32 physical_address = modeInfo.PhysBasePtr + y * modeInfo.LinBytesPerScanLine + x * bytesPerPixel;
- | ^~~~~~~~~~~
- kernel.cpp:107:64: error: request for member 'LinBytesPerScanLine' in 'modeInfoPointer', which is of non-class type 'u3
- ' {aka 'unsigned int'}
- 107 | u32 physical_address = modeInfo.PhysBasePtr + y * modeInfo.LinBytesPerScanLine + x * bytesPerPixel;
- | ^~~~~~~~~~~~~~~~~~~
- kernel.cpp:104:33: error: base operand of '->' is not a pointer
- 104 | #define bytesPerPixel ((modeInfo->BitsPerPixel + 7) / 8)
- | ^~
- kernel.cpp:107:90: note: in expansion of macro 'bytesPerPixel'
- 107 | u32 physical_address = modeInfo.PhysBasePtr + y * modeInfo.LinBytesPerScanLine + x * bytesPerPixel;
- | ^~~~~~~~~~~~~
- kernel.cpp:108:5: error: '_sbuffers' was not declared in this scope
- 108 | _sbuffers[_sback][physical_address]=color;
- | ^~~~~~~~~
- kernel.cpp: In function 'void screen_swap()':
- kernel.cpp:94:18: error: '_sbuffers' was not declared in this scope
- 94 | #define CURRENT (_sbuffers[_sback])
- | ^~~~~~~~~
- kernel.cpp:232:20: note: in expansion of macro 'CURRENT'
- 232 | memcpy(BUFFER, CURRENT, SCREEN_SIZE);
- | ^~~~~~~
- kernel.cpp:17:37: error: request for member 'XResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
- 17 | #define SCREEN_WIDTH (int)(modeInfo.XResolution)
- | ^~~~~~~~~~~
- kernel.cpp:20:22: note: in expansion of macro 'SCREEN_WIDTH'
- 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
- | ^~~~~~~~~~~~
- kernel.cpp:232:29: note: in expansion of macro 'SCREEN_SIZE'
- 232 | memcpy(BUFFER, CURRENT, SCREEN_SIZE);
- | ^~~~~~~~~~~
- kernel.cpp:18:38: error: request for member 'YResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
- 18 | #define SCREEN_HEIGHT (int)(modeInfo.YResolution)
- | ^~~~~~~~~~~
- kernel.cpp:20:37: note: in expansion of macro 'SCREEN_HEIGHT'
- 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
- | ^~~~~~~~~~~~~
- kernel.cpp:232:29: note: in expansion of macro 'SCREEN_SIZE'
- 232 | memcpy(BUFFER, CURRENT, SCREEN_SIZE);
- | ^~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement