Advertisement
Guest User

My errors

a guest
Jul 24th, 2022
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. kernel.cpp:85:23: error: expected primary-expression before 'asm'
  2. 85 | u32 modeInfoPointer = asm volatile ("eax");
  3. | ^~~
  4. kernel.cpp:88:39: error: request for member 'PhysBasePtr' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
  5. 88 | static u32 *BUFFER = (u32 *) modeInfo.PhysBasePtr;
  6. | ^~~~~~~~~~~
  7. kernel.cpp:17:37: error: request for member 'XResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
  8. 17 | #define SCREEN_WIDTH (int)(modeInfo.XResolution)
  9. | ^~~~~~~~~~~
  10. kernel.cpp:20:22: note: in expansion of macro 'SCREEN_WIDTH'
  11. 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
  12. | ^~~~~~~~~~~~
  13. kernel.cpp:91:18: note: in expansion of macro 'SCREEN_SIZE'
  14. 91 | u32 _sbuffers[2][SCREEN_SIZE];
  15. | ^~~~~~~~~~~
  16. kernel.cpp:18:38: error: request for member 'YResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
  17. 18 | #define SCREEN_HEIGHT (int)(modeInfo.YResolution)
  18. | ^~~~~~~~~~~
  19. kernel.cpp:20:37: note: in expansion of macro 'SCREEN_HEIGHT'
  20. 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
  21. | ^~~~~~~~~~~~~
  22. kernel.cpp:91:18: note: in expansion of macro 'SCREEN_SIZE'
  23. 91 | u32 _sbuffers[2][SCREEN_SIZE];
  24. | ^~~~~~~~~~~
  25. kernel.cpp: In function 'void screen_set(u32, int, int)':
  26. kernel.cpp:107:37: error: request for member 'PhysBasePtr' in 'modeInfoPointer', which is of non-class type 'u32' {aka
  27. unsigned int'}
  28. 107 | u32 physical_address = modeInfo.PhysBasePtr + y * modeInfo.LinBytesPerScanLine + x * bytesPerPixel;
  29. | ^~~~~~~~~~~
  30. kernel.cpp:107:64: error: request for member 'LinBytesPerScanLine' in 'modeInfoPointer', which is of non-class type 'u3
  31. ' {aka 'unsigned int'}
  32. 107 | u32 physical_address = modeInfo.PhysBasePtr + y * modeInfo.LinBytesPerScanLine + x * bytesPerPixel;
  33. | ^~~~~~~~~~~~~~~~~~~
  34. kernel.cpp:104:33: error: base operand of '->' is not a pointer
  35. 104 | #define bytesPerPixel ((modeInfo->BitsPerPixel + 7) / 8)
  36. | ^~
  37. kernel.cpp:107:90: note: in expansion of macro 'bytesPerPixel'
  38. 107 | u32 physical_address = modeInfo.PhysBasePtr + y * modeInfo.LinBytesPerScanLine + x * bytesPerPixel;
  39. | ^~~~~~~~~~~~~
  40. kernel.cpp:108:5: error: '_sbuffers' was not declared in this scope
  41. 108 | _sbuffers[_sback][physical_address]=color;
  42. | ^~~~~~~~~
  43. kernel.cpp: In function 'void screen_swap()':
  44. kernel.cpp:94:18: error: '_sbuffers' was not declared in this scope
  45. 94 | #define CURRENT (_sbuffers[_sback])
  46. | ^~~~~~~~~
  47. kernel.cpp:232:20: note: in expansion of macro 'CURRENT'
  48. 232 | memcpy(BUFFER, CURRENT, SCREEN_SIZE);
  49. | ^~~~~~~
  50. kernel.cpp:17:37: error: request for member 'XResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
  51. 17 | #define SCREEN_WIDTH (int)(modeInfo.XResolution)
  52. | ^~~~~~~~~~~
  53. kernel.cpp:20:22: note: in expansion of macro 'SCREEN_WIDTH'
  54. 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
  55. | ^~~~~~~~~~~~
  56. kernel.cpp:232:29: note: in expansion of macro 'SCREEN_SIZE'
  57. 232 | memcpy(BUFFER, CURRENT, SCREEN_SIZE);
  58. | ^~~~~~~~~~~
  59. kernel.cpp:18:38: error: request for member 'YResolution' in 'modeInfoPointer', which is of non-class type 'u32' {aka 'unsigned int'}
  60. 18 | #define SCREEN_HEIGHT (int)(modeInfo.YResolution)
  61. | ^~~~~~~~~~~
  62. kernel.cpp:20:37: note: in expansion of macro 'SCREEN_HEIGHT'
  63. 20 | #define SCREEN_SIZE (SCREEN_WIDTH * SCREEN_HEIGHT)
  64. | ^~~~~~~~~~~~~
  65. kernel.cpp:232:29: note: in expansion of macro 'SCREEN_SIZE'
  66. 232 | memcpy(BUFFER, CURRENT, SCREEN_SIZE);
  67. | ^~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement