git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
793101e
)
Kernel - Misc
author
John Hodge
<
[email protected]
>
Sun, 2 Sep 2012 11:55:08 +0000
(19:55 +0800)
committer
John Hodge
<
[email protected]
>
Sun, 2 Sep 2012 11:55:08 +0000
(19:55 +0800)
KernelLand/Kernel/Makefile
patch
|
blob
|
history
KernelLand/Kernel/include/acess.h
patch
|
blob
|
history
KernelLand/Kernel/include/errno.h
patch
|
blob
|
history
KernelLand/Kernel/include/threads_int.h
patch
|
blob
|
history
diff --git
a/KernelLand/Kernel/Makefile
b/KernelLand/Kernel/Makefile
index
66eb9cd
..
16d63b4
100644
(file)
--- a/
KernelLand/Kernel/Makefile
+++ b/
KernelLand/Kernel/Makefile
@@
-29,6
+29,7
@@
CFLAGS += -Wall -fno-stack-protector -Wstrict-prototypes -std=gnu99 -g
CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized
CFLAGS += -O3
LDFLAGS += -T arch/$(ARCHDIR)/link.ld -g
CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized
CFLAGS += -O3
LDFLAGS += -T arch/$(ARCHDIR)/link.ld -g
+LIBGCC_PATH := $(shell $(CC) -print-libgcc-file-name)
ifeq ($(PLATFORM),default)
OBJDIR := obj-$(ARCH)/
ifeq ($(PLATFORM),default)
OBJDIR := obj-$(ARCH)/
diff --git
a/KernelLand/Kernel/include/acess.h
b/KernelLand/Kernel/include/acess.h
index
1d062a5
..
3abc49a
100644
(file)
--- a/
KernelLand/Kernel/include/acess.h
+++ b/
KernelLand/Kernel/include/acess.h
@@
-15,6
+15,8
@@
#define PACKED __attribute__((packed))
//! Mark a function as not returning
#define NORETURN __attribute__((noreturn))
#define PACKED __attribute__((packed))
//! Mark a function as not returning
#define NORETURN __attribute__((noreturn))
+//! Mark a function that its return value should be used
+#define WARN_UNUSED_RET __attribute__((warn_unused_result))
//! Mark a function (or variable) as deprecated
#define DEPRECATED __attribute__((deprecated))
//! Mark a parameter as unused
//! Mark a function (or variable) as deprecated
#define DEPRECATED __attribute__((deprecated))
//! Mark a parameter as unused
diff --git
a/KernelLand/Kernel/include/errno.h
b/KernelLand/Kernel/include/errno.h
index
a327cc0
..
31f68a0
100644
(file)
--- a/
KernelLand/Kernel/include/errno.h
+++ b/
KernelLand/Kernel/include/errno.h
@@
-22,6
+22,7
@@
enum eErrorNums
ENFILE, // Too many open files
ENOTDIR, // Not a directory
EIO, // IO Error
ENFILE, // Too many open files
ENOTDIR, // Not a directory
EIO, // IO Error
+ EINTR, // Operation interrupted (signal)
EALREADY, // Operation was a NOP
EINTERNAL, // Internal Error
EALREADY, // Operation was a NOP
EINTERNAL, // Internal Error
diff --git
a/KernelLand/Kernel/include/threads_int.h
b/KernelLand/Kernel/include/threads_int.h
index
881db4a
..
578fdcf
100644
(file)
--- a/
KernelLand/Kernel/include/threads_int.h
+++ b/
KernelLand/Kernel/include/threads_int.h
@@
-102,7
+102,7
@@
struct sThread
};
};
-enum {
+enum
eThreadStatus
{
THREAD_STAT_NULL, // Invalid process
THREAD_STAT_ACTIVE, // Running and schedulable process
THREAD_STAT_SLEEPING, // Message Sleep
THREAD_STAT_NULL, // Invalid process
THREAD_STAT_ACTIVE, // Running and schedulable process
THREAD_STAT_SLEEPING, // Message Sleep
UCC
git Repository :: git.ucc.asn.au