BarclayII / AIMv6

Reimplementation and extension of teaching operating system xv6, supersedes xv6-Loongson3a
GNU General Public License v2.0
16 stars 17 forks source link

please move rtc driver into clock directory #9

Closed davidgao closed 9 years ago

davidgao commented 9 years ago

Title means almost everything,

I added a sleep.h to include/, they should be provided by some driver, but the signatures should be just the same.

BarclayII commented 9 years ago

Good point.

However I think sleep() functions should probably be renamed to delay() since sleep() is more-or-less a system call, and delay() hints for some kind of busy-wait which fits our requirements.

Date: Wed, 2 Sep 2015 09:42:51 -0700 From: notifications@github.com To: AIMv6@noreply.github.com Subject: [AIMv6] please move rtc driver into clock directory (#9)

Title means almost everything,

I added a sleep.h to include/, they should be provided by some driver, but the signatures should be just the same.

― Reply to this email directly or view it on GitHub.

davidgao commented 9 years ago

maybe spin_sleep() can indicate that better.

BarclayII commented 9 years ago

spin_sleep, delay and busy_wait are all good candidates, feel free to choose one or invent your own

发自 Windows 邮件

发件人: David Gao 发送时间: ‎2015‎年‎9‎月‎4‎日, ‎星期五 ‎18‎:‎52 收件人: BarclayII/AIMv6 抄送: Gan Quan

maybe spin_sleep() can indicate that better.

— Reply to this email directly or view it on GitHub.

davidgao commented 9 years ago

it'll be spin_sleep then. ARM's other SDKs say sleep so choosing another name might be misleading.