Axel Dörfler
c8baeaf6cf
Added support for the boot partition offset as provided by the BFS boot block.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-20 01:20:43 +00:00
Axel Dörfler
9fd7586724
gBootDriveID is now uint8, no longer uint16.
...
Now prints out a comment if LBA access doesn't work (since CHS access is not yet implemented).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 23:33:23 +00:00
Axel Dörfler
f52302c408
Actually, one byte is enough for gBIOSDriveID - it only has to store %dl, not %dx.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 23:31:53 +00:00
Axel Dörfler
502a70f884
Implemented LBA drive access using the BIOS. The boot device is correctly
...
published, and can be accessed as needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 23:14:05 +00:00
Axel Dörfler
7ca2763dc3
Now uses the kExtraSegmentScratch constant rather than a direct address.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 22:43:04 +00:00
Axel Dörfler
cc551468f8
Added some constants that define scratch buffers in the data and extra
...
segment that can be used for BIOS calls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 22:38:30 +00:00
Axel Dörfler
6ed14d8c59
Added a global variable gBootDriveID where %dl is stored to.
...
Moved the data section closer to the end of the 1024 bytes of the boot
block - the region before is reused as scratch buffer in the real mode
data segment.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 22:36:13 +00:00
Axel Dörfler
c2cb9079b5
Fixed a warning with debug turned on.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 21:58:43 +00:00
Axel Dörfler
acfef65c84
Fixed a bug that would rescan the boot partition in mount_file_systems() in
...
case it couldn't be used for booting (lack of a kernel or whatever).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 21:57:50 +00:00
Rudolf Cornelissen
ccfb6b3711
more logging, removed paneldetection bug
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 13:57:31 +00:00
Axel Dörfler
a7226c0a48
The boot loader now uses the boot_loader.ld linking script instead of
...
the stage2.ld script (which is now only used by the old boot mechanism).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 02:23:50 +00:00
Axel Dörfler
3796dbef26
Added the new files to the build, and implemented a real startup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 01:57:29 +00:00
Axel Dörfler
b2f8da6214
Added prototype for the (currently unused) mmu_init_for_kernel() function.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 01:56:36 +00:00
Axel Dörfler
95aa3fbf11
MMU functions and initialization for the boot loader.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 01:50:26 +00:00
Axel Dörfler
487cc516ec
Register %es was not properly set from the bios_regs structure
...
(since switch_to_real_mode() overwrites %es).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 01:31:19 +00:00
Axel Dörfler
65daec27d1
Added a definition for the carry flag.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 01:30:13 +00:00
Axel Dörfler
a8242cca9c
Added a new linker script for our boot loader (a.k.a. zbeos in the BeOS world).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 00:05:32 +00:00
Axel Dörfler
d2e0469de4
Verified A20 gate BIOS call values with Ralf Brown's interrupt list - 0x2401/2
...
was already correct, and my other source was wrong about it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-19 00:00:53 +00:00
Axel Dörfler
46df41d103
Implemented call_bios() function that is called from protected mode.
...
It switches to real mode for execution of the BIOS interrupt; it's really
only intended for the boot loader.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 23:58:26 +00:00
Axel Dörfler
1e56fb4aeb
The "ax" code I was using for the A20 gate stuff was obviously wrong; but
...
both Bochs and my real computer seem to know it anyway, so it's untested.
The real mode segment descriptors now start at 0x10000, because the code
is loaded there. Added an additional stack segment descriptor to be able
to use a stack below 0x10000.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 22:07:41 +00:00
Waldemar Kornewald
e09429df45
Removed unneeded constants.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 13:12:15 +00:00
Waldemar Kornewald
0ddbc23a4e
Added _res_resultcodes for improved BONE compatibility.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 13:00:44 +00:00
Waldemar Kornewald
5f09d484a7
Changed to link against our libbind.so and libsocket.so.
...
Now using correct shutdown constants.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 12:49:41 +00:00
Waldemar Kornewald
068bd8517e
Now using correct shutdown() constants.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7228 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 12:47:52 +00:00
Waldemar Kornewald
f1730f62f5
Fixed collision between SO_XXX and IP_XXX defines.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 12:46:10 +00:00
Waldemar Kornewald
58a1abc4d6
Added missing functions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 12:42:52 +00:00
shatty
035823f1e2
link against our libs
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-17 04:08:25 +00:00
DarkWyrm
1b4ec3a38b
Checkin for Caz (without pain, even!) which adds DrawBitmap support
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 17:53:10 +00:00
DarkWyrm
da08bdd09d
Checkin for Caz (without pain, even!) which adds rudimentary DrawBitmap support
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 17:52:31 +00:00
Stefano Ceccherini
8af87c1dcc
Ok, last time (at least for today). 0 is a valid fd number
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 10:32:59 +00:00
Stefano Ceccherini
7d60c514f8
Last famous words... Corrected some issues pointed out by Axel
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 08:39:12 +00:00
Stefano Ceccherini
2e90a0fca0
Finally BSerialPort works !!
...
- Fixed I/O Error issue
- switched from sprintf to snprintf where appropriate
- added O_EXCL flag to open()
- added many TODO items (mostly for further investigation, the class should be complete)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 06:24:59 +00:00
Stefano Ceccherini
df5ce07bff
Reverted last change since, as Axel pointed out, old version is "a bit" faster than the new one
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 06:21:42 +00:00
Waldemar Kornewald
a45c236cab
Added libbind and libsocket to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:29:45 +00:00
Waldemar Kornewald
c0717c8cd7
Now linking against libbind and libsocket.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:22:24 +00:00
Waldemar Kornewald
5e36a68cb4
Fixed a warning.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:19:53 +00:00
Waldemar Kornewald
67bce78b48
Now linking against libbind instead of libnet.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:19:29 +00:00
Waldemar Kornewald
3016600192
Linking against libbind.so and libsocket.so.
...
There are linker warnings, but this is only due to the linker linking against the BeOS libs instead of our libs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:17:54 +00:00
Waldemar Kornewald
a6b9eee2e1
Route did not use the shutdown() constants.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:16:33 +00:00
Waldemar Kornewald
5b3c100c86
DialOnDemand interfaces now connect, too, when using create.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:12:49 +00:00
Waldemar Kornewald
feb699f996
Fixed a bug that caused libbind.so to not resolve the name:
...
UDP did not set AF_INET in the sockaddr that is passed to recvfrom().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:11:19 +00:00
Waldemar Kornewald
25ae6950d9
Changed the way IdleSince is updated.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:10:23 +00:00
Waldemar Kornewald
b7708e654a
Fixed DEBUG build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:09:19 +00:00
Waldemar Kornewald
cdee6f9740
The DEBUG version dumps all packets to /boot/home/ipcpdebug.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:08:39 +00:00
Waldemar Kornewald
310eb63195
Updated shutdown() constants.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:07:42 +00:00
Waldemar Kornewald
0a628cf2fc
Nothing special. Just bringing the cvs version up-to-date with my private version.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:05:40 +00:00
Waldemar Kornewald
6c3f95cd4b
Added libbind.so and libsocket.so to NetworkingKit target.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:04:39 +00:00
Waldemar Kornewald
b155eedfb1
Checkin of BIND 9.2.3 (libbind.so).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:03:30 +00:00
Waldemar Kornewald
ffa9d4cce9
Now linking against libsocket.so.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 15:58:18 +00:00
Waldemar Kornewald
eda72d2688
Checked in our version of libsocket.so. When building for BONE use this command:
...
BONE_VERSION=1 jam
This will remove the select() function from libsocket.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 15:57:49 +00:00