summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorCody Cutler <[email protected]>2014-09-12 17:18:57 -0400
committerCody Cutler <[email protected]>2014-09-12 18:09:51 -0400
commitaae4e7490fbb61de13f61d90092b177eeb258216 (patch)
tree22cebdefb8bc72ed95d2c11759896023adf1da99 /defs.h
parent75dee1219ffee14f9cb3ec6bb739f06bae27de9c (diff)
downloadxv6-labs-aae4e7490fbb61de13f61d90092b177eeb258216.tar.gz
xv6-labs-aae4e7490fbb61de13f61d90092b177eeb258216.tar.bz2
xv6-labs-aae4e7490fbb61de13f61d90092b177eeb258216.zip
cmosgetdate() for system-call homework
the day of reckoning has come for the debug port "Shutdown" hack. instead of mucking with ACPI or using a new hack, the student will now write sys_date() using the cmosgetdate() helper.
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/defs.h b/defs.h
index 560b19a..43431e3 100644
--- a/defs.h
+++ b/defs.h
@@ -4,6 +4,7 @@ struct file;
struct inode;
struct pipe;
struct proc;
+struct rtcdate;
struct spinlock;
struct stat;
struct superblock;
@@ -71,6 +72,7 @@ void kinit2(void*, void*);
void kbdintr(void);
// lapic.c
+void cmostime(struct rtcdate *r);
int cpunum(void);
extern volatile uint* lapic;
void lapiceoi(void);