insane-adding-machines / frosted

Frosted: Free POSIX OS for tiny embedded devices
GNU General Public License v2.0
215 stars 39 forks source link

Proper system clocks #120

Closed brabo closed 7 years ago

brabo commented 7 years ago
danielinux commented 7 years ago

Where was CLOCK_MONOTONIC supposed to be defined in kernel space? I had to add an explicit define in sys.c because I cannot find any reference to that symbol in kernel code. Missing common header?

brabo commented 7 years ago
as: https://github.com/insane-adding-machines/frosted/blob/master/kernel/sys.c#L23
danielinux commented 7 years ago

Time.h is nowhere to be found in kernel code. Is it a libc include? Libc include are ignored in kernel, as we compile with nostdinc.

brabo commented 7 years ago

it is in newlib. that flag seems gone, compiles and works fine this way. i agree we should split it off to frosted-headers though and include that both ways.

danielinux commented 7 years ago

The stdinc problem is not only related to this. This issue can be closed, but the problem persists until we fix #121

Thanks