Commit Graph

5340 Commits

Author SHA1 Message Date
Axel Dörfler
4f364c85af Enabled and added some more debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 05:35:32 +00:00
Axel Dörfler
a47544320d Fixed File::ReadAt() (it didn't return the actual length read, just B_OK).
Visually simplified Volume::ToBlock().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 05:27:24 +00:00
Axel Dörfler
3a8a05a459 Now works again, added missing platform functionality.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:26:51 +00:00
Axel Dörfler
caac43e662 Fixed missing initialization of fBlock in one of the constructors of CachedBlock.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:25:20 +00:00
Axel Dörfler
65b30ea3c1 The boot loader compiles again on x86.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:16:43 +00:00
Axel Dörfler
bc0096be96 Compiles again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:16:06 +00:00
Axel Dörfler
d69f033efd Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:08:04 +00:00
Axel Dörfler
1aa6a4ca46 Added link handling to the RootFileSystem (for the "boot" link).
Renamed AddNode() to AddVolume() - it's no longer virtual but private to
the root file system.
Added new method AddLink() to add a link to a volume.
The link handling is separate from the other volumes (to be able to iterate
only over real volumes). Added a name field to the inner entry class which
is used for links.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:05:34 +00:00
Axel Dörfler
9bf99ee93b Now registers the boot device and loads the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:01:09 +00:00
Axel Dörfler
18562ebdd8 gRoot is now defined in RootFileSystem.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 04:00:12 +00:00
Axel Dörfler
77cfe0902a gRoot is now defined in RootFileSystem.h, AddNode() is now called AddVolume().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:59:39 +00:00
Axel Dörfler
6822f1482e gRoot is now a RootFileSystem, not just a Directory anymore.
register_boot_file_system() adds the "boot" link to the root fs.
mount_all_file_systems() now prints out the root directory of the
mounted volumes just for fun (to be removed later).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:58:40 +00:00
Axel Dörfler
ace56d68aa Removed the AddNode() method from the Directory class.
Moved gRoot into the private RootFileSystem header.
Added new register_boot_file_system() function.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:55:53 +00:00
Axel Dörfler
f5ab9c12ce Fixed arch_cpu_global_TLB_invalidate() - it only invalidated the first
256K of the available address space.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:39:47 +00:00
Axel Dörfler
622405014e The init routine doesn't have to make sure that the IP bit of MSR is
set since the boot loader already takes care of that.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:38:39 +00:00
Axel Dörfler
6f634c19b6 Fixed a potential overflow bug in ppc_set_page_table().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:37:15 +00:00
Axel Dörfler
c72672b624 Made the computation of the page table hash mask easier to read.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:36:22 +00:00
Axel Dörfler
7fc11e15bb Some work-in-progress on the MMU functions:
- it will now successfully take over the MMU, but it doesn't tell OF
  yet about it.
- map_page() will now fill in the page table relative to sSegments[], and
  no longer to the segment registers directly (as they might be different
  at that time, depending on the OF).
- map_page() will panic if it couldn't find a free slot in the page table
  (that's enough for the boot loader)
- finds the exception handlers mapping and sets the kernel args
- rewrote insert_memory_range(); it now actually works in all cases (no
  matter if the ranges overlap or not, and it will also join ranges if
  possible). The start address will now be round down to page aligment.
- some other small fixes
- the page table is now cleared before use (as of_claim() obviously doesn't
  return cleared memory).
- replaced some uint32 with addr_t where it made sense (there are probably
  even more places).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:19:01 +00:00
Axel Dörfler
db0fd9726e Added functions to set and get the segment register (as segment_descriptor).
Added constructors to block_address_translation and segment_descriptor
that will clear its memory (could be done more efficiently though, it just
uses memset()).
Added definitions for the MSR (machine state register).
Added tlbsync() macro (direct assembler call).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-21 03:07:44 +00:00
Waldemar Kornewald
6b6c29afe6 Fixed flags printing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-20 20:45:48 +00:00
Matthew Wilber
0a3144ad6b Changed selection box to use a checkered pattern, closer to what Be's ShowImage uses. Stopped using inversion to clear old selections, drawing the bitmap over them instead. Fixed the rect used in setting the view bitmap.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-19 01:56:01 +00:00
DarkWyrm
2cd26ed941 Changes to integrate with app_server:
Added code to send more than just mouse move messages
Removed the input_server's dependency on local PortLink sources
Broke the BeIDE project by removing the PortLink dependency (oh well) -- see me for a fix if you run into problems building locally


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-19 00:46:44 +00:00
DarkWyrm
d6e461f029 Added system color, system font, and decorator update notification
Added a little server-side code to handle system color updates


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-19 00:03:06 +00:00
DarkWyrm
01490aa446 Added server notification
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 23:58:59 +00:00
DarkWyrm
6d6540131a Added a couple of private, internal message defs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 23:55:41 +00:00
DarkWyrm
d1c8b508e5 Cruft removal
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 23:17:34 +00:00
DarkWyrm
c94c672743 cruft removal
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 23:16:40 +00:00
Matthew Wilber
af2002bf8c Implemented preliminary selection box skeleton code. Need to add marching ants and connect selection box status to Edit menu.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 22:58:34 +00:00
DarkWyrm
5eaf1421a5 Tweaks for BPicture compliance
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 22:45:16 +00:00
DarkWyrm
7d4ebd1ef0 Implemented some more handler code for different BPicture opcodes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 22:44:44 +00:00
ejakowatz
b07c31a73f Finished up some scripting-related items.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 04:55:28 +00:00
beveloper
a33c76090e RIFF WAV header structures
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 23:56:13 +00:00
beveloper
ca16f5cb03 start of media kit codec plugin API
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 23:55:19 +00:00
Axel Dörfler
b912581792 new_file_system() returned a status code, but should have returned
a pointer to the file system.
Renamed all static g* variables to s*.
Renamed "mount_id" fields to the higher level "device" (to be able
to compile the file).
Fixed all casting warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 14:47:15 +00:00
Axel Dörfler
9559a50771 Renamed vfs.c to vfs.cpp to prepare and ease working with the disk
device manager (and have more warnings).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 14:45:07 +00:00
Axel Dörfler
50ba16fccf Made C++ safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 14:42:45 +00:00
Axel Dörfler
bd77051dc3 Changes due to renaming of vm_translation_map_get_pgdir() to i386_*().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 14:35:29 +00:00
Axel Dörfler
7221a58854 Fixed some warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 14:05:05 +00:00
Axel Dörfler
4ef2438290 Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 14:01:16 +00:00
Axel Dörfler
8c1ae50791 Adoption of Travis' PPC code. Changed where needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:58:41 +00:00
Waldemar Kornewald
8c911f6ce6 h_errno is now declared in each file that uses it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:57:33 +00:00
Axel Dörfler
f8e89e479d Adoption of Travis' PPC code. Changed to our VM structures and slightly
different arch-specific CPU functions. Fixed some bugs. Not tested.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:57:28 +00:00
Axel Dörfler
78a4f584f5 Added the addr_t typedef (should replace the commonly used addr type some day).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:49:41 +00:00
Axel Dörfler
14d9cc14d9 Updates caused by renaming vm_translation_map_get_pgdir() to
i386_translation_map_get_pgdir().
Fixed some warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:47:12 +00:00
Axel Dörfler
fb7bec78e3 Created a new arch-specific vm_translation.h header - it's not included
in this file.
Moved the vm_translation_map_get_pgdir() function to the x86 specific
header.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:36:38 +00:00
Axel Dörfler
db5620838a Moved the vm_translation_map_get_pgdir() function from arch/vm_translation_map.h
into this file (and replaced the prefix with i386_).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:35:12 +00:00
Axel Dörfler
61897ef2b1 Stub implementation no longer needed, real implementation will be C++.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:06:24 +00:00
Axel Dörfler
3b912ee405 Stub implementation no longer needed, real implementation will be C++.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 13:00:07 +00:00
Axel Dörfler
112bea4bac Added the arch_cpu_sync_icache() function for x86 from NewOS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 12:54:34 +00:00
Axel Dörfler
57c3918258 Added the arch_cpu_sync_icache() function from NewOS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-17 12:53:45 +00:00