Kernel

FreeBSD ported to UltraSPARC T1

| Kernel

Today Kip has announced that FreeBSD can now self-host (say complete the make buildworld, etc) on UltraSPARC T1 (Sun’s latest processor). The work is available on p4 at //depot/projects/kmacy_sun4v/… view.

参与评论

Rebuilding Charlie

| Kernel

So I finally got to figure out that Charlie’s kernel was built on Dec 20 last year, I will upgrade it to latest FreeBSD/amd64 7.0-CURRENT.

Charlie is the desktop box which has many of my hacks on it :-)

参与评论

一瓢对有志于从头发明轮子的人的冷水zz

| Kernel

有人说要自行开发一个OS Kernel,不过回复的人确实说的很经典:

开始下手–〉没有头绪–〉查阅资料–〉代码太长、干脆拷贝–〉拼凑怪物–〉大功告成、不能运行–〉挖空心思–〉我很忙–〉未遂残念

阅读全文…( 本文约 187 字,阅读大致需要 1 分钟 )

静态代码分析工具?

| Kernel

今天一条内部消息(很快会正式公布)说我们得到了一个强悍的代码静态分析工具的授权。希望这能够为我们的开发带来新的想法,登录上去看了看,感觉很有挑战,许多似是而非的问题,到底是不是真的问题,其实都需要我们去手工地阅读代码和重新验证。

参与评论

malloc(3)换了!

| Kernel

Jason Evans同学返回FreeBSD的第一件事就是把malloc(3)的实现换掉了。这个完全重写的malloc(3)实现带来了以下功能:

仅manpage和malloc.c的patchset就超过150K,值得一读。

参与评论

关于system call

| Kernel

FreeBSD 开发手册 中,有一部分内容介绍了关于系统调用。里面有这样一段话:

Linux is a UNIX like system. However, its kernel uses the same system-call convention of passing parameters in registers MS-DOS does. As with the UNIX convention, the function number is placed in EAX. The parameters, however, are not passed on the stack but in EBX, ECX, EDX, ESI, EDI, EBP:

open:
  mov eax, 5
  mov ebx, path
  mov ecx, flags
  mov edx, mode
  int 80h

This convention has a great disadvantage over the UNIX way, at least as far as assembly language programming is concerned: Every time you make a kernel call you must push the registers, then pop them later. This makes your code bulkier and slower. Nevertheless, FreeBSD gives you a choice.

可能有人会问了,为什么说 UNIX way (将参数压栈) 更好呢?

阅读全文…( 本文约 606 字,阅读大致需要 2 分钟 )

freefall is now running 6.0-STABLE

| Kernel

After it has runned 4.x series for a too long time, finally kensmith@ has stepped up to upgrade it.

Needless to say what this means, just upgrade all your boxes to FreeBSD 6.x. FreeBSD 6.0-RELEASE is the best release we have released in the recent years, and the best .0 release ever, as proven by many installations and developers’ code review.

参与评论

Solaris ZFS代码公开了

| Kernel

这里。ZFS提出了很多很有意思的概念,值得一看。

比较感兴趣的几个地方:(1)Solaris的byteswap实现;(2)DSL;(3)ZIL。暂时还没有仔细看ZIL,但这里有一个很有意思的设计:

阅读全文…( 本文约 325 字,阅读大致需要 1 分钟 )

历史上最成功的RELEASE

| Kernel

昨天Scott Long老大发了一封信说,从过去一个月内的反馈来看,6.0-RELEASE是FreeBSD近几年最为成功的发行版本,同时,也是FreeBSD历史上最为成功的.0发行版本。

阅读全文…( 本文约 124 字,阅读大致需要 1 分钟 )

*BSD queue.h

| Kernel

Derived from the ancient BSD Unix, *BSD has a set of queue related macros which are described in queue(3), and implemented in src/sys/sys/queue.h. These are primarily used in the kernel, but also useful for userland applications.

阅读全文…( 本文约 100 字,阅读大致需要 1 分钟 )