git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: fix almost *ALL* warnings.
[lunaix-os.git]
/
lunaix-os
/
debug
/
gdbstub.c
diff --git
a/lunaix-os/debug/gdbstub.c
b/lunaix-os/debug/gdbstub.c
index d87db19fa33cc46ad519da0f74287cd2a0eb8c41..38d35adf0b13e75a56aa771725a0abdb3ce3840d 100644
(file)
--- a/
lunaix-os/debug/gdbstub.c
+++ b/
lunaix-os/debug/gdbstub.c
@@
-42,8
+42,8
@@
****************************************************************************/
#ifndef GDBSTUB_DONT_DEFINE_STDINT_TYPES
****************************************************************************/
#ifndef GDBSTUB_DONT_DEFINE_STDINT_TYPES
-typedef unsigned char u
int
8_t;
-typedef unsigned short u
int
16_t;
+typedef unsigned char u8_t;
+typedef unsigned short u16_t;
typedef unsigned long uint32_t;
#endif
typedef unsigned long uint32_t;
#endif
@@
-1176,16
+1176,16
@@
gdb_main(struct gdb_state* state)
struct gdb_idtr
{
struct gdb_idtr
{
- u
int
16_t len;
+ u16_t len;
uint32_t offset;
} __attribute__((packed));
struct gdb_idt_gate
{
uint32_t offset;
} __attribute__((packed));
struct gdb_idt_gate
{
- u
int
16_t offset_low;
- u
int
16_t segment;
- u
int
16_t flags;
- u
int
16_t offset_high;
+ u16_t offset_low;
+ u16_t segment;
+ u16_t flags;
+ u16_t offset_high;
} __attribute__((packed));
/*****************************************************************************
} __attribute__((packed));
/*****************************************************************************