Skip to content

Commit

Permalink
fix bugs in initialization of global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nooodles2023 committed Sep 18, 2024
1 parent 45ab463 commit 33a5d68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernelmode/vgpu/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ typedef struct _VGPU_BUFFER {
}VGPU_BUFFER, * PVGPU_BUFFER;

// gloval variables
CAPSETS Capsets;
LIST_ENTRY VirglContextList;
KSPIN_LOCK VirglContextListSpinLock;
extern CAPSETS Capsets;
extern LIST_ENTRY VirglContextList;
extern KSPIN_LOCK VirglContextListSpinLock;

#define VGPU_DEBUG_TAG() KdPrint(("[Mvisor] Func:%s Line:%d \n", __FUNCTION__, __LINE__))
#define VGPU_DEBUG_PRINT(string) KdPrint(("[Mvisor] Func:%s Line:%d " string "\n", __FUNCTION__, __LINE__))
Expand Down
5 changes: 5 additions & 0 deletions kernelmode/vgpu/vgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
#include "memory.h"
#include "idr.h"

// gloval variables
CAPSETS Capsets;
LIST_ENTRY VirglContextList;
KSPIN_LOCK VirglContextListSpinLock;

#pragma code_seg(push)
#pragma code_seg()

Expand Down

0 comments on commit 33a5d68

Please sign in to comment.