Fix checkpatch issue - ERROR:POINTER_LOCATION
This commit changes the pointer's location in order to comply with the defined coding style. Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@linux.intel.com> Change-Id: Ibcf1ef0e4fc53b0cb5286b36119e76d017f24cd9
This commit is contained in:
parent
31dddb9e1b
commit
29bd1c70ab
18 changed files with 66 additions and 66 deletions
|
|
@ -34,7 +34,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
void usage (
|
||||
char* progname /* name of the program to use */
|
||||
char *progname /* name of the program to use */
|
||||
)
|
||||
{
|
||||
fprintf (stderr, "Utility converts decimal numbers to hexadecimal\n");
|
||||
|
|
@ -43,7 +43,7 @@ void usage (
|
|||
|
||||
int main (
|
||||
int argc,
|
||||
char* argv[]
|
||||
char *argv[]
|
||||
)
|
||||
{
|
||||
if (argc != 2)
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ static void clean_exit(const int exit_code);
|
|||
|
||||
typedef struct s_isrList
|
||||
{
|
||||
void * fnc;
|
||||
void *fnc;
|
||||
unsigned int dpl;
|
||||
} ISR_LIST;
|
||||
|
||||
|
|
@ -213,8 +213,8 @@ static void genIdt(void)
|
|||
{
|
||||
unsigned int i;
|
||||
unsigned int size;
|
||||
void * spurAddr;
|
||||
void * spurNoErrAddr;
|
||||
void *spurAddr;
|
||||
void *spurNoErrAddr;
|
||||
|
||||
/*
|
||||
* First find the address of the spurious interrupt handlers. They are the
|
||||
|
|
@ -257,7 +257,7 @@ static void genIdt(void)
|
|||
|
||||
while (size--)
|
||||
{
|
||||
void * addr;
|
||||
void *addr;
|
||||
unsigned int vec;
|
||||
unsigned int dpl;
|
||||
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ static char postscript[] = "\
|
|||
#endif /* _HGUARD_ */\n";
|
||||
|
||||
static Elf32_Ehdr ehdr; /* ELF header */
|
||||
static Elf32_Shdr * shdr; /* pointer to array ELF section headers */
|
||||
static Elf32_Shdr *shdr; /* pointer to array ELF section headers */
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
|
|
@ -308,8 +308,8 @@ static int ehdrLoad(int fd /* file descriptor of file from which to read */
|
|||
* byte swapping if the host and target have different byte ordering.
|
||||
*/
|
||||
|
||||
if (((*(char*)&ix == 0x78) && (ehdr.e_ident[EI_DATA] == ELFDATA2MSB)) ||
|
||||
((*(char*)&ix == 0x12) && (ehdr.e_ident[EI_DATA] == ELFDATA2LSB)))
|
||||
if (((*(char *)&ix == 0x78) && (ehdr.e_ident[EI_DATA] == ELFDATA2MSB)) ||
|
||||
((*(char *)&ix == 0x12) && (ehdr.e_ident[EI_DATA] == ELFDATA2LSB)))
|
||||
{
|
||||
swabRequired = 1;
|
||||
DBG_PRINT ("Swab required\n");
|
||||
|
|
@ -460,7 +460,7 @@ int strTblLoad(int fd, /* file descriptor of file from which to read */
|
|||
char **ppStringTable /* ptr to ptr to string table */
|
||||
)
|
||||
{
|
||||
char * pTable;
|
||||
char *pTable;
|
||||
int nBytes;
|
||||
|
||||
DBG_PRINT ("Allocating %d bytes for string table\n",
|
||||
|
|
@ -600,12 +600,12 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
Elf32_Off symTblOffset = 0;
|
||||
Elf32_Word symTblSize; /* in bytes */
|
||||
char * pStringTable = NULL;
|
||||
char * inFileName;
|
||||
char * outFileName;
|
||||
char *pStringTable = NULL;
|
||||
char *inFileName;
|
||||
char *outFileName;
|
||||
int option;
|
||||
int inFd = -1;
|
||||
FILE * outFile = NULL;
|
||||
FILE *outFile = NULL;
|
||||
unsigned strTblIx;
|
||||
|
||||
/* argument parsing */
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#define ALIAS(fn,fn_alias,ret) ret fn_alias() __attribute__((alias(#fn)));
|
||||
|
||||
extern const char * basename(const char *pathname);
|
||||
extern const char *basename(const char *pathname);
|
||||
|
||||
static inline
|
||||
unsigned long round_up(unsigned long x, unsigned long align)
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
#include <string.h>
|
||||
#include <vxmicro/os.h>
|
||||
|
||||
const char * basename(const char *pathname)
|
||||
const char *basename(const char *pathname)
|
||||
{
|
||||
int end = strlen(pathname)-1;
|
||||
while(end != -1) {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ in decimal notation. Each event object is outputted on stdout.
|
|||
#include <stdlib.h>
|
||||
|
||||
void usage (
|
||||
char* progname /* name of the program to use */
|
||||
char *progname /* name of the program to use */
|
||||
)
|
||||
{
|
||||
fprintf (stderr, "Utility creates a series of microkernel VPF event objects. Output is sent to stdout.\n");
|
||||
|
|
@ -52,7 +52,7 @@ void usage (
|
|||
|
||||
int main (
|
||||
int argc,
|
||||
char* argv[]
|
||||
char *argv[]
|
||||
)
|
||||
{
|
||||
int i, j;
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
#define UNALIGNED_WRITE(p, v) \
|
||||
do { \
|
||||
unsigned int __attribute__((__may_alias__)) *pp = (unsigned int*)(p); \
|
||||
unsigned int __attribute__((__may_alias__)) *pp = (unsigned int *)(p); \
|
||||
_Unaligned32Write (pp, (v)); \
|
||||
} \
|
||||
while (0)
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
|
||||
#define UNALIGNED_WRITE(p, v) \
|
||||
do { \
|
||||
unsigned int __attribute__((__may_alias__)) *pp = (unsigned int*)(p); \
|
||||
unsigned int __attribute__((__may_alias__)) *pp = (unsigned int *)(p); \
|
||||
*pp = (v); \
|
||||
} \
|
||||
while (0)
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ int vsnprintf(char *restrict s, size_t len, const char *restrict fmt, va_list li
|
|||
int vsprintf(char *restrict s, const char *restrict fmt, va_list list);
|
||||
int vfprintf(FILE *restrict stream, const char *restrict format, va_list ap);
|
||||
|
||||
int puts(const char* s);
|
||||
int puts(const char *s);
|
||||
|
||||
int fputc (int c, FILE *stream);
|
||||
int fputs (const char *restrict s, FILE *restrict stream);
|
||||
|
|
|
|||
|
|
@ -494,7 +494,7 @@ int sprintfMiscTest(void)
|
|||
char buffer[100];
|
||||
|
||||
/*******************/
|
||||
sprintf (buffer, "%p", (void*) DEADBEEF);
|
||||
sprintf (buffer, "%p", (void *) DEADBEEF);
|
||||
if (strcmp (buffer, DEADBEEF_PTR_STR) != 0)
|
||||
{
|
||||
TC_ERROR ("sprintf(%%p). Expected '%s', got '%s'\n",
|
||||
|
|
|
|||
|
|
@ -58,8 +58,8 @@ Ensures interrupt and exception stubs are installed correctly.
|
|||
|
||||
extern unsigned char _IdtBaseAddress[];
|
||||
|
||||
extern void * nanoIntStub;
|
||||
extern void * exc_divide_error_handlerStub;
|
||||
extern void *nanoIntStub;
|
||||
extern void *exc_divide_error_handlerStub;
|
||||
|
||||
NANO_CPU_INT_REGISTER (nanoIntStub, TEST_SOFT_INT, 0);
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ void exc_divide_error_handler(NANO_ESF *pEsf)
|
|||
|
||||
int nanoIdtStubTest(void)
|
||||
{
|
||||
IDT_ENTRY * pIdtEntry;
|
||||
IDT_ENTRY *pIdtEntry;
|
||||
uint16_t offset;
|
||||
|
||||
/* Check for the interrupt stub */
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ static volatile int mainTaskNotReady = 0;
|
|||
|
||||
void isr_task_command_handler(void *data)
|
||||
{
|
||||
ISR_INFO * pInfo = (ISR_INFO *) data;
|
||||
ISR_INFO *pInfo = (ISR_INFO *) data;
|
||||
int value = -1;
|
||||
|
||||
switch (pInfo->cmd)
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ typedef struct
|
|||
int error; /* error value (if any) */
|
||||
union
|
||||
{
|
||||
void * data; /* pointer to data to use or return */
|
||||
void *data; /* pointer to data to use or return */
|
||||
int value; /* value to be passed or returned */
|
||||
};
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ static volatile int excHandlerExecuted;
|
|||
|
||||
static struct nano_sem wakeFiber;
|
||||
static struct nano_timer timer;
|
||||
static void * timerData[1];
|
||||
static void *timerData[1];
|
||||
|
||||
static int fiberDetectedError = 0;
|
||||
static char fiberStack1[FIBER_STACKSIZE];
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ in ISR context.
|
|||
typedef struct
|
||||
{
|
||||
struct nano_fifo *channel; /* FIFO channel */
|
||||
void * data; /* pointer to data to add */
|
||||
void *data; /* pointer to data to add */
|
||||
} ISR_FIFO_INFO;
|
||||
|
||||
/* globals */
|
||||
|
|
@ -105,7 +105,7 @@ struct nano_sem nanoSemObj3; /* Used to block/wake-up fiber3 */
|
|||
struct nano_sem nanoSemObjTask; /* Used to block/wake-up task */
|
||||
|
||||
struct nano_timer timer;
|
||||
void * timerData[1];
|
||||
void *timerData[1];
|
||||
|
||||
int myFifoData1[4];
|
||||
int myFifoData2[2];
|
||||
|
|
@ -165,7 +165,7 @@ void testTaskFifoGetW(void);
|
|||
|
||||
void isr_fifo_put(void *parameter)
|
||||
{
|
||||
ISR_FIFO_INFO * pInfo = (ISR_FIFO_INFO *) parameter;
|
||||
ISR_FIFO_INFO *pInfo = (ISR_FIFO_INFO *) parameter;
|
||||
|
||||
nano_isr_fifo_put (pInfo->channel, pInfo->data);
|
||||
}
|
||||
|
|
@ -184,7 +184,7 @@ void isr_fifo_put(void *parameter)
|
|||
|
||||
void isr_fifo_get(void *parameter)
|
||||
{
|
||||
ISR_FIFO_INFO * pInfo = (ISR_FIFO_INFO *) parameter;
|
||||
ISR_FIFO_INFO *pInfo = (ISR_FIFO_INFO *) parameter;
|
||||
|
||||
pInfo->data = nano_isr_fifo_get (pInfo->channel);
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@ void isr_fifo_get(void *parameter)
|
|||
|
||||
void fiber1(void)
|
||||
{
|
||||
void * pData; /* pointer to FIFO object get from the queue */
|
||||
void *pData; /* pointer to FIFO object get from the queue */
|
||||
int count = 0; /* counter */
|
||||
|
||||
/* Wait for fiber1 to be activated. */
|
||||
|
|
@ -276,8 +276,8 @@ void fiber1(void)
|
|||
|
||||
void testFiberFifoGetW(void)
|
||||
{
|
||||
void * pGetData; /* pointer to FIFO object get from the queue */
|
||||
void * pPutData; /* pointer to FIFO object to put to the queue */
|
||||
void *pGetData; /* pointer to FIFO object get from the queue */
|
||||
void *pPutData; /* pointer to FIFO object to put to the queue */
|
||||
|
||||
TC_PRINT("Test Fiber FIFO Get Wait Interfaces\n\n");
|
||||
pGetData = nano_fiber_fifo_get_wait(&nanoFifoObj2);
|
||||
|
|
@ -327,7 +327,7 @@ void testFiberFifoGetW(void)
|
|||
|
||||
void testIsrFifoFromFiber(void)
|
||||
{
|
||||
void * pGetData; /* pointer to FIFO object get from the queue */
|
||||
void *pGetData; /* pointer to FIFO object get from the queue */
|
||||
|
||||
TC_PRINT("Test ISR FIFO (invoked from Fiber)\n\n");
|
||||
|
||||
|
|
@ -384,8 +384,8 @@ void testIsrFifoFromFiber(void)
|
|||
|
||||
void testIsrFifoFromTask(void)
|
||||
{
|
||||
void * pGetData; /* pointer to FIFO object get from the queue */
|
||||
void * pPutData; /* pointer to FIFO object put to queue */
|
||||
void *pGetData; /* pointer to FIFO object get from the queue */
|
||||
void *pPutData; /* pointer to FIFO object put to queue */
|
||||
int count = 0; /* counter */
|
||||
|
||||
TC_PRINT("Test ISR FIFO (invoked from Task)\n\n");
|
||||
|
|
@ -447,7 +447,7 @@ void testIsrFifoFromTask(void)
|
|||
|
||||
void fiber2(void)
|
||||
{
|
||||
void * pData; /* pointer to FIFO object from the queue */
|
||||
void *pData; /* pointer to FIFO object from the queue */
|
||||
|
||||
/* Wait for fiber2 to be activated */
|
||||
|
||||
|
|
@ -507,7 +507,7 @@ void fiber2(void)
|
|||
|
||||
void fiber3(void)
|
||||
{
|
||||
void * pData;
|
||||
void *pData;
|
||||
|
||||
/* Wait for fiber3 to be activated */
|
||||
nano_fiber_sem_take_wait (&nanoSemObj3);
|
||||
|
|
@ -557,8 +557,8 @@ void fiber3(void)
|
|||
|
||||
void testTaskFifoGetW(void)
|
||||
{
|
||||
void * pGetData; /* pointer to FIFO object get from the queue */
|
||||
void * pPutData; /* pointer to FIFO object to put to the queue */
|
||||
void *pGetData; /* pointer to FIFO object get from the queue */
|
||||
void *pPutData; /* pointer to FIFO object to put to the queue */
|
||||
|
||||
PRINT_LINE;
|
||||
TC_PRINT("Test Task FIFO Get Wait Interfaces\n\n");
|
||||
|
|
@ -627,7 +627,7 @@ void initNanoObjects(void)
|
|||
|
||||
void main(void)
|
||||
{
|
||||
void * pData; /* pointer to FIFO object get from the queue */
|
||||
void *pData; /* pointer to FIFO object get from the queue */
|
||||
int count = 0; /* counter */
|
||||
TC_START("Test Nanokernel FIFO");
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ These scenarios will be tested using a combinations of tasks, fibers and ISRs.
|
|||
typedef struct
|
||||
{
|
||||
struct nano_lifo *channel; /* LIFO channel */
|
||||
void * data; /* pointer to data to add */
|
||||
void *data; /* pointer to data to add */
|
||||
} ISR_LIFO_INFO;
|
||||
|
||||
typedef struct
|
||||
|
|
@ -94,7 +94,7 @@ static struct nano_lifo lifoChannel; /* LIFO channel used in test *
|
|||
static struct nano_sem taskWaitSem; /* task waits on this semaphore */
|
||||
static struct nano_sem fiberWaitSem; /* fiber waits on this semaphore */
|
||||
static struct nano_timer timer;
|
||||
static void * timerData[1];
|
||||
static void *timerData[1];
|
||||
static ISR_LIFO_INFO isrLifoInfo = {&lifoChannel, NULL};
|
||||
|
||||
static volatile int fiberDetectedFailure = 0; /* non-zero on failure */
|
||||
|
|
@ -118,7 +118,7 @@ static void (*_trigger_nano_isr_lifo_get) (void) = (vvfn)sw_isr_trigger_1;
|
|||
|
||||
void isr_lifo_put(void *data)
|
||||
{
|
||||
ISR_LIFO_INFO * pInfo = (ISR_LIFO_INFO *) data;
|
||||
ISR_LIFO_INFO *pInfo = (ISR_LIFO_INFO *) data;
|
||||
|
||||
nano_isr_lifo_put (pInfo->channel, pInfo->data);
|
||||
}
|
||||
|
|
@ -137,7 +137,7 @@ void isr_lifo_put(void *data)
|
|||
|
||||
void isr_lifo_get(void *data)
|
||||
{
|
||||
ISR_LIFO_INFO * pInfo = (ISR_LIFO_INFO *) data;
|
||||
ISR_LIFO_INFO *pInfo = (ISR_LIFO_INFO *) data;
|
||||
|
||||
pInfo->data = nano_isr_lifo_get (pInfo->channel);
|
||||
}
|
||||
|
|
@ -155,7 +155,7 @@ void isr_lifo_get(void *data)
|
|||
|
||||
int fiberLifoWaitTest(void)
|
||||
{
|
||||
void * data; /* ptr to data retrieved from LIFO */
|
||||
void *data; /* ptr to data retrieved from LIFO */
|
||||
|
||||
/*
|
||||
* The LIFO is empty; wait for an item to be added to the LIFO
|
||||
|
|
@ -217,7 +217,7 @@ int fiberLifoWaitTest(void)
|
|||
|
||||
int fiberLifoNonWaitTest(void)
|
||||
{
|
||||
void * data; /* pointer to data retrieved from LIFO */
|
||||
void *data; /* pointer to data retrieved from LIFO */
|
||||
|
||||
/* The LIFO has two items in it; retrieve them both */
|
||||
|
||||
|
|
@ -391,7 +391,7 @@ int taskLifoWaitTest(void)
|
|||
|
||||
int taskLifoNonWaitTest(void)
|
||||
{
|
||||
void * data; /* ptr to data retrieved from LIFO */
|
||||
void *data; /* ptr to data retrieved from LIFO */
|
||||
|
||||
/*
|
||||
* The fiber is presently waiting for <fiberWaitSem>. Populate the LIFO
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ static struct nano_sem testSem;
|
|||
static int fiberDetectedFailure = 0;
|
||||
|
||||
static struct nano_timer timer;
|
||||
static void * timerData[1];
|
||||
static void *timerData[1];
|
||||
|
||||
static char fiberStack[FIBER_STACKSIZE];
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ static void (*_trigger_nano_isr_sem_take) (void) = (vvfn)sw_isr_trigger_1;
|
|||
|
||||
void isr_sem_take(void *data)
|
||||
{
|
||||
ISR_SEM_INFO * pInfo = (ISR_SEM_INFO *) data;
|
||||
ISR_SEM_INFO *pInfo = (ISR_SEM_INFO *) data;
|
||||
|
||||
pInfo->data = nano_isr_sem_take (pInfo->sem);
|
||||
}
|
||||
|
|
@ -128,7 +128,7 @@ void isr_sem_take(void *data)
|
|||
|
||||
void isr_sem_give(void *data)
|
||||
{
|
||||
ISR_SEM_INFO * pInfo = (ISR_SEM_INFO *) data;
|
||||
ISR_SEM_INFO *pInfo = (ISR_SEM_INFO *) data;
|
||||
|
||||
nano_isr_sem_give (pInfo->sem);
|
||||
pInfo->data = 1; /* Indicate semaphore has been given */
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ uint32_t myIsrData[NUM_STACK_ELEMENT]; /* Data used for testing
|
|||
uint32_t stack1[NUM_STACK_ELEMENT];
|
||||
uint32_t stack2[NUM_STACK_ELEMENT];
|
||||
|
||||
void * timerData[1];
|
||||
void *timerData[1];
|
||||
int retCode = TC_PASS;
|
||||
|
||||
/* locals */
|
||||
|
|
@ -132,8 +132,8 @@ void initNanoObjects(void);
|
|||
void testFiberStackPopW(void);
|
||||
void testTaskStackPopW(void);
|
||||
/* Isr related functions */
|
||||
void isr_stack_push(void * parameter);
|
||||
void isr_stack_pop(void * parameter);
|
||||
void isr_stack_push(void *parameter);
|
||||
void isr_stack_pop(void *parameter);
|
||||
void testIsrStackFromFiber(void);
|
||||
void testIsrStackFromTask(void);
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ void initData(void)
|
|||
|
||||
void isr_stack_push(void *parameter)
|
||||
{
|
||||
ISR_STACK_INFO * pInfo = (ISR_STACK_INFO *) parameter;
|
||||
ISR_STACK_INFO *pInfo = (ISR_STACK_INFO *) parameter;
|
||||
|
||||
nano_isr_stack_push (pInfo->channel, pInfo->data);
|
||||
|
||||
|
|
@ -191,7 +191,7 @@ void isr_stack_push(void *parameter)
|
|||
|
||||
void isr_stack_pop(void *parameter)
|
||||
{
|
||||
ISR_STACK_INFO * pInfo = (ISR_STACK_INFO *) parameter;
|
||||
ISR_STACK_INFO *pInfo = (ISR_STACK_INFO *) parameter;
|
||||
|
||||
if (nano_isr_stack_pop (pInfo->channel, &(pInfo->data)) == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -76,10 +76,10 @@ static struct nano_timer midTimer;
|
|||
static struct nano_sem wakeTask;
|
||||
static struct nano_sem wakeFiber;
|
||||
|
||||
static void * timerData[1];
|
||||
static void * shortTimerData[1];
|
||||
static void * longTimerData[1];
|
||||
static void * midTimerData[1];
|
||||
static void *timerData[1];
|
||||
static void *shortTimerData[1];
|
||||
static void *longTimerData[1];
|
||||
static void *midTimerData[1];
|
||||
|
||||
static int fiberDetectedError = 0;
|
||||
static char fiberStack[FIBER_STACKSIZE];
|
||||
|
|
@ -136,7 +136,7 @@ int basicTimerWait(timer_start_func startRtn, timer_getw_func waitRtn,
|
|||
uint32_t tick; /* current tick */
|
||||
uint32_t elapsed; /* # of elapsed ticks */
|
||||
uint32_t duration; /* duration of the test in ticks */
|
||||
void * result; /* value returned from timer get routine */
|
||||
void *result; /* value returned from timer get routine */
|
||||
int busywaited = 0; /* non-zero if <getRtn> returns NULL */
|
||||
|
||||
TC_PRINT (" - test expected to take four seconds\n");
|
||||
|
|
@ -243,7 +243,7 @@ void startTimers(timer_start_func startRtn)
|
|||
int busyWaitTimers(timer_get_func getRtn)
|
||||
{
|
||||
int numExpired = 0; /* # of expired timers */
|
||||
void * result; /* value returned from <getRtn> */
|
||||
void *result; /* value returned from <getRtn> */
|
||||
uint32_t ticks; /* tick by which time test should be complete */
|
||||
|
||||
TC_PRINT (" - test expected to take five or six seconds\n");
|
||||
|
|
|
|||
|
|
@ -104,12 +104,12 @@ typedef struct idtEntry
|
|||
|
||||
static inline void _IdtEntCreate
|
||||
(
|
||||
unsigned long long * pIdtEntry, /* Pointer to where the entry is be built */
|
||||
unsigned long long *pIdtEntry, /* Pointer to where the entry is be built */
|
||||
void (*routine) (void *), /* Routine to call when interrupt occurs */
|
||||
unsigned int dpl /* priv level for interrupt descriptor */
|
||||
)
|
||||
{
|
||||
unsigned long * pIdtEntry32 = (unsigned long *)pIdtEntry;
|
||||
unsigned long *pIdtEntry32 = (unsigned long *)pIdtEntry;
|
||||
|
||||
pIdtEntry32[0] = (KERNEL_CODE_SEG_SELECTOR << 16) |
|
||||
((unsigned short)(unsigned int)routine);
|
||||
|
|
|
|||
Loading…
Reference in a new issue